From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19125 invoked by alias); 5 Oct 2002 21:21:02 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 19099 invoked from network); 5 Oct 2002 21:21:00 -0000 Received: from unknown (HELO khms.westfalen.de) (62.153.201.243) by sources.redhat.com with SMTP; 5 Oct 2002 21:21:00 -0000 Received: from root by khms.westfalen.de with local-bsmtp (Exim 3.35 #1) id 17xwM6-0004jN-00 (Debian); Sat, 05 Oct 2002 23:20:58 +0200 Received: by khms.westfalen.de (CrossPoint v3.12d.kh10 R/C435); 05 Oct 2002 23:19:30 +0200 Date: Sat, 05 Oct 2002 21:03:00 -0000 From: kaih@khms.westfalen.de (Kai Henningsen) To: gcc@gcc.gnu.org Message-ID: <8YGnhVqXw-B@khms.westfalen.de> In-Reply-To: Subject: Re: module level flags MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Organisation? Me?! Are you kidding? References: <200210011827.LAA11402@atrus.synopsys.com> <200210011827.LAA11402@atrus.synopsys.com> X-No-Junk-Mail: I do not want to get *any* junk mail. Comment: Unsolicited commercial mail will incur an US$100 handling fee per received mail. X-Fix-Your-Modem: +++ATS2=255&WO1 X-SW-Source: 2002-10/txt/msg00371.txt.bz2 geoffk@geoffk.org (Geoff Keating) wrote on 01.10.02 in : > int *ip = (int *)dp; > I think that generally, such warnings are helpful even if they aren't > 100% perfect. The usual reason such errors are introduced into > programs are not that the programmer made a mistake in applying the > appropriate rule, it's that the programmer wasn't aware that the rule > existed. Thus, the warnings help to educate programmers, and > hopefully they will be educated enough that they don't make the > mistakes that the compiler can't catch. -Wsuspicious-casts? MfG Kai