Skip to content

Commit 924e733

Browse files
committed
use clang for clang-tidy job
And add warnings for gcc AND clang builds (as they can differ slightly). Clang does not support -Wused-but-set-parameter yet, though support is [on the way](https://reviews.llvm.org/D100581). So this gets rid of this warning we see in CI: > error: unknown warning option '-Wno-unused-but-set-parameter'; did you mean '-Wno-unused-parameter'?
1 parent 437cc55 commit 924e733

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ jobs:
1818
NAME: ccov
1919
TARGET_CMAKE_ARGS: -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="--coverage"
2020
- IMAGE: master-source
21-
NAME: clang
22-
CXX: clang++
21+
CXXFLAGS: >-
22+
-Werror -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls
23+
-Wno-unused-parameter -Wno-unused-function -Wno-deprecated-copy -Wno-unused-but-set-parameter
2324
- IMAGE: noetic-source
25+
CXX: clang++
2426
CLANG_TIDY: true
2527
CXXFLAGS: >-
2628
-Werror -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls
27-
-Wno-unused-parameter -Wno-unused-function -Wno-deprecated-copy -Wno-unused-but-set-parameter
29+
-Wno-unused-parameter -Wno-unused-function -Wno-deprecated-copy
2830
- IMAGE: noetic-source
2931
NAME: asan
3032
DOCKER_RUN_OPTS: "-e PRELOAD=libasan.so.5"

0 commit comments

Comments
 (0)