Boost logo

Boost Users :

From: Stephen Jackson (stephen.jackson_at_[hidden])
Date: 2004-07-22 05:23:10


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net