Sfoglia il codice sorgente

Fix compiler warning when NDEBUG is defined

rdb 16 anni fa
parent
commit
64cd2984ee
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      panda/src/tinydisplay/msghandling.cxx

+ 3 - 0
panda/src/tinydisplay/msghandling.cxx

@@ -1,7 +1,10 @@
 #include <stdarg.h>
 #include <stdio.h>
 
+#ifndef NDEBUG
+// Question: doesn't having this kinda defeat the purpose?
 #define NDEBUG
+#endif
 
 #ifdef NDEBUG
 #define NO_DEBUG_OUTPUT