Bug 914767 - Generating probes from dtrace definition generates compiler warnings
Summary: Generating probes from dtrace definition generates compiler warnings
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: systemtap
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Frank Ch. Eigler
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-22 17:30 UTC by Daniel Berrangé
Modified: 2013-02-25 14:03 UTC (History)
8 users (show)

Fixed In Version: systemtap-2.1-1.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-25 14:03:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Daniel Berrangé 2013-02-22 17:30:54 UTC
Description of problem:
When building libvirt RPMs we're seeing warnings generated from the GCC that dtrace runs

This can be reproduced standalone as follows:

$ CFLAGS=-Wall /bin/dtrace -o libvirt_probes.o -G -s libvirt_probes.d
/tmp/tmpca8bLT.c:1:8: warning: return type defaults to ‘int’ [-Wreturn-type]
/tmp/tmpca8bLT.c:1:8: warning: ‘__dtrace’ defined but not used [-Wunused-function]
/tmp/tmpca8bLT.c: In function ‘__dtrace’:
/tmp/tmpca8bLT.c:1:1: warning: control reaches end of non-void function [-Wreturn-type]

The first line of that file is

static __dtrace () {}

Which is a bogus signature - should be   static int __dtrace(void) {} though that still won't make the -Wunused-function warnings go away.


Version-Release number of selected component (if applicable):
systemtap-2.0-4.fc18.x86_64

How reproducible:
Always

Comment 1 Frank Ch. Eigler 2013-02-22 17:47:40 UTC
This is corrected in the recent 2.1 release, and will be available as an update(-testing) for f18 before long.

Comment 2 Frank Ch. Eigler 2013-02-22 18:08:39 UTC
Please check fedora18 updates-testing.

Comment 3 Daniel Berrangé 2013-02-25 10:21:38 UTC
Yes, that has fixed the problem


Note You need to log in before you can comment on or make changes to this bug.