diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2020-05-27 07:53:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 07:53:42 -0400 |
commit | 6f05711b27ab9a1072e83c74791c6ef18177cac4 (patch) | |
tree | 3a6f156bac40e06e3242080fbfe4950b52b94e5f | |
parent | e3769a2ee994943d436c480efaca3141885c501d (diff) | |
parent | 7d4f294c20cadfd3e9005b32e1a342449ba6a4f6 (diff) |
Merge pull request #341 from jiangzhengwenjz/gbagfx
mute old clang diagnostic
-rw-r--r-- | tools/gbagfx/Makefile | 2 | ||||
-rw-r--r-- | tools/gbagfx/main.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/gbagfx/Makefile b/tools/gbagfx/Makefile index f0638414d..885d5f18a 100644 --- a/tools/gbagfx/Makefile +++ b/tools/gbagfx/Makefile @@ -1,6 +1,6 @@ CC = gcc -CFLAGS = -Wall -Wextra -Werror -Wno-sign-compare -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK +CFLAGS = -Wall -Wextra -Wno-sign-compare -std=gnu11 -O3 -flto -DPNG_SKIP_SETJMP_CHECK LIBS = -lpng -lz diff --git a/tools/gbagfx/main.c b/tools/gbagfx/main.c index 9fd72383d..957918505 100644 --- a/tools/gbagfx/main.c +++ b/tools/gbagfx/main.c @@ -210,7 +210,7 @@ void HandlePngToGbaCommand(char *inputPath, char *outputPath, int argc, char **a void HandlePngToJascPaletteCommand(char *inputPath, char *outputPath, int argc UNUSED, char **argv UNUSED) { - struct Palette palette = {0}; + struct Palette palette = {}; ReadPngPalette(inputPath, &palette); WriteJascPalette(outputPath, &palette); @@ -218,7 +218,7 @@ void HandlePngToJascPaletteCommand(char *inputPath, char *outputPath, int argc U void HandlePngToGbaPaletteCommand(char *inputPath, char *outputPath, int argc UNUSED, char **argv UNUSED) { - struct Palette palette = {0}; + struct Palette palette = {}; ReadPngPalette(inputPath, &palette); WriteGbaPalette(outputPath, &palette); @@ -226,7 +226,7 @@ void HandlePngToGbaPaletteCommand(char *inputPath, char *outputPath, int argc UN void HandleGbaToJascPaletteCommand(char *inputPath, char *outputPath, int argc UNUSED, char **argv UNUSED) { - struct Palette palette = {0}; + struct Palette palette = {}; ReadGbaPalette(inputPath, &palette); WriteJascPalette(outputPath, &palette); @@ -259,7 +259,7 @@ void HandleJascToGbaPaletteCommand(char *inputPath, char *outputPath, int argc, } } - struct Palette palette = {0}; + struct Palette palette = {}; ReadJascPalette(inputPath, &palette); |