From: Ulya Trofimovich Date: Sat, 13 Jul 2019 10:34:34 +0000 (+0100) Subject: Fixed Clang warning -Wmissing-variable-declarations. X-Git-Tag: 1.2~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27ad1deb152bba05687b8c3e0b3a0f0737be2037;p=re2c Fixed Clang warning -Wmissing-variable-declarations. --- diff --git a/lib/regexec_nfa_posix_backward.cc b/lib/regexec_nfa_posix_backward.cc index bebdc622..8fa08d71 100644 --- a/lib/regexec_nfa_posix_backward.cc +++ b/lib/regexec_nfa_posix_backward.cc @@ -93,14 +93,14 @@ static void copy_offs(psimctx_t &ctx, const nfa_state_t *y, const nfa_state_t *x static inline void accept_offsets(psimctx_t &ctx, const nfa_state_t *s); // debug -int D = 0; +static int D = 0; static void prtoff(psimctx_t &ctx, size_t x, bool newer); static inline void prtoff4(psimctx_t &ctx, size_t x); static inline void prtoff5(psimctx_t &ctx, size_t x); -regoff_t *offsets4 = NULL; -regoff_t *offsets5 = NULL; -regoff_t *offsets6 = NULL; +static regoff_t *offsets4 = NULL; +static regoff_t *offsets5 = NULL; +static regoff_t *offsets6 = NULL; int regexec_nfa_posix_backward(const regex_t *preg, const char *string , size_t nmatch, regmatch_t pmatch[], int /* eflags */)