From 3e6d1757d08b75c8f1c3fbad0947b6eeb28622c1 Mon Sep 17 00:00:00 2001 From: yenatch Date: Thu, 6 Jul 2017 22:12:34 -0400 Subject: Fix gbagfx warning --- tools/gbagfx/main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tools/gbagfx/main.c') diff --git a/tools/gbagfx/main.c b/tools/gbagfx/main.c index 0624201df..37d3441fe 100644 --- a/tools/gbagfx/main.c +++ b/tools/gbagfx/main.c @@ -59,8 +59,7 @@ void HandleGbaToPngCommand(char *inputPath, char *outputPath, int argc, char **a { char *inputFileExtension = GetFileExtension(inputPath); int bitDepth = inputFileExtension[0] - '0'; - char *paletteFilePath; - bool hasPalette = false; + char *paletteFilePath = NULL; bool hasTransparency = false; int width = 1; @@ -76,8 +75,6 @@ void HandleGbaToPngCommand(char *inputPath, char *outputPath, int argc, char **a i++; paletteFilePath = argv[i]; - - hasPalette = true; } else if (strcmp(option, "-object") == 0) { @@ -102,7 +99,7 @@ void HandleGbaToPngCommand(char *inputPath, char *outputPath, int argc, char **a } } - ConvertGbaToPng(inputPath, outputPath, width, bitDepth, hasPalette ? paletteFilePath : NULL, hasTransparency); + ConvertGbaToPng(inputPath, outputPath, width, bitDepth, paletteFilePath, hasTransparency); } void HandlePngToGbaCommand(char *inputPath, char *outputPath, int argc, char **argv) -- cgit v1.2.3