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.
Created attachment 2047 [details] /home/djm/bz1901.diff check for -Woption, but set -Wno-option
Fixed - thanks.
close resolved bugs now that openssh-5.9 has been released