Disabling specific g++ warnings

Pierre Sarrazin sarrazip@sympatico.ca
Fri Oct 7 14:34:00 GMT 2005


Hi.  How do I tell g++ (3.4.2) to disable the following warnings
specifically (without disabling a whole class of warnings)?

    passing `float' for converting 1 of `void foo(int)'

    converting to `int' from `float'

    no newline at end of file

The code is currently compiled with options -Wall and -W.

Thanks.

-- 
Pierre Sarrazin <sarrazip at sympatico dot ca>



More information about the Gcc-help mailing list