Skip to content

Commit b9b8d7a

Browse files
committed
Disable -Wc++-keyword because of false positives
This warning, a child category of -Wc++-compat, was causing a lot of false positives of the following variety: In file included from op.c:163: In file included from ./perl.h:6228: ./proto.h:6124:26: warning: identifier 'wchar_t' conflicts with a C++ keyword [-Wc++-keyword] 6124 | Perl_mbtowc_(pTHX_ const wchar_t *pwc, const char *s, const Size_t len); | ^ 1 warning generated.
1 parent 1c44630 commit b9b8d7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cflags.SH

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Intel*) ;; # # Is that you, Intel C++?
198198
-Wextra \
199199
-Wno-long-long -Wno-declaration-after-statement \
200200
-Wno-nonnull-compare \
201-
-Wc++-compat -Wwrite-strings"
201+
-Wc++-compat -Wno-c++-keyword -Wwrite-strings"
202202
case " $ccflags " in
203203
*" -std="*) ;; # Already have -std=...
204204
*) warns="-std=c99 $warns" ;;

0 commit comments

Comments
 (0)