[RELENG_6] warning in if_re.c

From: Patrick Lamaizière <patfbsdc_at_davenulle.org>
Date: Fri, 7 Oct 2005 21:57:41 +0200
Hello,

With a fresh RELENG_6, if_re.c does not compile because a warning :

(FreeBSD: src/sys/dev/re/if_re.c,v 1.46.2.5 2005/10/07 14:00:04 glebius)

cc -O2 -pipe  -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc 
-I-   -DHAVE_KERNEL_OPTION_HEADERS 
[...]
-c /usr/src/sys/modules/re/../../dev/re/if_re.c
/usr/src/sys/modules/re/../../dev/re/if_re.c: In function `re_ioctl':
/usr/src/sys/modules/re/../../dev/re/if_re.c:2286: warning: 'error' might be 
used uninitialized in this function
*** Error code 1

It is ok if i put a "int error = 0;"
My kernel's conf is without DEVICE_POLLING.

Regards.
Received on Fri Oct 07 2005 - 17:57:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:44 UTC