From eef3638d227625e7d4c75bf536b3d5abb823b423 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Wed, 27 Oct 2021 00:54:44 +0200 Subject: tests: add pedantic compile tests for -std={c2x,c++20} Add a pedantic C compile test for c2x in addition to the existing ones for c90, c99, and c11. Add a pedantic C++ compile test for c++20 in addition to the existing ones for c++98, c++11, c++14, and c++17. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 05a8320f5..c7b73f050 100644 --- a/configure.ac +++ b/configure.ac @@ -106,11 +106,13 @@ dnl -------------------------------------------------------------------- GP_PEDANTIC_COMPILER_FLAGS([C90], [C], [-std=c90]) GP_PEDANTIC_COMPILER_FLAGS([C99], [C], [-std=c99]) GP_PEDANTIC_COMPILER_FLAGS([C11], [C], [-std=c11]) +GP_PEDANTIC_COMPILER_FLAGS([C2X], [C], [-std=c2x]) dnl GP_PEDANTIC_COMPILER_FLAGS([CXX98], [C++], [-std=c++98]) GP_PEDANTIC_COMPILER_FLAGS([CXX11], [C++], [-std=c++11]) GP_PEDANTIC_COMPILER_FLAGS([CXX14], [C++], [-std=c++14]) GP_PEDANTIC_COMPILER_FLAGS([CXX17], [C++], [-std=c++17]) +GP_PEDANTIC_COMPILER_FLAGS([CXX20], [C++], [-std=c++20]) GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-Wall]) GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-Wextra]) -- cgit v1.2.1