turn off warnings in gcc on linux

Peter Doerfler gcc@pdoerfler.com
Tue Sep 12 13:11:00 GMT 2006



John Love-Jensen wrote:
>> cat ~/bin/w++ 
> 
> /usr/bin/g++ \
> -ansi \
> -Wno-long-long \
> -Wall \
> -Wextra \
> -Weffc++ \
> -Wredundant-decls \
> -Wstrict-null-sentinel \
> -W#warnings \
> -Wfloat-equal \
> -Wmissing-format-attribute \
> -Wmissing-noreturn \
> -Wpacked \
> -Wshadow \
> -Wunused-macros \
> -Wcast-align \
> -Wcast-qual \
> -Wconversion \
> -Wctor-dtor-privacy \
> -Wdeprecated \
> -Wdeprecated-declarations \
> -Wendif-labels \
> -Wextra \
> -Wformat-extra-args \
> -Winline \
> -Winvalid-offsetof \
> -Wmissing-field-initializers \
> -Wnon-lvalue-assign \
> -Wnon-virtual-dtor \
> -Woverloaded-virtual \
> -Wpmf-conversions \
> -Wpointer-arith \
> -Wshorten-64-to-32 \
> -Wsign-compare \
> -Wsign-promo \
> -Wundef \
> -Wwrite-strings \
> -Wold-style-cast \
> -Wno-unreachable-code \
> -fdollars-in-identifiers \
> "$@"
> 

Nice collection.

Just a note: -Wextra is in there twice

Best, Peter



More information about the Gcc-help mailing list