From: Paul Eggert Date: Fri, 3 May 2019 19:38:28 +0000 (-0700) Subject: Simplify use of NDEBUG in etags.c X-Git-Tag: emacs-27.0.90~3001 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6caf9be6cacad2da36f2a1303304df588325d38b;p=emacs.git Simplify use of NDEBUG in etags.c * lib-src/etags.c [!DEBUG]: Do not define NDEBUG, as that’s conf_post.h’s job now. [NDEBUG]: Do not redefine ‘assert’, as that works around ancient bugs (e.g., sunos4 pcc) that don’t matter any more, as can be seen that other Emacs source files that successfully use assert.h without this workaround. --- diff --git a/lib-src/etags.c b/lib-src/etags.c index 362897fb0c3..949ab5a2c6b 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -84,10 +84,7 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4"; # undef DEBUG # define DEBUG true #else -# define DEBUG false -# ifndef NDEBUG -# define NDEBUG /* disable assert */ -# endif +# define DEBUG false #endif #include @@ -131,11 +128,6 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4"; #include #include -#ifdef NDEBUG -# undef assert /* some systems have a buggy assert.h */ -# define assert(x) ((void) 0) -#endif - #include #include