From 18360feb324d8d4f63706662b5c0e919bc93c357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 8 Jan 2023 13:53:14 +0100 Subject: [PATCH] ruby: remove warnings on unused parameters These warnings may be enabled again in future when Ruby itself will be fixed. --- src/plugins/ruby/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/ruby/CMakeLists.txt b/src/plugins/ruby/CMakeLists.txt index c28ae613c..4ad109095 100644 --- a/src/plugins/ruby/CMakeLists.txt +++ b/src/plugins/ruby/CMakeLists.txt @@ -24,6 +24,10 @@ add_library(ruby MODULE set_target_properties(ruby PROPERTIES PREFIX "") if(RUBY_FOUND) + # temporary fix: ignore all warnings on unused parameters due to warnings + # caused by Ruby headers (with Ruby ≥ 3.1.0) + # see: https://github.com/ruby/ruby/pull/7085 + add_definitions(-Wno-unused-parameter) include_directories(${RUBY_INCLUDE_DIRS}) target_link_libraries(ruby ${RUBY_LDFLAGS} weechat_plugins_scripts coverage_config) endif(RUBY_FOUND)