Revision: 76792
          http://sourceforge.net/p/brlcad/code/76792
Author:   starseeker
Date:     2020-08-15 15:17:50 +0000 (Sat, 15 Aug 2020)
Log Message:
-----------
Looks like the github runner Ubuntu+GCC doesn't like the non-NULL pointer check 
here.

Modified Paths:
--------------
    brlcad/trunk/include/bu/magic.h

Modified: brlcad/trunk/include/bu/magic.h
===================================================================
--- brlcad/trunk/include/bu/magic.h     2020-08-15 14:47:29 UTC (rev 76791)
+++ brlcad/trunk/include/bu/magic.h     2020-08-15 15:17:50 UTC (rev 76792)
@@ -241,8 +241,7 @@
 #  define BU_CKMAG(_ptr, _magic, _str) (void)(_ptr)
 #else
 #  define BU_CKMAG(_ptr, _magic, _str) do { \
-    if (UNLIKELY(( (!(_ptr)) /* non-NULL pointer */ \
-                  || ((uintptr_t)(_ptr) == 0) /* non-zero pointer */ \
+    if (UNLIKELY(( ((uintptr_t)(_ptr) == 0) /* non-zero pointer */ \
                   || ((uintptr_t)(_ptr) & (sizeof((uintptr_t)(_ptr))-1)) /* 
aligned ptr */ \
                   || (*((const uint32_t *)(_ptr)) != (uint32_t)(_magic)) /* 
matches value */ \
                     ))) { \

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to