This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: turn off warnings in gcc on linux
- From: Peter Doerfler <gcc at pdoerfler dot com>
- To: John Love-Jensen <eljay at adobe dot com>
- Cc: MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Tue, 12 Sep 2006 15:11:23 +0200
- Subject: Re: turn off warnings in gcc on linux
- References: <C12C19D3.16234%eljay@adobe.com>
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