diff options
| author | Eric Fiselier <eric@efcs.ca> | 2016-08-29 20:43:38 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2016-08-29 20:43:38 +0000 |
| commit | f6ac565031343554370a6a3139f88341765fa32d (patch) | |
| tree | f8c7be8756bd1ca87b4e9e5a040a550b80984c7e /llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp | |
| parent | 43e5fe3fac5f5925063acd29fc023ca287337eb4 (diff) | |
| download | llvm-f6ac565031343554370a6a3139f88341765fa32d.zip llvm-f6ac565031343554370a6a3139f88341765fa32d.tar.gz llvm-f6ac565031343554370a6a3139f88341765fa32d.tar.bz2 | |
Fix or suppress GCC warnings during build.
Summary:
Currently a number of GCC warnings are emitted when building libc++. This patch fixes or ignores all of them. The primary changes are:
* Work around strict aliasing issues in `typeinfo::hash_code()` by using __attribute__((may_alias)). However I think a non-aliasing `hash_code()` implementation is possible. Further investigation needed.
* Add `_LIBCPP_UNREACHABLE()` to switch in `strstream.cpp` to avoid -Wpotentially-uninitialized.
* Fix -Wunused-value warning in `__all` by adding a void cast.
* Ignore -Wattributes for now. There are a number of real attribute issues when using GCC but enabling the warning is too noisy.
* Ignore -Wliteral-suffix since it warns about the use of reserved identifiers. Note Only GCC 7.0 supports disabling this warning.
* Ignore -Wc++14-compat since it warns about the sized new/delete overloads.
Reviewers: EricWF
Differential Revision: https://reviews.llvm.org/D24003
llvm-svn: 280007
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp')
0 files changed, 0 insertions, 0 deletions
