From e677bf7bcd64331666fe4521d8da0b2518e86457 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 6 Oct 2019 13:07:55 +0200 Subject: [PATCH] Fix harmless signed/unsigned comparison warnings in menu test Make the loop variable unsigned as it's compared with the result of WXSIZEOF(). --- tests/menu/menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/menu/menu.cpp b/tests/menu/menu.cpp index b2723baea3..a5d2b6f72f 100644 --- a/tests/menu/menu.cpp +++ b/tests/menu/menu.cpp @@ -776,7 +776,7 @@ TEST_CASE( "wxMenuItemAccelEntry", "[menu][accelentry]" ) SECTION( "Modifier keys" ) { - for ( int i = 0; i < WXSIZEOF(modKeys); i++ ) + for ( unsigned i = 0; i < WXSIZEOF(modKeys); i++ ) { const key& k = modKeys[i]; @@ -793,7 +793,7 @@ TEST_CASE( "wxMenuItemAccelEntry", "[menu][accelentry]" ) SECTION( "Special keys" ) { - for ( int i = 0; i < WXSIZEOF(specialKeys); i++ ) + for ( unsigned i = 0; i < WXSIZEOF(specialKeys); i++ ) { const key& k = specialKeys[i];