aboutsummaryrefslogtreecommitdiffstats
path: root/src/regex.c
diff options
context:
space:
mode:
authorPaul Eggert <[email protected]>2011-03-15 14:33:24 -0700
committerPaul Eggert <[email protected]>2011-03-15 14:33:24 -0700
commit4da60324405c45ce25b1de07c959b411463336db (patch)
tree08c4883b7407b44f32fb1ff8bfa6b1b230f163a5 /src/regex.c
parentdb69b0cde386ed1e4cc928f5beb916107ee9fc88 (diff)
* regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/regex.c b/src/regex.c
index e6d0da9631..a60ff0ce35 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -1267,6 +1267,13 @@ print_double_string (where, string1, size1, string2, size2)
#endif /* not DEBUG */
+/* Use this to suppress gcc's `...may be used before initialized' warnings. */
+#ifdef lint
+# define IF_LINT(Code) Code
+#else
+# define IF_LINT(Code) /* empty */
+#endif
+
/* Set by `re_set_syntax' to the current regexp syntax to recognize. Can
also be assigned to arbitrarily: each pattern buffer stores its own
syntax, so it can be changed between regex compilations. */