id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 6136,"Fix for ""variable set but not used"" warning with GCC >= 4.6",zeratul976@…,az_sw_dude,"GCC >= 4.6 gives the following ""variable set but not used"" warnings for code in boost/date_time/format_date_parser.hpp: {{{ ../../lib/boost/boost/date_time/format_date_parser.hpp:479:11: warning: variable 'current_char' set but not used [-Wunused-but-set-variable] ../../lib/boost/boost/date_time/format_date_parser.hpp:584:11: warning: variable 'current_char' set but not used [-Wunused-but-set-variable] ../../lib/boost/boost/date_time/format_date_parser.hpp:677:11: warning: variable 'current_char' set but not used [-Wunused-but-set-variable] }}} The warnings are triggered by any code that instantiates the format_date_parser class, for example: {{{ #include #include int main() { std::stringstream ss; boost::posix_time::ptime p; ss >> p; } }}} Looking at the code, I can see that the 'current_char' variable is indeed set but never used in those functions. The attached patch fixes the warnings by removing the 'current_char' variable from those functions.",Patches,closed,To Be Determined,date_time,Boost 1.54.0,Problem,fixed,,