Commit 97073ba
committed
build: Improve '-Wextra-semi-stmt' warning option check
The '-Wunknown-warning-option' option is specific to Clang, and GCC
implemented it as '-Wunknown-warning'. Rather than using
'-Wunknown-warning' which is itself unportable, prevent
'extra-semi-stmt' from turning to error via the simpler
'-Wno-error=extra-semi-stmt' option.
Also amend the code comment to better explain why the '-Wno-error=...'
option.
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>1 parent 79785e8 commit 97073ba
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1217 | 1217 | | |
1218 | 1218 | | |
1219 | 1219 | | |
1220 | | - | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
1221 | 1225 | | |
1222 | 1226 | | |
1223 | 1227 | | |
| |||
0 commit comments