[Groonga-commit] groonga/groonga at 9f78788 [master] Disable format-truncation warning

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Nov 1 10:05:23 JST 2017


Kouhei Sutou	2017-11-01 10:05:23 +0900 (Wed, 01 Nov 2017)

  New Revision: 9f7878800194c9999e6e042c75864e660fca411d
  https://github.com/groonga/groonga/commit/9f7878800194c9999e6e042c75864e660fca411d

  Message:
    Disable format-truncation warning
    
    Because small grn_ctx::errbuf is expected to reduce memory allocation
    for grn_ctx.

  Modified files:
    CMakeLists.txt
    configure.ac

  Modified: CMakeLists.txt (+1 -0)
===================================================================
--- CMakeLists.txt    2017-11-01 09:54:04 +0900 (b03f411ec)
+++ CMakeLists.txt    2017-11-01 10:05:23 +0900 (b674ecf8b)
@@ -178,6 +178,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGCXX)
   check_build_flag("-Wno-unused-but-set-variable")
   check_cflag("-Wno-pointer-sign")
   check_build_flag("-Wformat")
+  check_build_flag("-Wno-format-truncation")
   check_build_flag("-Wstrict-aliasing=2")
   check_build_flag("-fno-strict-aliasing")
   check_build_flag("-Wdisabled-optimization")

  Modified: configure.ac (+1 -0)
===================================================================
--- configure.ac    2017-11-01 09:54:04 +0900 (62b966d1e)
+++ configure.ac    2017-11-01 10:05:23 +0900 (25f8a6eff)
@@ -160,6 +160,7 @@ if test "$GCC" = "yes"; then
   CHECK_CFLAG([-Wno-declaration-after-statement])
 
   CHECK_BUILD_FLAG([-Wformat])
+  CHECK_BUILD_FLAG([-Wno-format-truncation])
   CHECK_BUILD_FLAG([-Wstrict-aliasing=2])
   if test "x$check_cflag" = "xyes"; then
     NO_STRICT_ALIASING_CFLAGS="-fno-strict-aliasing"
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171101/a1e62fdd/attachment.htm 



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