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:
Rangi
2021-06-20 16:59:36 -04:00
committed by Eldred Habert
parent 6d2db2ef64
commit 06b57aa1ce
13 changed files with 116 additions and 87 deletions

2
test/fix/overwrite.flags Normal file
View 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