myself659 / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Configure test for -Wno-unused-result always returns "yes" #700

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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