NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/39835: 'Uninitialized var in altq_subr.c' build failure



The following reply was made to PR kern/39835; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: kern-bug-people%NetBSD.org@localhost, gnats-admin%NetBSD.org@localhost, 
hf%spg.tu-darmstadt.de@localhost,
        tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: kern/39835: 'Uninitialized var in altq_subr.c' build failure
Date: Fri, 21 Nov 2008 01:47:42 +0900

 machclk_usepcc seems to be set only #ifdef __HAVE_CPU_COUNTER case.
 (I'm not sure why it isn't static though)
 
 Maybe whole if clause should be wrapped with the #ifdef:
 ---
        u_int64_t val;
 
 #ifdef __HAVE_CPU_COUNTER
        if (machclk_usepcc) {
                return cpu_counter();
        } else
 #endif
        {
                struct timeval tv;
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index