Bug 147085 - dead code detected
Summary: dead code detected
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kudzu
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-04 10:10 UTC by David Binderman
Modified: 2014-03-17 02:52 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-02-04 20:12:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Binderman 2005-02-04 10:10:09 UTC
Description of problem:

I just tried to compile package kudzu-1.1.107-1 from 
Redhat Fedora development tree.

The compiler said

pci.c(134): remark #177: function "vendCmp" was declared but never
referenced

I've had a look at the source code, and I agree with the compiler.
Suggest delete dead code.



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Bill Nottingham 2005-02-04 20:12:07 UTC
You know, if it's a dead static function, the compiler should just
remove it anyway (if it doesn't already.)

Removed in CVS, will show up in new builds eventually.

Comment 2 David Binderman 2005-02-05 09:44:12 UTC
>the compiler should just remove it anyway

Last time I checked, a couple of months back, gcc doesn't
remove dead static functions. Hence the bug report.

You might want to raise a bug report on gcc, but that's
usually a waste of time anyway ;->


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