Skip to content

Commit

Permalink
tests/throttle: Clean up global variable shadowing
Browse files Browse the repository at this point in the history
Follow all other tests pattern from this file, use the
global 'cfg' variable to fix:

  tests/unit/test-throttle.c:621:20: error: declaration shadows a variable in the global scope [-Werror,-Wshadow]
      ThrottleConfig cfg;
                     ^
  tests/unit/test-throttle.c:28:23: note: previous declaration is here
  static ThrottleConfig cfg;
                        ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Alberto Garcia <berto@igalia.com>
Message-ID: <20231009100251.56019-3-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
  • Loading branch information
philmd authored and huth committed Oct 27, 2023
1 parent 63ba5e1 commit e9894bc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/unit/test-throttle.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,6 @@ static bool do_test_accounting(bool is_ops, /* are we testing bps or ops */
{ THROTTLE_OPS_TOTAL,
THROTTLE_OPS_READ,
THROTTLE_OPS_WRITE, } };
ThrottleConfig cfg;
BucketType index;
int i;

Expand Down

0 comments on commit e9894bc

Please sign in to comment.