This is the mail archive of the gcc-help@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]

Re: turn off warnings in gcc on linux



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


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