diff --git a/sed/compile.c b/sed/compile.c index 77aec27..b94b199 100644 --- a/sed/compile.c +++ b/sed/compile.c @@ -439,7 +439,7 @@ snarf_char_class(b, cur_stat) { int ch; int state = 0; - int delim; + int delim IF_LINT ( = 0) ; bool pending_mb = 0; ch = inchar(); diff --git a/sed/sed.h b/sed/sed.h index 1ca489f..5f947e9 100644 --- a/sed/sed.h +++ b/sed/sed.h @@ -262,3 +262,10 @@ extern bool is_utf8; extern int brlen (int ch, mbstate_t *ps); extern void initialize_mbcs (void); + +/* 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