Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Quell maybe-uninitialized false positives from g...
details: https://anonhg.NetBSD.org/src/rev/ad7d62a84cb5
branches: trunk
changeset: 326395:ad7d62a84cb5
user: martin <martin%NetBSD.org@localhost>
date: Tue Jan 28 13:08:13 2014 +0000
description:
Quell maybe-uninitialized false positives from gcc 4.8
diffstat:
sys/dev/usb/if_run.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r b3f047186fb9 -r ad7d62a84cb5 sys/dev/usb/if_run.c
--- a/sys/dev/usb/if_run.c Tue Jan 28 13:02:56 2014 +0000
+++ b/sys/dev/usb/if_run.c Tue Jan 28 13:08:13 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_run.c,v 1.9 2013/03/30 03:17:33 christos Exp $ */
+/* $NetBSD: if_run.c,v 1.10 2014/01/28 13:08:13 martin Exp $ */
/* $OpenBSD: if_run.c,v 1.90 2012/03/24 15:11:04 jsg Exp $ */
/*-
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_run.c,v 1.9 2013/03/30 03:17:33 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_run.c,v 1.10 2014/01/28 13:08:13 martin Exp $");
#include <sys/param.h>
#include <sys/sockio.h>
@@ -822,8 +822,8 @@
{
usb_device_request_t req;
const char *fwname;
- u_char *ucode;
- size_t size;
+ u_char *ucode = NULL; /* XXX gcc 4.8.3: maybe-uninitialized */
+ size_t size = 0; /* XXX gcc 4.8.3: maybe-uninitialized */
uint32_t tmp;
int ntries, error;
Home |
Main Index |
Thread Index |
Old Index