File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -99,22 +99,19 @@ def asplode lib
99
99
end
100
100
101
101
# This is our wishlist. We use whichever flags work on the host.
102
- # -Wall and -Wextra are included by default.
103
- # TODO: fix statement.c and remove -Wno-error=declaration-after-statement
102
+ # TODO: fix statement.c and remove -Wno-declaration-after-statement
103
+ # TODO: fix gperf mysql_enc_name_to_ruby.h and remove -Wno-missing-field-initializers
104
104
%w(
105
+ -Wall
106
+ -Wextra
105
107
-Werror
106
- -Weverything
107
- -fsanitize=address
108
- -fsanitize=integer
109
- -fsanitize=thread
110
- -fsanitize=memory
111
- -fsanitize=undefined
112
- -fsanitize=cfi
113
- -Wno-error=declaration-after-statement
114
- ) . each do |flag |
115
- if try_link ( 'int main() {return 0;}' , flag )
116
- $CFLAGS << ' ' << flag
117
- end
108
+ -Wno-unused-function
109
+ -Wno-declaration-after-statement
110
+ -Wno-missing-field-initializers
111
+ ) . select do |flag |
112
+ try_link ( 'int main() {return 0;}' , flag )
113
+ end . each do |flag |
114
+ $CFLAGS << ' ' << flag
118
115
end
119
116
120
117
if RUBY_PLATFORM =~ /mswin|mingw/
You can’t perform that action at this time.
0 commit comments