diff options
author | Gerald Combs <gerald@wireshark.org> | 2014-04-29 11:29:26 -0400 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-04-29 15:35:29 +0000 |
commit | b60ccf6dae9c3f29fce8644cebb685246a349921 (patch) | |
tree | 48e6fda3e574cf065e307bb76d344fb99ec2f998 | |
parent | e185ad6ac9dca6e3b7b19fd37009b6205ce19b20 (diff) |
Fix an extraneous parentheses warning.
"if (G_UNLIKELY(...))" triggers an extraneous parentheses warning when
compiling with XCode's clang-500.2.75. From looking at the macro
definition we *should* be able to get rid of the outer parentheses
everywhere.
Change-Id: I710e1cc391e1167c1243c4ddb032f2831f0a9498
Reviewed-on: https://code.wireshark.org/review/1432
Reviewed-by: Gerald Combs <gerald@wireshark.org>
-rw-r--r-- | epan/wmem/wmem_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wmem/wmem_map.c b/epan/wmem/wmem_map.c index 5db988133e..7fb9310653 100644 --- a/epan/wmem/wmem_map.c +++ b/epan/wmem/wmem_map.c @@ -36,7 +36,7 @@ void wmem_init_hashing(void) { x = g_random_int(); - if (G_UNLIKELY(x == 0)) + if G_UNLIKELY(x == 0) x = 1; preseed = g_random_int(); |