From e3ce451b6047941cd574d3f70a7e4c2d150c6f20 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Tue, 9 Jun 2015 11:08:25 -0700 Subject: Fixed compiler warnings and added -std=c99. upb no longer requires -std=c99 but the Ruby/C code still uses C99 features. --- ruby/ext/google/protobuf_c/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ruby/ext/google/protobuf_c/extconf.rb') diff --git a/ruby/ext/google/protobuf_c/extconf.rb b/ruby/ext/google/protobuf_c/extconf.rb index 9675f57f..b368dcc6 100644 --- a/ruby/ext/google/protobuf_c/extconf.rb +++ b/ruby/ext/google/protobuf_c/extconf.rb @@ -2,7 +2,7 @@ require 'mkmf' -$CFLAGS += " -O3 -DNDEBUG" +$CFLAGS += " -std=c99 -O3 -DNDEBUG" $objs = ["protobuf.o", "defs.o", "storage.o", "message.o", "repeated_field.o", "map.o", "encode_decode.o", "upb.o"] -- cgit v1.2.3