]> git.eshelyaron.com Git - emacs.git/commitdiff
Port mod-test to --enable-gcc-warnings
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 May 2019 16:07:44 +0000 (09:07 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 May 2019 16:08:24 +0000 (09:08 -0700)
* test/data/emacs-module/mod-test.c (NDEBUG): Undef, to prevent
GCC from complaining “error: unused variable ‘dummy’” and failing
to build the test, if --enable-gcc-warnings.

test/data/emacs-module/mod-test.c

index ad962d5f685f82f6171fdc6c77865f7cdd4bfeab..2891b73c1a01044ebc55dc234dc9bff609b11ac6 100644 (file)
@@ -19,7 +19,9 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.  */
 
 #include "config.h"
 
+#undef NDEBUG
 #include <assert.h>
+
 #include <errno.h>
 #include <limits.h>
 #include <stdio.h>