aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby/ext/google/protobuf_c/extconf.rb
diff options
context:
space:
mode:
authorGravatar Josh Haberman <jhaberman@gmail.com>2015-06-09 11:08:25 -0700
committerGravatar Josh Haberman <jhaberman@gmail.com>2015-06-09 11:08:25 -0700
commite3ce451b6047941cd574d3f70a7e4c2d150c6f20 (patch)
treeab828174fafb210acfebe2e2ccb3353c46faf832 /ruby/ext/google/protobuf_c/extconf.rb
parente8ed021ee717cb8cc4e9de68e61d4dae2e1dd832 (diff)
Fixed compiler warnings and added -std=c99.
upb no longer requires -std=c99 but the Ruby/C code still uses C99 features.
Diffstat (limited to 'ruby/ext/google/protobuf_c/extconf.rb')
-rw-r--r--ruby/ext/google/protobuf_c/extconf.rb2
1 files changed, 1 insertions, 1 deletions
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"]