[libunwind] r266927 - unwind: remove another instance of -Wexpansion-to-defined

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 20 15:18:50 PDT 2016


Author: compnerd
Date: Wed Apr 20 17:18:50 2016
New Revision: 266927

URL: http://llvm.org/viewvc/llvm-project?rev=266927&view=rev
Log:
unwind: remove another instance of -Wexpansion-to-defined

Remove the use of undefined behaviour in the c preprocessor by always defining
the value according to the state that was being checked.  NFC.

Modified:
    libunwind/trunk/src/config.h

Modified: libunwind/trunk/src/config.h
URL: http://llvm.org/viewvc/llvm-project/libunwind/trunk/src/config.h?rev=266927&r1=266926&r2=266927&view=diff
==============================================================================
--- libunwind/trunk/src/config.h (original)
+++ libunwind/trunk/src/config.h Wed Apr 20 17:18:50 2016
@@ -82,7 +82,11 @@
   #endif
 #endif
 
-#define _LIBUNWIND_SUPPORT_FRAME_APIS (defined(__i386__) || defined(__x86_64__))
+#if defined(__i386__) || defined(__x86_64__)
+#define _LIBUNWIND_SUPPORT_FRAME_APIS 1
+#else
+#define _LIBUNWIND_SUPPORT_FRAME_APIS 0
+#endif
 
 #if defined(__i386__) || defined(__x86_64__) ||                                \
     (!defined(__APPLE__) && defined(__arm__)) ||                               \




More information about the cfe-commits mailing list