]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] silence redefinition of macro
authorChristian Göttsche <cgzones@googlemail.com>
Thu, 16 Jan 2020 14:01:19 +0000 (15:01 +0100)
committerChristian Göttsche <cgzones@googlemail.com>
Thu, 16 Jan 2020 18:37:12 +0000 (19:37 +0100)
[74/340] Building C object contrib/lua-lpeg/CMakeFiles/rspamd-lpeg.dir/lpprint.c.o
In file included from ../contrib/lua-lpeg/lpprint.c:11:
../contrib/lua-lpeg/lptypes.h:15: warning: "NDEBUG" redefined
   15 | #define NDEBUG
      |
<command-line>: note: this is the location of the previous definition
[75/340] Building C object contrib/lua-lpeg/CMakeFiles/rspamd-lpeg.dir/lpcap.c.o
In file included from ../contrib/lua-lpeg/lpcap.h:9,
                 from ../contrib/lua-lpeg/lpcap.c:9:
../contrib/lua-lpeg/lptypes.h:15: warning: "NDEBUG" redefined
   15 | #define NDEBUG
      |
<command-line>: note: this is the location of the previous definition
[77/340] Building C object contrib/lua-lpeg/CMakeFiles/rspamd-lpeg.dir/lpvm.c.o
In file included from ../contrib/lua-lpeg/lpcap.h:9,
                 from ../contrib/lua-lpeg/lpvm.c:15:
../contrib/lua-lpeg/lptypes.h:15: warning: "NDEBUG" redefined
   15 | #define NDEBUG
      |
<command-line>: note: this is the location of the previous definition
[79/340] Building C object contrib/lua-lpeg/CMakeFiles/rspamd-lpeg.dir/lpcode.c.o
In file included from ../contrib/lua-lpeg/lpcode.c:12:
../contrib/lua-lpeg/lptypes.h:15: warning: "NDEBUG" redefined
   15 | #define NDEBUG
      |
<command-line>: note: this is the location of the previous definition
[81/340] Building C object contrib/lua-lpeg/CMakeFiles/rspamd-lpeg.dir/lptree.c.o
In file included from ../contrib/lua-lpeg/lptree.c:15:
../contrib/lua-lpeg/lptypes.h:15: warning: "NDEBUG" redefined
   15 | #define NDEBUG
      |
<command-line>: note: this is the location of the previous definition

contrib/lua-lpeg/lptypes.h

index 9dee116cd516e6e076442bd67a94e2b02b56b9f9..46aac07a967a4a1eda769e7f3277af85c11fcf35 100644 (file)
@@ -11,7 +11,7 @@
 
 #include "config.h"
 
-#if !defined(LPEG_DEBUG)
+#if !defined(LPEG_DEBUG) && !defined(NDEBUG)
 #define NDEBUG
 #endif