[libcxx-commits] [PATCH] D108896: [libc++abi] Avoid the waring: "__EXCEPTIONS" is not defined, evaluates to 0 [-Werror=undef]

Xiang Xiao via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Aug 29 12:10:45 PDT 2021


xiaoxiang781216 created this revision.
xiaoxiang781216 requested review of this revision.
Herald added a project: libc++abi.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++abi.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108896

Files:
  libcxxabi/include/__cxxabi_config.h


Index: libcxxabi/include/__cxxabi_config.h
===================================================================
--- libcxxabi/include/__cxxabi_config.h
+++ libcxxabi/include/__cxxabi_config.h
@@ -93,7 +93,7 @@
 #  if !__has_feature(cxx_exceptions)
 #    define _LIBCXXABI_NO_EXCEPTIONS
 #  endif
-#elif defined(_LIBCXXABI_COMPILER_GCC) && !__EXCEPTIONS
+#elif defined(_LIBCXXABI_COMPILER_GCC) && !defined(__EXCEPTIONS)
 #  define _LIBCXXABI_NO_EXCEPTIONS
 #endif
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108896.369334.patch
Type: text/x-patch
Size: 464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210829/e3def432/attachment.bin>


More information about the libcxx-commits mailing list