Created
November 15, 2016 10:57
-
-
Save hsbt/91b98953116ca65c5587169f74bb3d7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dump.c:775:18: warning: implicit declaration of function 'rb_struct_const_ptr' is invalid in C99 [-Wimplicit-function-declaration] | |
VALUE beg = RSTRUCT_PTR(obj)[0]; | |
^ | |
/Users/usr0600238/.anyenv/envs/rbenv/versions/2.4.0-dev/include/ruby-2.4.0/ruby/ruby.h:1184:33: note: expanded from macro 'RSTRUCT_PTR' | |
#define RSTRUCT_PTR(st) rb_struct_const_ptr(st) | |
^ | |
dump.c:775:34: error: subscripted value is not an array, pointer, or vector | |
VALUE beg = RSTRUCT_PTR(obj)[0]; | |
~~~~~~~~~~~~~~~~^~ | |
dump.c:776:34: error: subscripted value is not an array, pointer, or vector | |
VALUE end = RSTRUCT_PTR(obj)[1]; | |
~~~~~~~~~~~~~~~~^~ | |
dump.c:777:35: error: subscripted value is not an array, pointer, or vector | |
VALUE excl = RSTRUCT_PTR(obj)[2]; | |
~~~~~~~~~~~~~~~~^~ | |
dump.c:797:21: warning: incompatible integer to pointer conversion assigning to 'VALUE *' (aka 'unsigned long *') from 'int' [-Wint-conversion] | |
for (i = 0, vp = RSTRUCT_PTR(obj); i < cnt; i++, vp++) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment