summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-03-07 09:46:44 +0100
committerWerner Koch <wk@gnupg.org>2014-03-07 14:00:14 +0100
commit84fd36f8baa2b800ea47ff74935f5aaf0e55c299 (patch)
tree2b10f7924296b329886b22e9adfddc165bb42198
parentcommon: Fix build problem with Sun Studio compiler. (diff)
downloadgnupg2-84fd36f8baa2b800ea47ff74935f5aaf0e55c299.tar.xz
gnupg2-84fd36f8baa2b800ea47ff74935f5aaf0e55c299.zip
gl: Avoid warning about shadowing an arg.
* gl/setenv.c (KNOWN_VALUE): s/value/_v/.
-rw-r--r--gl/setenv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gl/setenv.c b/gl/setenv.c
index 1c8338f2e..775d29c21 100644
--- a/gl/setenv.c
+++ b/gl/setenv.c
@@ -81,8 +81,8 @@ static void *known_values;
# define KNOWN_VALUE(Str) \
({ \
- void *value = tfind (Str, &known_values, (compar_fn_t) strcmp); \
- value != NULL ? *(char **) value : NULL; \
+ void *_v = tfind (Str, &known_values, (compar_fn_t) strcmp); \
+ _v != NULL ? *(char **) _v : NULL; \
})
# define STORE_VALUE(Str) \
tsearch (Str, &known_values, (compar_fn_t) strcmp)