From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DMARC_NONE,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=4.0.0 Received: from Darkmere.psychozone (foo.stahl.nu [194.18.231.27]) by chiba.3jane.net (Postfix) with ESMTP id 98267ABD79 for ; Thu, 6 Jun 2002 21:28:20 -0500 (CDT) Received: from Darkmere.psychozone (localhost [127.0.0.1]) by Darkmere.psychozone (Postfix) with SMTP id E7DE759813 for ; Fri, 7 Jun 2002 04:27:30 +0200 (CEST) Date: Fri, 7 Jun 2002 04:27:27 +0200 From: Spider To: gentoo-dev Message-Id: <20020607042727.04978bd7.spider@gentoo.org> Organization: Chaotic X-Mailer: Sylpheed version 0.7.6 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=.5,Ogf:o9+t9q+8" Subject: [gentoo-dev] inherit nowarn Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: 0d35f4ad-5220-485e-a051-9a271bfe13ad X-Archives-Hash: 269e7c055763c60978ec7c56577cbb9a --=.5,Ogf:o9+t9q+8 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit well, this is a little RFC... Since (according to the gcc FAQ, and "common sense" ) the flags -Wall and other extra warnings, pedantic and so on would requires more time/output to work, I'm suggesting a simple(?) eclass to recursively parse a source tree, match all "Makefile" and "makefile" and strip out extra warning flags from them. Why? Simple speed/convenience in many cases. Example, mozilla currently does a loooot of bad warnings due to gcc 3.1 incompabilities (deprecated headers) that sort of thing could be fixed with a "inherit nowarn" and "strip_warnings()" quoting gcc faq: Note that using -pedantic or -Wreturn-type can cause an explosion in the amount of memory needed for template-heavy C++ code, such as code that uses STL. Also note that -Wall includes -Wreturn-type, so if you use -Wall you will need to specify -Wno-return-type to turn it off. one way would be to add "-Wnoall" (not sure aobut this) and others would be to simply match "pedantic" "Wall" "Wdeprecated" and add a "Wno-deprecated" to kill all warnings. ideas on this approach please? //Spider -- begin .signature This is a .signature virus! Please copy me into your .signature! See Microsoft KB Article Q265230 for more information. end --=.5,Ogf:o9+t9q+8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9ABoRZS9CZTi033kRAvNnAKCo7prptngD7kPJwOtP7OvCFCpGwwCcDW0s CvcdWiJI7FlfRayHZEYVMmY= =ic42 -----END PGP SIGNATURE----- --=.5,Ogf:o9+t9q+8--