This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/12139] SDT V3 fails with structs that are only declared
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: Thu, 21 Oct 2010 00:02:12 +0000
- Subject: [Bug translator/12139] SDT V3 fails with structs that are only declared
- Auto-submitted: auto-generated
- References: <bug-12139-1110@http.sourceware.org/bugzilla/>
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.