diff options
| author | Paul Eggert | 2016-05-30 16:09:25 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-05-30 16:13:04 -0700 |
| commit | cb379cbb7fc617f897e7dbc3ce45bf99ea3d1f87 (patch) | |
| tree | cf6cf625bb880b9ca5453bce43c474c1d73f4d62 /src | |
| parent | e7b01df5cf83cdb7e7ca5558a0f557cf6354dace (diff) | |
| download | emacs-cb379cbb7fc617f897e7dbc3ce45bf99ea3d1f87.tar.gz emacs-cb379cbb7fc617f897e7dbc3ce45bf99ea3d1f87.zip | |
Port --enable-gcc-warnings to Cygwin, FreeBSD
These platforms have a bug where _Noreturn is empty when 'lint' is
defined. Problem reported by Ken Brown (Bug#23640).
* configure.ac (GCC_LINT): Rename from 'lint'.
* src/conf_post.h (IF_LINT): Use GCC_LINT, not just 'lint’.
Diffstat (limited to 'src')
| -rw-r--r-- | src/conf_post.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/conf_post.h b/src/conf_post.h index 5d3394fafce..f16f8ee791a 100644 --- a/src/conf_post.h +++ b/src/conf_post.h | |||
| @@ -343,9 +343,8 @@ extern int emacs_setenv_TZ (char const *); | |||
| 343 | # define FLEXIBLE_ARRAY_MEMBER | 343 | # define FLEXIBLE_ARRAY_MEMBER |
| 344 | #endif | 344 | #endif |
| 345 | 345 | ||
| 346 | /* Use this to suppress gcc's `...may be used before initialized' warnings. */ | ||
| 347 | #ifdef lint | ||
| 348 | /* Use CODE only if lint checking is in effect. */ | 346 | /* Use CODE only if lint checking is in effect. */ |
| 347 | #if defined GCC_LINT || defined lint | ||
| 349 | # define IF_LINT(Code) Code | 348 | # define IF_LINT(Code) Code |
| 350 | #else | 349 | #else |
| 351 | # define IF_LINT(Code) /* empty */ | 350 | # define IF_LINT(Code) /* empty */ |