From owner-freebsd-toolchain@FreeBSD.ORG Mon May 30 22:44:00 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 423E9106566B for ; Mon, 30 May 2011 22:44:00 +0000 (UTC) (envelope-from dieterbsd@engineer.com) Received: from mailout-us.mail.com (mailout-us.gmx.com [74.208.5.67]) by mx1.freebsd.org (Postfix) with SMTP id AAB788FC12 for ; Mon, 30 May 2011 22:43:59 +0000 (UTC) Received: (qmail 9551 invoked by uid 0); 30 May 2011 22:43:58 -0000 Received: from 67.206.161.57 by rms-us005.v300.gmx.net with HTTP Content-Type: text/plain; charset="utf-8" Date: Mon, 30 May 2011 22:43:55 +0000 From: "Dieter BSD" Message-ID: <20110530224357.95220@gmx.com> MIME-Version: 1.0 To: freebsd-hackers@freebsd.org,freebsd-toolchain@freebsd.org X-Authenticated: #74169980 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: mS/TeltcynCoPwXIBmBn/g9vcmZ1Zlxg Cc: Subject: Re: compiler warnings (was: Re: [rfc] a few kern.mk and bsd.sys.mk related changes) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2011 22:44:00 -0000 Chris writes: >> Ports need attention. The warnings I get there are frightening. > > I find it comforting that they're just that: warnings. > > How do they frighten you? High quality code does not have any warnings. The most frightening thing is the attitute that "They're just warnings, so I'll ignore them."  Most compiler warnings should be fatal errors. And a lot of the warnings that require a -Wwhatever should be on by default. Code that doesn't compile cleanly often has other problems, like assuming that all CPUs are ILP32 little endian, like not checking return codes, etc. But hey, the next time the weather service issues a tornado warning, feel free to go outside and fly a kite.  After all it's just a warning. a13x writes: > -Wcoercion seems to have only been a SoC project in 2006 [1]. i checked gcc > trunk and it's not in the gcc(1) manual. > > [1] http://gcc.gnu.org/wiki/Wcoercion And yet someone marked the bug fixed. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9072