# HG changeset patch # User Paul Eggert # Date 1373394901 25200 # Node ID b3516a31a38667d426382f1344839724613d3649 # Parent d8be19310ad93bb4afdb67fb7d7c78042a51952d regex: port to --with-included-regex --enable-gcc-warnings non-threaded * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid gcc warnings in the non-threaded case. Reported by Charlie Brown in . diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2013-07-09 Paul Eggert + regex: port to --with-included-regex --enable-gcc-warnings non-threaded + * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid + gcc warnings in the non-threaded case. Reported by Charlie Brown in + . + accept4, dup3, pipe2: port to Cygwin Problem reported for Emacs by Ken Brown in . * lib/accept4.c (accept4) [O_BINARY]: diff --git a/lib/regex_internal.h b/lib/regex_internal.h --- a/lib/regex_internal.h +++ b/lib/regex_internal.h @@ -72,8 +72,9 @@ #else # define lock_define(name) # define lock_init(lock) 0 -# define lock_fini(lock) 0 -# define lock_lock(lock) ((void) 0) +# define lock_fini(lock) ((void) 0) + /* The 'dfa' avoids an "unused variable 'dfa'" warning from GCC. */ +# define lock_lock(lock) ((void) dfa) # define lock_unlock(lock) ((void) 0) #endif