summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-07-09 11:35:01 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2013-07-09 11:35:24 -0700
commitda8d59ee79138b85daee1ad5b22ea12e4fb6ce47 (patch)
tree5f429bf6f7aa7d9179af35380e2faeba0cc83e34 /lib
parentceb26704b6d3047bfd7c109a471c9d6c7c812904 (diff)
downloadgnulib-da8d59ee79138b85daee1ad5b22ea12e4fb6ce47.tar.gz
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 <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
Diffstat (limited to 'lib')
-rw-r--r--lib/regex_internal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/regex_internal.h b/lib/regex_internal.h
index c92fb1a385..0d19f3511e 100644
--- 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