Skip to content

Commit

Permalink
cmake: ensure enabling declaration after statement
Browse files Browse the repository at this point in the history
MariaDB enables -Wdeclaration-after-statement.
  • Loading branch information
kou committed May 12, 2019
1 parent 6736f19 commit 3487539
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -203,6 +203,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGCXX)
check_build_flag("-Wwrite-strings")
check_build_flag("-Wno-sign-compare")
check_build_flag("-Wmissing-field-initializers")
check_cflag("-Wno-declaration-after-statement")
check_cxxflag("-fexceptions")
check_cxxflag("-fimplicit-templates")
endif()
Expand Down

0 comments on commit 3487539

Please sign in to comment.