News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

Compiler warnings in rev 5244

Started by Spike, February 09, 2012, 09:39:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Spike

At revision 5244.

===> CXX gui/factory_chart.cc
gui/factory_chart.cc: In constructor `factory_chart_t::factory_chart_t(const fabrik_t*)':
gui/factory_chart.cc:134: warning: 'input_count' might be used uninitialized in this function
gui/factory_chart.cc:135: warning: 'output_count' might be used uninitialized in this function
gui/factory_chart.cc: In constructor `factory_chart_t::factory_chart_t(const fabrik_t*)':
gui/factory_chart.cc:134: warning: 'input_count' might be used uninitialized in this function
gui/factory_chart.cc:135: warning: 'output_count' might be used uninitialized in this function


Potentially uninitialized can be bad, but I haven't checked if it it's really a problem or if only the compiler is worried there.

Dwachs

I do not get why the compiler is complaining here. After all, the variables are initialized on the mentioned lines ???
Parsley, sage, rosemary, and maggikraut.