
13 Oct
2005
13 Oct
'05
3:27 a.m.
Kevin Wheatley wrote:
Simon Buchan wrote:
That works fine everywhere. It's similar to (void)0, which is a popular way to say "do nothing".
In that file (and else where) there are specific calls to the boost::ignore_unused_variable_warning() mechanism. I wondered if there was a good reason it wasn't done in this case, before assuming it will just work.
Kevin
ignore_unused_variable_warning is defined in workaround.hpp, so I may be wrong that void casting stops the warning everywhere. (usage warnings are pretty fiddly). However, that method works by not giving the parameter a name, which I seem to remember getting warnings for in some compilers. (some versions of GCC?)