Mailinglist Archive: opensuse-packaging (151 mails)
| < Previous | Next > |
Re: [opensuse-packaging] New default warning for -Wall (-Wstrict-prototypes)
- From: Richard Guenther <rguenther@xxxxxxx>
- Date: Tue, 29 Jan 2008 15:17:10 +0100 (CET)
- Message-id: <Pine.LNX.4.64.0801291515070.7704@xxxxxxxxxxxxxx>
On Tue, 29 Jan 2008, Dirk Mueller wrote:
The most common "false positive" is
void foo();
for declaring a function which takes no parameters (which is not a correct
prototype for C, but is for C++).
Richard.
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
On Tuesday 29 January 2008, Stephan Kulow wrote:
But the warning is not fatal. It would mean way too many fallouts for false
positives.
Well, it was just a general topic, but while we're talking on this
specifically: by definition there can't be false positives
for -Wstrict-prototypes. And the reason for them being turned on is (iirc)
The most common "false positive" is
void foo();
for declaring a function which takes no parameters (which is not a correct
prototype for C, but is for C++).
Richard.
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
| < Previous | Next > |