Actions
Bug #11426
closedmoving RClass does shows warning even if RClass itself is not used
Description
i got the following warning when i want to build my binding with using ruby from trunk
/usr/local/rvm/rubies/ruby-head/include/ruby-2.3.0/ruby/ruby.h:827:16: warning: attribute ignored in declaration of ‘struct RClassDeprecated’ [-Wattributes]
#define RClass RClassDeprecated
^
/usr/local/rvm/rubies/ruby-head/include/ruby-2.3.0/x86_64-linux/ruby/config.h:127:67: note: in definition of macro ‘DEPRECATED_TYPE’
#define DEPRECATED_TYPE(mesg,x) __attribute__ ((deprecated mesg)) x
^
/usr/local/rvm/rubies/ruby-head/include/ruby-2.3.0/ruby/ruby.h:829:8: note: in expansion of macro ‘RClass’
struct RClass {
^
/usr/local/rvm/rubies/ruby-head/include/ruby-2.3.0/ruby/ruby.h:827:16: note: attribute for ‘struct RClassDeprecated’ must follow the ‘struct’ keyword
#define RClass RClassDeprecated
^
/usr/local/rvm/rubies/ruby-head/include/ruby-2.3.0/x86_64-linux/ruby/config.h:127:67: note: in definition of macro ‘DEPRECATED_TYPE’
#define DEPRECATED_TYPE(mesg,x) __attribute__ ((deprecated mesg)) x
^
/usr/local/rvm/rubies/ruby-head/include/ruby-2.3.0/ruby/ruby.h:829:8: note: in expansion of macro ‘RClass’
struct RClass {
^
Actions
Like0
Like0Like0Like0Like0Like0Like0