mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Avoid unnecessary "overwriting a non-zero byte" warnings
- Don't warn if the non-zero byte being written is the same as the original byte - Add a `-O` / `--overwrite` flag to silence all such warnings Fixes #897
This commit is contained in:
@@ -0,0 +1 @@
|
||||
warning: Overwrote a non-zero byte in the global checksum
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
warning: Overwrote a non-zero byte in the global checksum
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
warning: Overwrote a non-zero byte in the global checksum
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
warning: Overwrote a non-zero byte in the global checksum
|
||||
|
||||
BIN
test/fix/overwrite.bin
Normal file
BIN
test/fix/overwrite.bin
Normal file
Binary file not shown.
0
test/fix/overwrite.err
Normal file
0
test/fix/overwrite.err
Normal file
2
test/fix/overwrite.flags
Normal file
2
test/fix/overwrite.flags
Normal file
@@ -0,0 +1,2 @@
|
||||
-O -Cjv -t PM_CRYSTAL -i BYTE -n 0 -k 01 -l 0x33 -m 0x10 -r 3 -p 0
|
||||
Checks that the -O flag suppresses "Overwrote a non-zero byte" warnings from the rest
|
||||
@@ -1,2 +1,3 @@
|
||||
warning: Overwrote a non-zero byte in the Nintendo logo
|
||||
warning: Overwrote a non-zero byte in the header checksum
|
||||
warning: Overwrote a non-zero byte in the global checksum
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
warning: Overwrote a non-zero byte in the Nintendo logo
|
||||
warning: Overwrote a non-zero byte in the header checksum
|
||||
warning: Overwrote a non-zero byte in the global checksum
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
warning: Overwrote a non-zero byte in the Nintendo logo
|
||||
warning: Overwrote a non-zero byte in the header checksum
|
||||
warning: Overwrote a non-zero byte in the global checksum
|
||||
|
||||
Reference in New Issue
Block a user