[Cbc] Compiler warning flags

Stefan Vigerske stefan at math.hu-berlin.de
Fri Apr 15 06:34:31 EDT 2011


Hi,

> For testing purposes, I would like to change the compiler warning flags
> used by CBC, but I can't figure out how to do it. By default, it is set
> to something like
>
> -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual
> -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas
> -Wno-long-long
>
> But I can't find these option in the svn repository except for some
> generated files like 'Makefile' and 'configure'. Where are they set
> actually?

They are set in configure:2878 (current trunk).

There is no option for configure to change only the warning flags.
You can overwrite all compiler flags by setting CXXFLAGS or you can add 
additional flags (like -Wno-conversion) by setting ADD_CXXFLAGS or you 
can edit configure.

Stefan



More information about the Cbc mailing list