[llvm-dev] GCC 5 and -Wstrict-aliasing in JSON.h
Kim Gräsman via llvm-dev
llvm-dev at lists.llvm.org
Wed Aug 8 13:31:44 PDT 2018
Hello,
For the IWYU project, we have a buildbot on Ubuntu 16.04 and its
bundled GCC (which I think is some GCC 5 variant).
We're getting a number of -Wstrict-aliasing warnings from JSON.h on this line:
https://github.com/llvm-mirror/llvm/blob/master/include/llvm/Support/JSON.h#L455
I'm not sure if GCC has a point here but GCC 7.2 does not complain, so
I'm going to guess no.
Would you consider patches to disable -Wstrict-aliasing wholesale for
GCC 5 and older?
- Kim
More information about the llvm-dev
mailing list