public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Warnings without -Wno-unused
@ 2006-03-08 10:27 Ananth N Mavinakayanahalli
  2006-03-09 14:09 ` Frank Ch. Eigler
  0 siblings, 1 reply; 2+ messages in thread
From: Ananth N Mavinakayanahalli @ 2006-03-08 10:27 UTC (permalink / raw)
  To: systemtap

Hi,

I used Frank's syscall.open example from the systemtap tutorial,
used the -k option and wrote a custom makefile to build the module
later in the /tmp dir. Here is the output:

-----
[root@jataayu stapW5pqzA]# make
make -C /lib/modules/2.6.15-1.1833_FC4.root/build
SUBDIRS=/tmp/stapW5pqzA modules
make[1]: Entering directory
`/usr/src/kernels/2.6.15-1.1833_FC4.root-i686'
  CC [M]  /tmp/stapW5pqzA/stap_2958.o
/tmp/stapW5pqzA/stap_2958.c: In function ‘probe_0’:
/tmp/stapW5pqzA/stap_2958.c:1279: warning: label ‘unlock_’ defined but not used
/tmp/stapW5pqzA/stap_2958.c: In function ‘probe_1’:
/tmp/stapW5pqzA/stap_2958.c:1382: warning: label ‘unlock_’ defined but not used
/tmp/stapW5pqzA/stap_2958.c: In function ‘systemtap_module_init’:
/tmp/stapW5pqzA/stap_2958.c:1480: warning: unused variable ‘probe_point’
/tmp/stapW5pqzA/stap_2958.c: At top level:
/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
not used
  Building modules, stage 2.
  MODPOST
  CC      /tmp/stapW5pqzA/stap_2958.mod.o
  LD [M]  /tmp/stapW5pqzA/stap_2958.ko
  make[1]: Leaving directory
  `/usr/src/kernels/2.6.15-1.1833_FC4.root-i686'
-----

As you see, the warnings are benign (currently) and are supressed 'cos of
-Wno-unused in the Makefile generated by stap. But we should revisit this
issue sometime (sooner rather than later) and fixup wherever possible.

Do we already have a bugzilla for this? If not, should one be opened?

Ananth

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Warnings without -Wno-unused
  2006-03-08 10:27 Warnings without -Wno-unused Ananth N Mavinakayanahalli
@ 2006-03-09 14:09 ` Frank Ch. Eigler
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2006-03-09 14:09 UTC (permalink / raw)
  To: ananth; +Cc: systemtap


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-03-09 14:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-08 10:27 Warnings without -Wno-unused Ananth N Mavinakayanahalli
2006-03-09 14:09 ` Frank Ch. Eigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).