gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Small issue on GnuTLS 2.10.2


From: Sam Varshavchik
Subject: Re: Small issue on GnuTLS 2.10.2
Date: Thu, 30 Sep 2010 18:08:00 -0400

Vivek Dasmohapatra writes:

On Thu, 30 Sep 2010, Vivek Dasmohapatra wrote:

On Thu, 30 Sep 2010, Dr. David Kirkby wrote:

Thanks, fixed.  I wish we could catch these with a GCC warning so you
don't have to run into them all the time...

make sizeof
cc     sizeof.c   -o sizeof
sizeof.c: In function ‘wfm’:
sizeof.c:11: warning: ‘return’ with a value, in function returning void

tested wiith: gcc (Debian 4.4.3-3) 4.4.3
             gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu4)

Seems to warn just fine.

And you can crank up the pedantry even further with --pedantic,
which will warn of a void expression return in a function
with a void return signature.

And -Werror, which will make any warning fail the build.

Attachment: pgpZxT6SUlwNI.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]