[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: -Werror flag set unconditionally

From: Branko Čibej <brane_at_wandisco.com>
Date: Thu, 20 Dec 2012 05:14:13 +0100

On 20.12.2012 05:08, Arfrever Frehtes Taifersar Arahesis wrote:
> 2012-12-20 04:41:56 Branko Čibej napisał(a):
>> We want to always use -Werror=implicit-function-declaration (if compiler supports it)
>> to ensure that nobody forgets to include required headers.
>> I'm not convinced. We add -Wmissing-prototypes in maintainer-mode. Why
>> would we act differently in this case?
> -Wmissing-prototypes and -Werror=missing-prototypes do NOT detect calls to undeclared functions in C.

That wasn't my point. My point is that since we add
-Wmissing-prototypes (and other, more interesting warnings) only in
maintainer mode, why then do we set Wimplicit-function-declaration

(And really, why not just -Werror=implicit while we're at it).

-- Brane

Branko Čibej
Director of Subversion | WANdisco | www.wandisco.com
Received on 2012-12-20 05:14:52 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.