[Bug translator/12139] SDT V3 fails with structs that are only declared
jistone at redhat dot com
sourceware-bugzilla@sourceware.org
Thu Oct 21 00:02:00 GMT 2010
http://sourceware.org/bugzilla/show_bug.cgi?id=12139
--- Comment #1 from Josh Stone <jistone at redhat dot com> 2010-10-21 00:02:03 UTC ---
(In reply to comment #0)
> If I cast "p" to a void*, it compiles fine.
... unless we're -pedantic, and then:
$ gcc -c declared-struct.c -pedantic
declared-struct.c: In function ‘main’:
declared-struct.c:6: warning: pointer of type ‘void *’ used in arithmetic
declared-struct.c:6: warning: pointer of type ‘void *’ used in arithmetic
declared-struct.c:6: warning: pointer of type ‘void *’ used in arithmetic
declared-struct.c:6: warning: pointer of type ‘void *’ used in arithmetic
When cast as char*, int*, etc., it works even with -pedantic.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Systemtap
mailing list