[RFC] cygport: use -Werror=implicit-function-declarations

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Oct 17 09:38:00 GMT 2013

On Oct 16 18:42, Yaakov (Cygwin/X) wrote:
> One of the more common causes of SEGVs with x86_64-cygwin packages
> occurs when an implicit function declaration causes an assumption
> that all arguments and the return value are of type 'int' (32 bits)
> where some or all of these are longs or pointers (64 bits on
> x86_64).  One way of avoiding such errors is to add
> -Werror=implicit-function-declarations to the default
> CFLAGS/OBJCFLAGS, and in my brief testing to date, this has already
> caught a number of cases where this would have broken the package on
> x86_64.
> One potential drawback is that this flag may cause false negatives
> in poorly written configure tests; without extensive testing, I
> can't say yet how prevalent this would be, but I think that making
> this an error and perusing config.log is generally easier than
> making it just a warning and having to sift through the entire
> output of make.

Uh... I'm not so sure about that.  I would rather see the configure
tests running through, but like the idea to have
-Werror=implicit-function-declaration set for the actual make stage.

It's more important that configure tests run to check for existence
of stuff, and not being able to configure is a really annoying


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20131017/c52938ef/attachment.sig>

More information about the Cygwin-apps mailing list