From owner-cvs-src@FreeBSD.ORG Sun Oct 26 20:45:25 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91FD316A4B3; Sun, 26 Oct 2003 20:45:25 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56B5643FB1; Sun, 26 Oct 2003 20:45:19 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id PAA13247; Mon, 27 Oct 2003 15:45:14 +1100 Date: Mon, 27 Oct 2003 15:45:09 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Peter Wemm In-Reply-To: <200310260334.h9Q3YDpB007087@repoman.freebsd.org> Message-ID: <20031027154126.P21274@gamplex.bde.org> References: <200310260334.h9Q3YDpB007087@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@freebsd.org cc: src-committers@freebsd.org cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.bin/xlint/xlint xlint.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2003 04:45:25 -0000 On Sat, 25 Oct 2003, Peter Wemm wrote: > peter 2003/10/25 20:34:13 PDT > > FreeBSD src repository > > Modified files: > usr.bin/xlint/xlint xlint.c > Log: > Move the -Wtraditional warning from the global cpp flags to when the -p > (portability warnings) switch is used. Add -Wno-system-headers after it so > that we dont get 500 screenfulls of warnings about #elif in /usr/include. > I'm not entirely happy with this. Maybe cdefs.h shouldn't use #elif and > instead nest #else clauses? No, since the system headers don't actually work for K&R compilers (or even C90 compilers :-() despite cdefs.h having compatibility cruft for K&R. They work for at most "gcc -E -traditional -Wno-system-headers". Probably not even for that, so lint's -p and -t flags don't actually work. Bruce