This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/55643] g++ 4.7 gives "warning: variable âmyVarâ set but not used [-Wunused-but-set-variable]" when an "enum class"-typed variable is cast to double before use


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55643

--- Comment #2 from Daniel Holbert <dholbert at cs dot stanford.edu> 2012-12-10 20:42:03 UTC ---
The command I'm using to compile is:
>  g++-4.7 -Wall -std=c++11 gcc-warning-test.cpp


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]