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: Dr. David Kirkby
Subject: Re: Small issue on GnuTLS 2.10.2
Date: Sat, 02 Oct 2010 19:38:47 +0100
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.7) Gecko/20100214 Thunderbird/3.0.1

On 09/30/10 06:16 PM, Vivek Dasmohapatra wrote:
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.

Still though, using the Sun compiler on Linux will give you another "opinion". I'd trust the Sun compiler more than gcc. SunStudio also comes with a "lint" program too.

At least the Sun compilers compiles C.

gcc compiles a both a superset and a subset of the C programming language. (i.e. gcc fails to fully support C99, but has tons of extensions).

Dave



reply via email to

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