14 Jan
2010
14 Jan
'10
10:01 a.m.
On Jan 14, 2010, at 1:17 AM, Krzysztof KosiĆski wrote:
Hello
I put in some extra code in configure.ac to turn off strict aliasing warnings when boost::optional emits a lot of them. It tries to compile a short snippet using boost::optional with -Werror=strict-aliasing, and if it fails, it adds -Wno-strict-aliasing to CXXFLAGS. It might be a bit unsafe, because we won't see aliasing warnings from things other than boost::optional, but on the other hand the legitimate warnings that can highlight real problems won't be crowded out by those spurious warnings we can't fix
Is there any other way you can address this???
Turning off such warnings is generally a very bad thing to do, and as you mention, is unsafe.