about summary refs log tree commit diff
path: root/.github/workflows
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2024-01-19 16:55:23 +0100
committerAlexander Barton <alex@barton.de>2024-01-19 17:07:47 +0100
commita87b124648f6eb9e00c9ea16c638fe380dd019f7 (patch)
tree135d7448d5034f42434e0be2cb57caa08ea90e43 /.github/workflows
parentc83d55f75884130367f9d3f4db262bccb2049abe (diff)
downloadngircd-a87b124648f6eb9e00c9ea16c638fe380dd019f7.tar.gz
ngircd-a87b124648f6eb9e00c9ea16c638fe380dd019f7.zip
Use -Werror when testing for -Wno-format-truncation
Clang does not know the -Wno-format-truncation option of (current) GCC,
but accepts unknown -W... options (exit core 0) but issues a warning
message on every invocation. So for example on macOS, where Clang is
used as "gcc", a new warning message was shown for every file to
compile, since we enabled -Wno-format-truncation in commit 1d527eaf:

  warning: unknown warning option '-Wno-format-truncation' [-Wunknown-warning-option]

Clang no longer acceps unknown -W... options by enabling -Werror, which
this patch adds to the CFLAGS while testing for -Wno-format-truncation,
which fixes this issue.

This fixes commit 1d527eaf.
Diffstat (limited to '.github/workflows')
0 files changed, 0 insertions, 0 deletions