Red Hat Bugzilla – Bug 145944
dead code detected
Last modified: 2007-11-30 17:10:59 EST
Description of problem:
I just tried to compile package ntp-4.2.0.a.20040617-6 from
Redhat Fedora development tree.
The compiler said
./../libisc/interfaceiter.c(99): remark #177: function "get_scopeid"
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):
Steps to Reproduce:
Created attachment 122715 [details]
You are right ! The function get_scopeid() is not
called in ntpd-daemon and this function is compiled in
(tested in FEDORA CORE 4, i386).
RESUME: a) gcc compiler 'removes' this 'unused entry', so the binary does
b) we could not observe the warning (as you are describing)
during the compilation of the ntpd-daemon
The ntpd-binary contains (functions from libisc/interfaceiter.c):
but not get_scopeid().
There is nothing to fix.