Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/maintainer.cmake
Original file line number Diff line number Diff line change
@@ -20,6 +20,11 @@ MACRO(SET_MYSQL_MAINTAINER_GNU_C_OPTIONS)
SET(MY_MAINTAINER_WARNINGS
"-Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -Werror")

CHECK_C_COMPILER_FLAG("-Wvla" HAVE_WVLA)
IF(HAVE_WVLA)
SET(MY_MAINTAINER_WARNINGS "${MY_MAINTAINER_WARNINGS} -Wvla")
ENDIF()

CHECK_C_COMPILER_FLAG("-Wdeclaration-after-statement"
HAVE_DECLARATION_AFTER_STATEMENT)
IF(HAVE_DECLARATION_AFTER_STATEMENT)

0 comments on commit 011af4b

Please sign in to comment.