[libcxx] r257707 - Tame a -Wunknown-attributes warning
Jonathan Roelofs via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 13 15:27:08 PST 2016
Author: jroelofs
Date: Wed Jan 13 17:27:08 2016
New Revision: 257707
URL: http://llvm.org/viewvc/llvm-project?rev=257707&view=rev
Log:
Tame a -Wunknown-attributes warning
Modified:
libcxx/trunk/include/__config
Modified: libcxx/trunk/include/__config
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__config?rev=257707&r1=257706&r2=257707&view=diff
==============================================================================
--- libcxx/trunk/include/__config (original)
+++ libcxx/trunk/include/__config Wed Jan 13 17:27:08 2016
@@ -434,7 +434,7 @@ namespace std {
#endif
// Allow for build-time disabling of unsigned integer sanitization
-#ifndef _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK
+#if !defined(_LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK) && __has_attribute(no_sanitize)
#define _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK __attribute((no_sanitize("unsigned-integer-overflow")))
#endif
More information about the cfe-commits
mailing list