[#70257] [Ruby trunk - Feature #11420] [Open] Introduce ID key table into MRI — ko1@...

Issue #11420 has been reported by Koichi Sasada.

11 messages 2015/08/06

[ruby-core:70441] [Ruby trunk - Bug #11426] moving RClass does shows warning even if RClass itself is not used

From: nobu@...
Date: 2015-08-18 02:37:44 UTC
List: ruby-core #70441
Issue #11426 has been updated by Nobuyoshi Nakada.


OK, `g++` does reject `__attribute__` between `struct` and a name, while `g=
cc` allows.

~~~
$ cat a.c
__attribute__((deprecated)) struct a;
$ gcc -c a.c
$ g++ -c a.c
a.c:1:36: warning: attribute ignored in declaration of 'struct a' [-Wattrib=
utes]
 __attribute__((deprecated)) struct a;
                                    ^
a.c:1:36: note: attribute for 'struct a' must follow the 'struct' keyword
~~~


----------------------------------------
Bug #11426: moving RClass does shows warning even if RClass itself is not u=
sed=20
https://bugs.ruby-lang.org/issues/11426#change-53849

* 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: warn=
ing: attribute ignored in declaration of =E2=80=98struct RClassDeprecated=
=E2=80=99 [-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 =E2=80=98DEPRECATED_TYPE=E2=80=99
 #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 =E2=80=98RClass=E2=80=99
 struct RClass {
        ^
/usr/local/rvm/rubies/ruby-head/include/ruby-2.3.0/ruby/ruby.h:827:16: note=
: attribute for =E2=80=98struct RClassDeprecated=E2=80=99 must follow the =
=E2=80=98struct=E2=80=99 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 =E2=80=98DEPRECATED_TYPE=E2=80=99
 #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 =E2=80=98RClass=E2=80=99
 struct RClass {
        ^




--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next