This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/12139] SDT V3 fails with structs that are only declared


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]