Skip to content

Commit 627f516

Browse files
committed
configure.ac: add -Wno-deprecated-enum-enum-conversion to CFLAGS to suppress C++20 default if applicable.
1 parent 366f5fe commit 627f516

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10921,6 +10921,11 @@ fi
1092110921
LIB_SOCKET_NSL
1092210922
AX_HARDEN_CC_COMPILER_FLAGS
1092310923
10924+
# -Wdeprecated-enum-enum-conversion is on by default in C++20, but conflicts with
10925+
# our use of enum constructs to define fungible constants.
10926+
AX_CHECK_COMPILE_FLAG([-Werror -Wno-deprecated-enum-enum-conversion],
10927+
[AX_APPEND_FLAG([-Wno-deprecated-enum-enum-conversion], [AM_CFLAGS])])
10928+
1092410929
case $host_os in
1092510930
mingw*)
1092610931
# if mingw then link to ws2_32 for sockets, and crypt32

0 commit comments

Comments
 (0)