Skip to content

Commit b4b5dbd

Browse files
committed
testcontroller.c: fixed warnings.
1 parent 31851a5 commit b4b5dbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/testcontroller.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,8 @@ static void CommitBindingElement(const char *binding, SDL_bool force)
460460
}
461461
}
462462
if (native_axis) {
463-
AxisInfo current_axis_info;
464-
AxisInfo proposed_axis_info;
463+
AxisInfo current_axis_info = { 0, 0 };
464+
AxisInfo proposed_axis_info = { 0, 0 };
465465
SDL_bool current_axis = ParseAxisInfo(current, &current_axis_info);
466466
SDL_bool proposed_axis = ParseAxisInfo(binding, &proposed_axis_info);
467467

@@ -1318,7 +1318,7 @@ static void DrawGamepadInfo(SDL_Renderer *renderer)
13181318
if (display_mode == CONTROLLER_MODE_TESTING) {
13191319
Uint64 steam_handle = SDL_GetGamepadSteamHandle(controller->gamepad);
13201320
if (steam_handle) {
1321-
SDL_snprintf(text, SDL_arraysize(text), "Steam: 0x%.16llx", (unsigned long long)steam_handle);
1321+
SDL_snprintf(text, SDL_arraysize(text), "Steam: 0x%.16" SDL_PRIx64 "", steam_handle);
13221322
y = (float)SCREEN_HEIGHT - 2 * (8.0f + FONT_LINE_HEIGHT);
13231323
x = (float)SCREEN_WIDTH - 8.0f - (FONT_CHARACTER_SIZE * SDL_strlen(text));
13241324
SDLTest_DrawString(renderer, x, y, text);

0 commit comments

Comments
 (0)