Skip to content

Commit ff21132

Browse files
committed
Ignore warned variables
To suppress warnings at the compilation time.
1 parent d142494 commit ff21132

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ext/date/extconf.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
config_string("strict_warnflags") {|w| $warnflags += " #{w}"}
55

6-
have_var("timezone", "time.h")
7-
have_var("altzone", "time.h")
6+
with_werror("", {:werror => true}) do |opt, |
7+
have_var("timezone", "time.h", opt)
8+
have_var("altzone", "time.h", opt)
9+
end
810

911
create_makefile('date_core')

0 commit comments

Comments
 (0)