Manually suppress -Wnonnull when it occurs in an unevaluated context
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@248989 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5289b0d698
commit
9698ac5a68
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user