From 75863554233a40f74d40138b7a88f07c010281a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Thu, 13 Feb 2020 15:10:16 +0900 Subject: comma at the end of enum is a C++11ism Comma at the end of enum is allowed in C since C99. We can use them internally. However when it comes to extension libraries, they could be written in different C++ versions. We cannot assume sometihng. Public headers shall keep compatibilities. --- include/ruby/ruby.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ruby/ruby.h') diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 8ff0e97f26..a97f87fc08 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -871,7 +871,7 @@ VALUE rb_obj_reveal(VALUE obj, VALUE klass); /* do not use this API to change kl #define RVALUE_EMBED_LEN_MAX RVALUE_EMBED_LEN_MAX enum ruby_rvalue_flags { - RVALUE_EMBED_LEN_MAX = 3, + RVALUE_EMBED_LEN_MAX = 3 }; #define ROBJECT_EMBED_LEN_MAX ROBJECT_EMBED_LEN_MAX -- cgit v1.2.3