summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-05-30 16:09:25 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-05-30 16:13:04 -0700
commitcb379cbb7fc617f897e7dbc3ce45bf99ea3d1f87 (patch)
treecf6cf625bb880b9ca5453bce43c474c1d73f4d62 /src
parente7b01df5cf83cdb7e7ca5558a0f557cf6354dace (diff)
downloademacs-cb379cbb7fc617f897e7dbc3ce45bf99ea3d1f87.tar.gz
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.h3
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 *);
# define FLEXIBLE_ARRAY_MEMBER
#endif
-/* Use this to suppress gcc's `...may be used before initialized' warnings. */
-#ifdef lint
/* Use CODE only if lint checking is in effect. */
+#if defined GCC_LINT || defined lint
# define IF_LINT(Code) Code
#else
# define IF_LINT(Code) /* empty */