mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-05 19:56:18 +00:00
Add -Wsingle-union warning for UNION without NEXTU (#2170)
This commit is contained in:
1 parent
62a9d8d518
commit
ba4e58f4e0
11 files changed
+22
-3
No files matched your search
@@ -517,6 +517,12 @@ Warn when shifting right a negative value.
|
||||
Use a division by 2**N instead.
|
||||
.It Fl Wshift-amount
|
||||
Warn when a shift's operand is negative or greater than 32.
|
||||
.It Fl Wsingle-union
|
||||
Warn when a
|
||||
.Ic UNION
|
||||
construct has no
|
||||
.Ic NEXTU
|
||||
alternatives.
|
||||
.It Fl Wtruncation=
|
||||
Warn when an implicit truncation (for example,
|
||||
.Ic db
|
||||
|
||||
Reference in new issue
Block a user