From: nobu@... Date: 2015-08-17T12:32:56+00:00 Subject: [ruby-core:70426] [Ruby trunk - Bug #11426] moving RClass does shows warning even if RClass itself is not used Issue #11426 has been updated by Nobuyoshi Nakada. I've misread as that the warnings are shown when compiling ruby. What's your *binding*? Please explain exact steps to reproduce. ---------------------------------------- Bug #11426: moving RClass does shows warning even if RClass itself is not used https://bugs.ruby-lang.org/issues/11426#change-53836 * Author: Hans Mackowiak * Status: Feedback * Priority: Normal * Assignee: Nobuyoshi Nakada * ruby -v: ruby 2.3.0dev (2015-08-10 trunk 51517) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- 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 { ^ -- https://bugs.ruby-lang.org/