From: Greg C. <gch...@sb...> - 2009-07-08 12:58:21
|
On 2009-07-08 05:21Z, John Martin wrote: > I'm trying to use 'make' to build from a Makefile (automatically > generated by Qt, which uses MinGW). > > I'd like to suppress miscellaneous warnings, such as: > -warning: converting to `int' from `float' > -unused variable 'i' > > Basically anything that isn't an actual error that is causing compile > to fail. I often get bombarded with dozens of warnings and it takes a > while to find the actual error. Those warnings come from the compiler. The makefile presumably invokes the compiler with options that enable those warnings; to disable them, change those options. Makefiles normally are written to let you override C++ compiler options, most commonly by setting a variable CXXFLAGS. If Qt follows that convention, then make CXXFLAGS='-Wno-conversion -Wno-unused' [...] ought to inhibit those warnings. It's generally better to fix the cause of such warnings, but that's not always practicable if they stem from a framework (e.g., Qt). |