Skip to content

Commit 8e29422

Browse files
aardvark179eregon
authored andcommitted
Disable deprecation warnings so that openssl can build.
1 parent f45cb0e commit 8e29422

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/c/openssl/extconf.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
if defined?(::TruffleRuby)
1717
require 'truffle/openssl-prefix'
1818
dir_config("openssl", ENV["OPENSSL_PREFIX"])
19+
# Needed with libssl 3.0.0 and -Werror from building core C extensions
20+
$warnflags += ' -Wno-deprecated-declarations'
1921
else
2022
dir_config("openssl")
2123
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
require 'mkmf'
22
# No -pedantic because polyglot-impl.h fails that, and well, it's too pedantic
3-
$warnflags << ' -W -Wall -Wextra -Werror'
3+
$warnflags += ' -W -Wall -Wextra -Werror'
44
create_makefile('werror')

0 commit comments

Comments
 (0)