caffe
caffe copied to clipboard
error: variable ‘use_dilation’ set but not used in building intel caffe
I am trying to build intel caffe. I use g++ version 5.5.0.
I have error at
src/caffe/layer_factory.cpp:91:8: error: variable ‘use_dilation’ set but not used [-Werror=unused-but-set-variable] bool use_dilation = false; ^ src/caffe/layer_factory.cpp: In instantiation of ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetConvolutionLayer(const caffe::LayerParameter&) [with Dtype = double]’: src/caffe/layer_factory.cpp:163:1: required from here src/caffe/layer_factory.cpp:91:8: error: variable ‘use_dilation’ set but not used [-Werror=unused-but-set-variable] cc1plus: all warnings being treated as errors Makefile:810: recipe for target '.build_release/src/caffe/layer_factory.o' failed make: *** [.build_release/src/caffe/layer_factory.o] Error 1 make: *** Waiting for unfinished jobs....
What could be wrong?
it's quite weird. the code of "bool use_dilation = false;" is in line 92, but your build error shows it's in line 91. are you sure you are using the latest commit of intel caffe master? how do you build it? The error should never happened as the use_dilation variable is used near the declaration.