summaryrefslogtreecommitdiff
path: root/ext/digest/sha1/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/sha1/extconf.rb')
-rw-r--r--ext/digest/sha1/extconf.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/digest/sha1/extconf.rb b/ext/digest/sha1/extconf.rb
index fa9945cd430..77a4b2b8472 100644
--- a/ext/digest/sha1/extconf.rb
+++ b/ext/digest/sha1/extconf.rb
@@ -21,4 +21,7 @@ have_header("sys/cdefs.h")
$preload = %w[digest]
+if try_compile("", flag = " -Wno-deprecated-declarations")
+ $warnflags << flag
+end
create_makefile("digest/sha1")