mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-29 22:37:50 +00:00
Implement -Wtruncation=level (#931)
* Implement -Wtruncation=level -Wtruncation=0 is the same as the current -Wno-truncation. -Wtruncation=2 is the same as the current -Wtruncation. -Wtruncation=1 is the new default; it's less strict, allowing N-bit values to be between -2**N and 2**N (exclusive). * Implement generic "parametrized warning" system * Test more `Wtruncation` variants Co-authored-by: ISSOtm <eldredhabert0@gmail.com>
This commit is contained in:
52
test/asm/warn-truncation.err
Normal file
52
test/asm/warn-truncation.err
Normal file
@@ -0,0 +1,52 @@
|
||||
warning: warn-truncation.asm(33) -> warn-truncation.asm::try(23): [-Wtruncation]
|
||||
Expression must be 8-bit
|
||||
warning: warn-truncation.asm(33) -> warn-truncation.asm::try(24): [-Wtruncation]
|
||||
Expression must be 8-bit
|
||||
warning: warn-truncation.asm(33) -> warn-truncation.asm::try(25): [-Wtruncation]
|
||||
Expression must be 16-bit
|
||||
warning: warn-truncation.asm(33) -> warn-truncation.asm::try(26): [-Wtruncation]
|
||||
Expression must be 16-bit
|
||||
warning: warn-truncation.asm(33) -> warn-truncation.asm::try(28): [-Wtruncation]
|
||||
Expression must be 8-bit
|
||||
warning: warn-truncation.asm(33) -> warn-truncation.asm::try(29): [-Wtruncation]
|
||||
Expression must be 16-bit
|
||||
warning: warn-truncation.asm(35) -> warn-truncation.asm::try(23): [-Wtruncation]
|
||||
Expression must be 8-bit
|
||||
warning: warn-truncation.asm(35) -> warn-truncation.asm::try(24): [-Wtruncation]
|
||||
Expression must be 8-bit
|
||||
warning: warn-truncation.asm(35) -> warn-truncation.asm::try(25): [-Wtruncation]
|
||||
Expression must be 16-bit
|
||||
warning: warn-truncation.asm(35) -> warn-truncation.asm::try(26): [-Wtruncation]
|
||||
Expression must be 16-bit
|
||||
warning: warn-truncation.asm(36) -> warn-truncation.asm::try(23): [-Wtruncation]
|
||||
Expression must be 8-bit
|
||||
warning: warn-truncation.asm(36) -> warn-truncation.asm::try(24): [-Wtruncation]
|
||||
Expression must be 8-bit
|
||||
warning: warn-truncation.asm(36) -> warn-truncation.asm::try(25): [-Wtruncation]
|
||||
Expression must be 16-bit
|
||||
warning: warn-truncation.asm(36) -> warn-truncation.asm::try(26): [-Wtruncation]
|
||||
Expression must be 16-bit
|
||||
warning: warn-truncation.asm(36) -> warn-truncation.asm::try(28): [-Wtruncation]
|
||||
Expression must be 8-bit
|
||||
warning: warn-truncation.asm(36) -> warn-truncation.asm::try(29): [-Wtruncation]
|
||||
Expression must be 16-bit
|
||||
ERROR: warn-truncation.asm(37) -> warn-truncation.asm::try(23): [-Werror=truncation]
|
||||
Expression must be 8-bit
|
||||
ERROR: warn-truncation.asm(37) -> warn-truncation.asm::try(24): [-Werror=truncation]
|
||||
Expression must be 8-bit
|
||||
ERROR: warn-truncation.asm(37) -> warn-truncation.asm::try(25): [-Werror=truncation]
|
||||
Expression must be 16-bit
|
||||
ERROR: warn-truncation.asm(37) -> warn-truncation.asm::try(26): [-Werror=truncation]
|
||||
Expression must be 16-bit
|
||||
ERROR: warn-truncation.asm(38) -> warn-truncation.asm::try(23): [-Werror=truncation]
|
||||
Expression must be 8-bit
|
||||
ERROR: warn-truncation.asm(38) -> warn-truncation.asm::try(24): [-Werror=truncation]
|
||||
Expression must be 8-bit
|
||||
ERROR: warn-truncation.asm(38) -> warn-truncation.asm::try(25): [-Werror=truncation]
|
||||
Expression must be 16-bit
|
||||
ERROR: warn-truncation.asm(38) -> warn-truncation.asm::try(26): [-Werror=truncation]
|
||||
Expression must be 16-bit
|
||||
ERROR: warn-truncation.asm(38) -> warn-truncation.asm::try(28): [-Werror=truncation]
|
||||
Expression must be 8-bit
|
||||
ERROR: warn-truncation.asm(38) -> warn-truncation.asm::try(29): [-Werror=truncation]
|
||||
Expression must be 16-bit
|
||||
Reference in New Issue
Block a user