This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Warnings without -Wno-unused
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: ananth at in dot ibm dot com
- Cc: systemtap at sources dot redhat dot com
- Date: 09 Mar 2006 09:09:17 -0500
- Subject: Re: Warnings without -Wno-unused
- References: <20060308102702.GA8502@in.ibm.com>
ananth wrote:
> [without -Wno-unused ...]
I agree that we should not need that flag.
> /tmp/stapW5pqzA/stap_2958.c:1279: warning: label unlock_ defined but not used
> /tmp/stapW5pqzA/stap_2958.c:1382: warning: label unlock_ defined but not used
> /tmp/stapW5pqzA/stap_2958.c:1480: warning: unused variable probe_point
I will fix these.
Martin will need to fix these. They look familiar: I suspect he added
the "-Wno-unused" flag to buildrun.cxx back last summer precisely
because he didn't like my hack in the translator to emit dummy
references to these symbols.
> /usr/local/share/systemtap/runtime/transport/transport.c:26: warning: _stp_dpid defined but not used
> /usr/local/share/systemtap/runtime/transport/transport.c:51: warning: _stp_streaming defined but not used
> /usr/local/share/systemtap/runtime/io.c:161: warning: _stp_dbug defined but not used
> /usr/local/share/systemtap/runtime/print.c:160: warning: next_fmt defined but
- FChE