From 4da60324405c45ce25b1de07c959b411463336db Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 15 Mar 2011 14:33:24 -0700 Subject: [PATCH] * regex.c (IF_LINT): Add defn, for benefit of ../lib-src. --- src/ChangeLog | 2 ++ src/regex.c | 7 +++++++ 2 files changed, 9 insertions(+) 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 + * 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. */ -- 2.39.2