Add -Wsingle-union warning for UNION without NEXTU (#2170)

This commit is contained in:
Rangi authored and GitHub committed 2026-09-27 20:02:42 -04:00
1 parent 62a9d8d518
commit ba4e58f4e0
11 files changed
+22 -3

No files matched your search

+6
View File
@@ -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