From bf0b66359155066432217c659748ff407143f379 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 25 May 2021 14:03:24 +0300
Subject: [PATCH] tests: minor warning fixes.
---
test/testcursor.c | 2 +-
test/testiconv.c | 2 +-
test/testplatform.c | 2 --
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/test/testcursor.c b/test/testcursor.c
index 010e0a6..c79caea 100644
--- a/test/testcursor.c
+++ b/test/testcursor.c
@@ -142,7 +142,7 @@ static SDL_Cursor *create_arrow_cursor()
int main(int argc, char *argv[])
{
SDL_Surface *screen;
- SDL_bool quit = SDL_FALSE, first_time = SDL_TRUE;
+ SDL_bool quit = SDL_FALSE;
SDL_Cursor *cursor[3];
int current;
diff --git a/test/testiconv.c b/test/testiconv.c
index 53415d0..5f1cff4 100644
--- a/test/testiconv.c
+++ b/test/testiconv.c
@@ -32,7 +32,7 @@ int main(int argc, char *argv[])
char buffer[BUFSIZ];
char *ucs4;
char *test[2];
- int i, index = 0;
+ int i;
FILE *file;
int errors = 0;
diff --git a/test/testplatform.c b/test/testplatform.c
index 328a96f..a7b0916 100644
--- a/test/testplatform.c
+++ b/test/testplatform.c
@@ -1,4 +1,3 @@
-
#include <stdio.h>
#include "SDL.h"
@@ -126,7 +125,6 @@ int TestEndian(SDL_bool verbose)
return( error ? 1 : 0 );
}
-
int TestCPUInfo(SDL_bool verbose)
{
if ( verbose ) {