cxx: update flags for gcc-8.1.0

This commit is contained in:
Danny Robson 2018-05-05 14:37:58 +10:00
parent 5208910a35
commit 1c5ded53b3
2 changed files with 8 additions and 1 deletions

View File

@ -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 ("-fpermissive")
append_compile_flag ("/std:c++latest") append_compile_flag ("/std:c++latest")

View File

@ -71,6 +71,13 @@ append_compile_flag(-Wcovered-switch-default)
append_compile_flag(-Wno-gnu-string-literal-operator-template) 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 # Required extensions
#AX_APPEND_COMPILE_FLAGS([-Wgnu-flexible-array-union-member], [], [-Werror]) #AX_APPEND_COMPILE_FLAGS([-Wgnu-flexible-array-union-member], [], [-Werror])