diff options
Diffstat (limited to 'ext/digest/sha2/extconf.rb')
-rw-r--r-- | ext/digest/sha2/extconf.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/digest/sha2/extconf.rb b/ext/digest/sha2/extconf.rb index a8f0198cf0..e0634245a9 100644 --- a/ext/digest/sha2/extconf.rb +++ b/ext/digest/sha2/extconf.rb @@ -26,5 +26,8 @@ have_header("sys/cdefs.h") $preload = %w[digest] if have_type("uint64_t", "defs.h", $defs.join(' ')) + if try_compile("", flag = " -Wno-deprecated-declarations") + $warnflags << flag + end create_makefile("digest/sha2") end |