Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 926fd2e

Browse files
author
Reini Urban
committed
cflags: remove -Wcast-align
with C89 we cannot get around our intermediate char* casts.
1 parent dd1ff8d commit 926fd2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cflags.SH

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,14 @@ Intel*) ;; # # Is that you, Intel C++?
191191
#
192192
# Maybe we need -Waggregate-return, used in Xop, some extensions and regex
193193
# -Winline is also useful for perf. tuning
194+
# -Wcast-align is helpless, since we need C89 and lots of intermediate char* casts still.
194195
#
195196
*) for opt in -std=c89 -ansi $pedantic \
196197
-Werror=declaration-after-statement \
197198
-Wextra -W \
198199
-Wc++-compat -Wwrite-strings \
199200
-Wno-discarded-qualifiers -Wno-incompatible-pointer-types-discards-qualifiers \
200-
-Wcast-align -Wlogical-op -Wpacked -Wdisabled-optimization
201+
-Wlogical-op -Wpacked -Wdisabled-optimization
201202
do
202203
case " $ccflags " in
203204
*" $opt "*) ;; # Skip if already there.

0 commit comments

Comments
 (0)