diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-07-23 19:55:24 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-07-23 19:55:24 +0200 |
commit | d0bec3175ff5cf6582ffbf584b73ea6aaea838d0 (patch) | |
tree | 074af0d68b5d53d4d7cb0d8948c31244c67724f4 | |
parent | 79e68b6c4da597472adb28130417b869c79d388d (diff) | |
download | bison-d0bec3175ff5cf6582ffbf584b73ea6aaea838d0.tar.gz |
style: avoid warnings with GCC 4.6
With have a clash with the "max" function.
src/counterexample.c: In function 'visited_hasher':
src/counterexample.c:720:48: error: declaration of 'max' shadows a global declaration [-Werror=shadow]
src/counterexample.c:116:12: error: shadowed declaration is here [-Werror=shadow]
* src/counterexample.c (visited_hasher): Alpha conversion.
-rw-r--r-- | src/counterexample.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/counterexample.c b/src/counterexample.c index 9e89a5c0..4dc5c708 100644 --- a/src/counterexample.c +++ b/src/counterexample.c @@ -717,10 +717,10 @@ ssb_equals (const search_state_bundle *s1, const search_state_bundle *s2) typedef gl_list_t ssb_list; static size_t -visited_hasher (const search_state *ss, size_t max) +visited_hasher (const search_state *ss, size_t maximum) { - return (parse_state_hasher (ss->states[0], max) - + parse_state_hasher (ss->states[1], max)) % max; + return (parse_state_hasher (ss->states[0], maximum) + + parse_state_hasher (ss->states[1], maximum)) % maximum; } static bool |