aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby/ext/google/protobuf_c/extconf.rb
diff options
context:
space:
mode:
authorGravatar Chris Fallin <cfallin@google.com>2015-05-14 18:24:26 -0700
committerGravatar Chris Fallin <cfallin@google.com>2015-05-15 11:36:12 -0700
commitd326277397e345b5bda4a8afbd0a9d54f01b9a06 (patch)
tree06374379f0c2290e69110c787a5ad347e262eac6 /ruby/ext/google/protobuf_c/extconf.rb
parentb481a4f920d2f5872bc1e9bfd6b0656f6ad0b713 (diff)
Update MRI C Ruby extension to use new version of upb.
- Alter encode/decode paths to use the `upb_env` (environment) abstraction. - Update upb amalgamation to upstream `93791bfe`. - Fix a compilation warning (void*->char* cast). - Modify build flags so that upb doesn't produce warnings -- the Travis build logs were pretty cluttered previously.
Diffstat (limited to 'ruby/ext/google/protobuf_c/extconf.rb')
-rw-r--r--ruby/ext/google/protobuf_c/extconf.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/ruby/ext/google/protobuf_c/extconf.rb b/ruby/ext/google/protobuf_c/extconf.rb
index 8d60392c..74203b07 100644
--- a/ruby/ext/google/protobuf_c/extconf.rb
+++ b/ruby/ext/google/protobuf_c/extconf.rb
@@ -2,7 +2,9 @@
require 'mkmf'
-$CFLAGS += " -O3 -std=c99 -Wno-unused-function -DNDEBUG "
+$CFLAGS += " -O3 -std=c99 -Wno-unused-function " +
+ "-Wno-declaration-after-statement -Wno-unused-variable " +
+ "-Wno-sign-compare -DNDEBUG "
$objs = ["protobuf.o", "defs.o", "storage.o", "message.o",
"repeated_field.o", "map.o", "encode_decode.o", "upb.o"]