Browse Source

Replaced sizeof(exp) with a more static analysis frendly implementation. (#102)

Sergio R. Z. Masson 2 weeks ago
parent
commit
0571f0abad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      3rdparty/nvtt/nvcore/debug.h

+ 1 - 1
3rdparty/nvtt/nvcore/debug.h

@@ -17,7 +17,7 @@
 
 #define nvNoAssert(exp) \
     NV_MULTI_LINE_MACRO_BEGIN \
-    (void)sizeof(exp); \
+    (void)(false && (exp)); \
     NV_MULTI_LINE_MACRO_END
 
 #if NV_NO_ASSERT