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

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 30 10:34:53 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGed4946fe2096: [libc++abi] Avoid the warning: "__EXCEPTIONS" is not defined, evaluates to 0… (authored by xiaoxiang781216, committed by ldionne).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108896/new/

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.369486.patch
Type: text/x-patch
Size: 464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210830/0343bf87/attachment-0001.bin>


More information about the libcxx-commits mailing list