
22 Jul
2004
22 Jul
'04
10:23 a.m.
Christopher Baus wrote:
Ok this is bit off topic since it isn't directly related to boost, but I know there are a lot C++ guru's here, and I'm sure one of you has addressed this.
I am using Andrei's ScopeGuard and not boosts. I have googled, but I haven't figured out how to turn off the "unused variable" warning in g++, with out disabling all warnings. My guess is that there is no solution, but I thought I would try here first.
Unless I'm missing something, this should do the trick: g++ -c -O2 -Wall -Wno-unused-variable foo.cpp Hope this helps, Stephen Jackson