diff options
| author | Paul Eggert | 2018-08-12 11:10:11 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-08-12 11:13:15 -0700 |
| commit | d966f8d29110f74d84187e013ca8c7e7411951aa (patch) | |
| tree | ae81697cb1e67eeae3bc72396c069e00706b45f4 /lib-src | |
| parent | 135037397a568bbeb4af43f9cb98ff35fd86e03f (diff) | |
| download | emacs-d966f8d29110f74d84187e013ca8c7e7411951aa.tar.gz emacs-d966f8d29110f74d84187e013ca8c7e7411951aa.zip | |
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')
| -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"; | |||
| 85 | # define DEBUG true | 85 | # define DEBUG true |
| 86 | #else | 86 | #else |
| 87 | # define DEBUG false | 87 | # define DEBUG false |
| 88 | # define NDEBUG /* disable assert */ | 88 | # ifndef NDEBUG |
| 89 | # define NDEBUG /* disable assert */ | ||
| 90 | # endif | ||
| 89 | #endif | 91 | #endif |
| 90 | 92 | ||
| 91 | #include <config.h> | 93 | #include <config.h> |