From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1626 invoked by alias); 8 Sep 2002 23:06:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 1611 invoked by uid 71); 8 Sep 2002 23:06:01 -0000 Date: Sun, 08 Sep 2002 16:06:00 -0000 Message-ID: <20020908230601.1610.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Andrew Pinski Subject: Re: c/7860: few new suggested warnings Reply-To: Andrew Pinski X-SW-Source: 2002-09/txt/msg00124.txt.bz2 List-Id: The following reply was made to PR c/7860; it has been noted by GNATS. From: Andrew Pinski To: jhi@iki.fi Cc: gcc-gnats@gcc.gnu.org Subject: Re: c/7860: few new suggested warnings Date: Sun, 8 Sep 2002 18:57:44 -0400 Here is a copy of the file since the file was in macbinary format that some people cannot decode: -Wcppcomment Warn about C++ style comments // like this. -Wgnuextensions Warn about the use of any GNU extensions. -Wpointer-implicit-sign Warn if a pointer is implicitly cast between signed and unsigned, for example: int foo(unsigned char *s) { ... } ... char *s; ... foo(s); (enabled by -ansi) -Wenum-implicit-int Warn if enums are implicitly used as integers, for example enum e { E1, E2, E3 }; ... enum e e1 = 0; /* Warn. */ enum e e2 = E2; enum e e3, e4; e3 = e1 + 1; /* Warn. */ e2++; /* Warn. */ e4 = e3 & ~E2; /* Warn. */ -Wenum-trailing-comma Warn if enum declaration has a trailing comma. (enabled by -pedantic) -Wcpp-spurious-tokens Warn if there are any unnecessary tokens after preprocessor commands, for example #endif STUFF (enabled by -pedantic)