Source-Changes-HG archive

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

[src/trunk]: src/sys/netatalk suppress possibly used uninitialized warning on...



details:   https://anonhg.NetBSD.org/src/rev/43272648008c
branches:  trunk
changeset: 331278:43272648008c
user:      rtr <rtr%NetBSD.org@localhost>
date:      Thu Aug 07 07:51:28 2014 +0000

description:
suppress possibly used uninitialized warning on sgimips

from martin@

diffstat:

 sys/netatalk/ddp_usrreq.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a23ca9ead42b -r 43272648008c sys/netatalk/ddp_usrreq.c
--- a/sys/netatalk/ddp_usrreq.c Thu Aug 07 06:49:06 2014 +0000
+++ b/sys/netatalk/ddp_usrreq.c Thu Aug 07 07:51:28 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ddp_usrreq.c,v 1.60 2014/08/07 01:02:30 rtr Exp $       */
+/*     $NetBSD: ddp_usrreq.c,v 1.61 2014/08/07 07:51:28 rtr Exp $       */
 
 /*
  * Copyright (c) 1990,1991 Regents of The University of Michigan.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ddp_usrreq.c,v 1.60 2014/08/07 01:02:30 rtr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ddp_usrreq.c,v 1.61 2014/08/07 07:51:28 rtr Exp $");
 
 #include "opt_mbuftrace.h"
 
@@ -541,7 +541,7 @@
 {
        struct ddpcb *ddp = sotoddpcb(so);
        int error = 0;
-       int s;
+       int s = 0; /* XXX gcc 4.8 warns on sgimips */
 
        KASSERT(solocked(so));
        KASSERT(ddp != NULL);



Home | Main Index | Thread Index | Old Index