[Groonga-commit] groonga/groonga at 3487539 [master] cmake: ensure enabling declaration after statement

Back to archive index
Kouhei Sutou null+****@clear*****
Mon May 13 06:34:33 JST 2019


Kouhei Sutou	2019-05-13 06:34:33 +0900 (Mon, 13 May 2019)

  Revision: 348753913757c77189036845fefd71995b751343
  https://github.com/groonga/groonga/commit/348753913757c77189036845fefd71995b751343

  Message:
    cmake: ensure enabling declaration after statement
    
    MariaDB enables -Wdeclaration-after-statement.

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+1 -0)
===================================================================
--- CMakeLists.txt    2019-05-13 06:32:02 +0900 (bd366ed68)
+++ CMakeLists.txt    2019-05-13 06:34:33 +0900 (be2fc12d8)
@@ -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()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190513/542785b5/attachment.html>


More information about the Groonga-commit mailing list
Back to archive index