bugzilla-daemon at bugzilla.mindrot.org
2011-May-06 10:46 UTC
[Bug 1901] New: Wrong configure result for -Wno-unused-result and gcc-4.4
https://bugzilla.mindrot.org/show_bug.cgi?id=1901
Summary: Wrong configure result for -Wno-unused-result and
gcc-4.4
Product: Portable OpenSSH
Version: 5.8p2
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: Build system
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: g.esp at free.fr
Since gcc-4.4, gcc will happily accept -Wno-<anything> for the reason
explained in http://gcc.gnu.org/PR28322
openssh configure test for -Wno-unused-result that is not know by
gcc-4.4 (only on gcc-4.5) but test did not fail.
Each time another warning is emitted (like
ignoring return value of 'write', declared with attribute
warn_unused_result ), on gcc-4.4 usage of -Wno-unused-result add this
warning
cc1: warning: unrecognized command line option "-Wno-unused-result"
This happen 9 times in openssh-5.8p2
The solution is to test if -Wunused-result is supported and in that
case only -Wno-unused-result could be used.
This is trivial for me to add -Wunused-result detection in
configure.ac.
But I don't know yet how to adapt that. When -Wunused-result is
detected to be supported, I don't know how the no- option only could be
added to supported flags.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-May-20 00:32 UTC
[Bug 1901] Wrong configure result for -Wno-unused-result and gcc-4.4
https://bugzilla.mindrot.org/show_bug.cgi?id=1901 --- Comment #1 from Damien Miller <djm at mindrot.org> 2011-05-20 10:32:48 EST --- Created attachment 2047 --> https://bugzilla.mindrot.org/attachment.cgi?id=2047 /home/djm/bz1901.diff check for -Woption, but set -Wno-option -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-May-20 00:33 UTC
[Bug 1901] Wrong configure result for -Wno-unused-result and gcc-4.4
https://bugzilla.mindrot.org/show_bug.cgi?id=1901
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2047| |ok?(dtucker at zip.com.au)
Flags| |
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-May-20 01:07 UTC
[Bug 1901] Wrong configure result for -Wno-unused-result and gcc-4.4
https://bugzilla.mindrot.org/show_bug.cgi?id=1901
Darren Tucker <dtucker at zip.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2047|ok?(dtucker at zip.com.au) |ok+
Flags| |
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-May-20 01:43 UTC
[Bug 1901] Wrong configure result for -Wno-unused-result and gcc-4.4
https://bugzilla.mindrot.org/show_bug.cgi?id=1901
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |djm at mindrot.org
Blocks| |1845
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Damien Miller <djm at mindrot.org> 2011-05-20 11:43:45
EST ---
Fixed - thanks.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-Sep-06 05:32 UTC
[Bug 1901] Wrong configure result for -Wno-unused-result and gcc-4.4
https://bugzilla.mindrot.org/show_bug.cgi?id=1901
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #3 from Damien Miller <djm at mindrot.org> 2011-09-06 15:32:58
EST ---
close resolved bugs now that openssh-5.9 has been released
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.