diff options
| author | Eric Fiselier <eric@efcs.ca> | 2015-10-01 07:41:07 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2015-10-01 07:41:07 +0000 |
| commit | d866bdd6920759dbcfc6440d86c9da2c7a567511 (patch) | |
| tree | 4f1105a9c08ef6de15fda246f4c2204d9e401432 /libcxx | |
| parent | 5c736fe9ab3a8aa7aad3baf6ae72c54af239161b (diff) | |
| download | bcm5719-llvm-d866bdd6920759dbcfc6440d86c9da2c7a567511.tar.gz bcm5719-llvm-d866bdd6920759dbcfc6440d86c9da2c7a567511.zip | |
Manually suppress -Wnonnull when it occurs in an unevaluated context
llvm-svn: 248989
Diffstat (limited to 'libcxx')
| -rw-r--r-- | libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp | 6 | ||||
| -rw-r--r-- | libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp index d1cc4431bc7..046ec94f71e 100644 --- a/libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp +++ b/libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp @@ -12,6 +12,12 @@ #include <stdlib.h> #include <type_traits> +// As of 1/10/2015 clang emits a -Wnonnull warnings even if the warning occurs +// in an unevaluated context. For this reason we manually suppress the warning. +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wnonnull" +#endif + #ifndef EXIT_FAILURE #error EXIT_FAILURE not defined #endif diff --git a/libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp b/libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp index 8191350b57f..d8f88cf58d9 100644 --- a/libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp +++ b/libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp @@ -13,6 +13,12 @@ #include <type_traits> #include <cassert> +// As of 1/10/2015 clang emits a -Wnonnull warnings even if the warning occurs +// in an unevaluated context. For this reason we manually suppress the warning. +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wnonnull" +#endif + #ifndef EXIT_FAILURE #error EXIT_FAILURE not defined #endif |

