Commit 09ba4c1
committed
Reapply "build: Improve '-Wextra-semi-stmt' warning option check"
The commit 97073ba was accidentally
reverted by 95a1ebe.
Apply the commit again.
Original commit description:
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 c73f894 commit 09ba4c1
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1454 | 1454 | | |
1455 | 1455 | | |
1456 | 1456 | | |
1457 | | - | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
1458 | 1462 | | |
1459 | 1463 | | |
1460 | 1464 | | |
| |||
0 commit comments