diff --git a/nc_cxx.cmake b/nc_cxx.cmake index f6c1e5b..97b30f1 100644 --- a/nc_cxx.cmake +++ b/nc_cxx.cmake @@ -24,7 +24,7 @@ append_compile_flag ("-fcolor-diagnostics") ############################################################################### -append_compile_flag ("-std=c++1z") +append_compile_flag ("-std=c++2a") append_compile_flag ("-fpermissive") append_compile_flag ("/std:c++latest") diff --git a/nc_warnings.cmake b/nc_warnings.cmake index 2232cda..0d157f4 100644 --- a/nc_warnings.cmake +++ b/nc_warnings.cmake @@ -71,6 +71,13 @@ append_compile_flag(-Wcovered-switch-default) append_compile_flag(-Wno-gnu-string-literal-operator-template) +# gcc 8.1 + +append_compile_flag(-Wmultistatement-macros) +append_compile_flag(-Wcast-align=strict) +append_compile_flag(-Wold-style-cast) + + # ------------------------------------------------------------------------- # Required extensions #AX_APPEND_COMPILE_FLAGS([-Wgnu-flexible-array-union-member], [], [-Werror])