Skip to content

Commit 8ce0eee

Browse files
committed
MDEV-37502: clang+debug mroonga remove -Wno-unused-but-set-variable
This is frequently violated within the mroonga implementatation and therefore should not error. Reviewer: Jimmy Hu <jimmy.hu@mariadb.com>
1 parent ca168a7 commit 8ce0eee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/mroonga/vendor/groonga/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ endif()
150150

151151
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGCXX)
152152
MY_CHECK_AND_SET_COMPILER_FLAG("-Wall")
153-
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-unused-but-set-variable")
153+
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-error=unused-but-set-variable")
154154
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-pointer-sign")
155155
MY_CHECK_AND_SET_COMPILER_FLAG("-Wformat")
156156
MY_CHECK_AND_SET_COMPILER_FLAG("-Wstrict-aliasing=2")

0 commit comments

Comments
 (0)