Skip to content

Commit 903dae1

Browse files
committed
Enable clang and gcc cast-align[=strict] warning in CI.
1 parent 0b2c418 commit 903dae1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.gitlab/ci/clang-Wall

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ CLANG="clang${COMPILER_VERSION:+-$COMPILER_VERSION}"
1515
#PEDANTIC="-pedantic -std=gnu99 -Wno-variadic-macros"
1616
#CONVERSION="-Wconversion"
1717

18-
# FIXME
19-
# -Wcast-align
20-
2118
EXTRA="\
2219
-Wextra \
2320
-Wsign-compare \
21+
-Wcast-align
2422
-Werror-implicit-function-declaration \
2523
-Wpointer-arith \
2624
-Wwrite-strings \

.gitlab/ci/gcc-Wall

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ exec $GCC $PEDANTIC $CONVERSION \
5050
-Wnested-externs \
5151
-Wcomment \
5252
-Winline \
53-
-Wcast-align \
53+
-Wcast-align=strict \
5454
-Wcast-qual \
5555
-Wredundant-decls $EXTRA \
5656
"$@"

0 commit comments

Comments
 (0)