1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

ruby: remove warnings on unused parameters

These warnings may be enabled again in future when Ruby itself will be fixed.
This commit is contained in:
Sébastien Helleu
2023-01-08 13:53:14 +01:00
parent fe7c0019a7
commit 18360feb32
+4
View File
@@ -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)