Implement warning diagnostic flags for RGBGFX (#1738)

This commit is contained in:
Rangi
2025-07-10 09:58:40 -04:00
committed by GitHub
parent 276a200590
commit 3f4e8396aa
14 changed files with 210 additions and 15 deletions

View File

@@ -0,0 +1,3 @@
error: [-Werror=embedded]
Sorting palette colors by PNG's embedded PLTE chunk without '-c/--colors embedded'
Conversion aborted after 1 error

View File

@@ -0,0 +1 @@
-Werror=embedded

BIN
test/gfx/warn_embedded.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 B

View File

@@ -0,0 +1,2 @@
warning: [-Wtrim-nonempty]
Trimming a nonempty tile (configure with '-x/--trim-end'

View File

@@ -0,0 +1,2 @@
-Wtrim-nonempty
-x 2

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 927 B