What steps will reproduce the problem?
1. Find a gcc version that does not accept -Wno-unused-result
2. Run configure
What is the expected output? What do you see instead?
I expect that the output of configure will include
checking if the compiler supports -Wno-unused-result... no
but instead I see
checking if the compiler supports -Wno-unused-result... yes
What version of the product are you using? On what operating system?
I am on RHEL 6, using gcc 4.4.7 (Red Hat 4.4.7-11). I am configuring
gperftools-2.4 newly unpacked from the release tarball.
Please provide any additional information below.
I suspect that the "-Wno-error" flag is responsible. This keeps the test from
failing due to the divide by zero error, but it also keeps the test from
failing due to an actual unexpected flag. The return code of gcc is still 0.
Original issue reported on code.google.com by jsw....@gmail.com on 20 Jul 2015 at 5:10
Original issue reported on code.google.com by
jsw....@gmail.com
on 20 Jul 2015 at 5:10