diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2018-08-12 11:10:11 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-08-12 11:13:15 -0700 |
commit | d966f8d29110f74d84187e013ca8c7e7411951aa (patch) | |
tree | ae81697cb1e67eeae3bc72396c069e00706b45f4 /lib-src/etags.c | |
parent | 135037397a568bbeb4af43f9cb98ff35fd86e03f (diff) | |
download | emacs-d966f8d29110f74d84187e013ca8c7e7411951aa.tar.gz |
Make mini-gmp safe for --enable-gcc-warnings
* configure.ac (GMP_OBJ): When building mini-gmp, compile
mini-gmp-emacs.c, not mini-gmp.c.
* lib-src/etags.c (NDEBUG): Don't attempt to redefine, in
case the builder compiles with -DNDEBUG.
* src/conf_post.h (NDEBUG) [!ENABLE_CHECKING && !NDEBUG]: Define.
This avoids bloat in mini-gmp-emacs.o.
* src/mini-gmp-emacs.c: New file, which pacifies --enable-gcc-warnings.
Diffstat (limited to 'lib-src/etags.c')
-rw-r--r-- | lib-src/etags.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index ee506703436..102d867b387 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -85,7 +85,9 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4"; # define DEBUG true #else # define DEBUG false -# define NDEBUG /* disable assert */ +# ifndef NDEBUG +# define NDEBUG /* disable assert */ +# endif #endif #include <config.h> |