summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/regex.c7
2 files changed, 9 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 91d5069d559..2ebee67dba2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
2011-03-15 Paul Eggert <eggert@cs.ucla.edu>
+ * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
+
Use functions, not macros, for up- and down-casing (Bug#8254).
* buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
(NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
diff --git a/src/regex.c b/src/regex.c
index e6d0da96312..a60ff0ce35c 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. */