[Bf-blender-cvs] [21ab8a3] experimental-build: Put more warnings to test atomic-ops

Benoit Bolsee noreply at git.blender.org
Thu May 19 15:41:49 CEST 2016


Commit: 21ab8a3bfe7a018831c1d1b9959669b803452a84
Author: Benoit Bolsee
Date:   Thu May 19 15:41:18 2016 +0200
Branches: experimental-build
https://developer.blender.org/rB21ab8a3bfe7a018831c1d1b9959669b803452a84

Put more warnings to test atomic-ops

===================================================================

M	intern/atomic/intern/atomic_ops_utils.h

===================================================================

diff --git a/intern/atomic/intern/atomic_ops_utils.h b/intern/atomic/intern/atomic_ops_utils.h
index a1155b6..30edf3e 100644
--- a/intern/atomic/intern/atomic_ops_utils.h
+++ b/intern/atomic/intern/atomic_ops_utils.h
@@ -95,13 +95,21 @@
 #    define LG_SIZEOF_PTR 4
 #  elif (__WORDSIZE == 64)
 #    define LG_SIZEOF_PTR 8
+#  else 
+#    warning "__WORDSIZE is defined but does not match a known value"
+#    define __WORDSIZE 1
 #  endif
 #elif defined(WORD_BIT)  /* Fallback for older glibc and cpp */
 #  if (WORD_BIT == 32)
 #    define LG_SIZEOF_PTR 4
 #  elif (WORD_BIT == 64)
 #    define LG_SIZEOF_PTR 8
+#  else 
+#    warning "WORD_BIT is defined but does not match a known value"
+#    define WORD_BIT 1
 #  endif
+#else
+# warning "None of UINTPTR_MAX, __WORDSIZE or WORD_BIT are defined!"
 #endif
 
 #ifndef LG_SIZEOF_PTR




More information about the Bf-blender-cvs mailing list