Fix spurious truncation warning (#1238)

This commit is contained in:
Rangi
2023-11-20 16:51:51 -05:00
committed by GitHub
parent 232416b30d
commit 3c0879a3c6
4 changed files with 49 additions and 35 deletions

View File

@@ -298,7 +298,7 @@ or
.Fl Wno-truncation
disables this warning.
.Fl Wtruncation=1
warns when an N-bit value's absolute value is 2**N or greater.
warns when an N-bit value is 2**N or greater, or less than -2**N.
.Fl Wtruncation=2
or just
.Fl Wtruncation