summaryrefslogtreecommitdiff
path: root/src/conf_post.h
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2012-08-10 14:23:45 -0400
committerGlenn Morris <rgm@gnu.org>2012-08-10 14:23:45 -0400
commit25e65510a3d35524ade205c3114970c43dc6ae05 (patch)
treed7a273c6b8cc4fbecaaae8d237950d26acaf8d66 /src/conf_post.h
parent1530c98e56d331a21ba7ef2c940d1441442ac798 (diff)
downloademacs-25e65510a3d35524ade205c3114970c43dc6ae05.tar.gz
Move IF_LINT from lisp.h to conf_post.h
* src/conf_post.h (IF_LINT, lint_assume): Move here from lisp.h. * src/lisp.h (IF_LINT, lint_assume): Move to conf_post.h. * lib-src/make-docfile.c (IF_LINT): * lib-src/emacsclient.c (IF_LINT): Remove (in config.h now).
Diffstat (limited to 'src/conf_post.h')
-rw-r--r--src/conf_post.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/conf_post.h b/src/conf_post.h
index e935940e54a..ead7298e98d 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -218,4 +218,16 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
#define INLINE_HEADER_BEGIN _GL_INLINE_HEADER_BEGIN
#define INLINE_HEADER_END _GL_INLINE_HEADER_END
+/* Use this to suppress gcc's `...may be used before initialized' warnings. */
+#ifdef lint
+/* Use CODE only if lint checking is in effect. */
+# define IF_LINT(Code) Code
+/* Assume that the expression COND is true. This differs in intent
+ from 'assert', as it is a message from the programmer to the compiler. */
+# define lint_assume(cond) ((cond) ? (void) 0 : abort ())
+#else
+# define IF_LINT(Code) /* empty */
+# define lint_assume(cond) ((void) (0 && (cond)))
+#endif
+
/* conf_post.h ends here */