-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a compilation warning in command.c relating to kpos shadowing
When building with the gcc -Wshadow option, a warning is generated in redis_parse_cmd() because the second and third declarations of the same-named kpos variable share scope. It's benign but it'd be great to have clean compilation when using this option. This commit implements Viktor Söderqvist's refactoring approach as described in github PR #201.
- Loading branch information
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters