bug-coreutils
[Top][All Lists]
Advanced

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

bug#9064: coreutils-8.12 compiler warning


From: Joachim Schmitz
Subject: bug#9064: coreutils-8.12 compiler warning
Date: Wed, 13 Jul 2011 11:13:02 +0200

Double backet does not fix this warning. It is the HP NonStop c89 and c99
compiler without having disabled warnings (all warnings are on by default)
If it isn't a bug, forget about it, or maybe add a comment next to that line
about this.

-----Original Message-----
From: Pádraig Brady [mailto:address@hidden 
Sent: Wednesday, July 13, 2011 11:05 AM
To: Joachim Schmitz
Cc: address@hidden
Subject: Re: bug#9064: coreutils-8.12 compiler warning

On 13/07/11 08:55, Joachim Schmitz wrote:
> I found this in mktemp.c, line344 (well, my compiler found it for me 
> and warned about 'possible use of "=" where "==" was intended'):
> 
>       if (!dry_run && (stdout_closed = true) && close_stream (stdout) 
> != 0)
> 
> Not sure whether this is bug or feature ;-)

Well it's a feature.
We could reorganize but it would add a few more lines.
What compiler (option) is this?
Is the warning avoided by using double brackets like ((stdout_closed =
true))

cheers,
Pádraig.






reply via email to

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