Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/hsh.c: rename hsh local variable #111

Merged
merged 1 commit into from
Jan 12, 2023
Merged

lib/hsh.c: rename hsh local variable #111

merged 1 commit into from
Jan 12, 2023

Conversation

ffontaine
Copy link
Contributor

The hsh local variable name conflicts with the function prototype of hsh() in hsh.h, causing the following build issues with old compilers (gcc 4.7):

hsh.c: In function 'hsh':
hsh.c:28:21: error: declaration of 'hsh' shadows a global declaration [-Werror=shadow]
hsh.c:26:1: error: shadowed declaration is here [-Werror=shadow]
hsh.c: In function 'hsh_buf':
hsh.c:60:21: error: declaration of 'hsh' shadows a global declaration [-Werror=shadow]
hsh.c:26:1: error: shadowed declaration is here [-Werror=shadow]

Therefore, we rename this local variable to _hsh.

Signed-off-by: Thomas Petazzoni [email protected]
[Fabrice: Resent PR as #51 was closed but meson doesn't fix this issue)]
Signed-off-by: Fabrice Fontaine [email protected]

The hsh local variable name conflicts with the function prototype of
hsh() in hsh.h, causing the following build issues with old compilers
(gcc 4.7):

hsh.c: In function 'hsh':
hsh.c:28:21: error: declaration of 'hsh' shadows a global declaration [-Werror=shadow]
hsh.c:26:1: error: shadowed declaration is here [-Werror=shadow]
hsh.c: In function 'hsh_buf':
hsh.c:60:21: error: declaration of 'hsh' shadows a global declaration [-Werror=shadow]
hsh.c:26:1: error: shadowed declaration is here [-Werror=shadow]

Therefore, we rename this local variable to _hsh.

Signed-off-by: Thomas Petazzoni <[email protected]>
[Fabrice: Resent PR as #51 was closed but meson doesn't fix this issue)]
Signed-off-by: Fabrice Fontaine <[email protected]>
@ffontaine
Copy link
Contributor Author

Do you plan on merging this PR?

@sarroutbi sarroutbi merged commit 3d5b287 into latchset:master Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants