From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12566 invoked by alias); 23 May 2003 19:09:20 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6539 invoked from network); 23 May 2003 18:53:32 -0000 Received: from unknown (HELO planck.amplepower.com) (216.39.162.139) by sources.redhat.com with SMTP; 23 May 2003 18:53:32 -0000 Received: from [192.168.8.30] (helo=knuth.amplepower.com ident=roth) by planck.amplepower.com with esmtp (Exim 3.36 #1 (Debian)) id 19JHYY-00008R-00 for ; Fri, 23 May 2003 11:46:19 -0700 Date: Fri, 23 May 2003 19:09:00 -0000 From: "Theodore A. Roth" X-X-Sender: roth@knuth.amplepower.com To: gdb@sources.redhat.com Subject: suggested compile warnings Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-05/txt/msg00318.txt.bz2 Hi, I've always been configuring gdb with --enable-gdb-build-warnings=-Werror and thought that there where a bunch of gcc compile warnings issued. Looking more closely at my builds, that doesn't seem to be true. For my own apps, I like to use '-Wall -Werror' as it lets the compiler catch a lot of my stupid mistakes. I tried '-Wall -Werror' for gdb, but that seems to be too restrictive for gdb source. Does anyone else compile gdb with any of the -W gcc options? Is there a recommended list of these which should be used? For example, adding -Wunused (without -Werror), turns up 149 wanrings. Most are unused variables, some are static decl's for functions that aren't defined. Most if not all of these should be trivial to fix. Ted Roth