Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/dev/dtrace/amd64 fix uninitialized gcc v...



details:   https://anonhg.NetBSD.org/src/rev/589e61e54a91
branches:  trunk
changeset: 767407:589e61e54a91
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jul 18 00:42:40 2011 +0000

description:
fix uninitialized gcc variables

diffstat:

 external/cddl/osnet/dev/dtrace/amd64/dis_tables.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r f4b7683937fe -r 589e61e54a91 external/cddl/osnet/dev/dtrace/amd64/dis_tables.c
--- a/external/cddl/osnet/dev/dtrace/amd64/dis_tables.c Mon Jul 18 00:31:13 2011 +0000
+++ b/external/cddl/osnet/dev/dtrace/amd64/dis_tables.c Mon Jul 18 00:42:40 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dis_tables.c,v 1.2 2010/02/21 01:46:33 darran Exp $    */
+/*     $NetBSD: dis_tables.c,v 1.3 2011/07/18 00:42:40 christos Exp $  */
 
 /*
  * CDDL HEADER START
@@ -1716,9 +1716,9 @@
        uint_t opcode2;         /* low nibble of 1st byte */
        uint_t opcode3;         /* extra opcode bits usually from ModRM byte */
        uint_t opcode4;         /* high nibble of 2nd byte */
-       uint_t opcode5;         /* low nibble of 2ne byte */
+       uint_t opcode5 = 0;     /* low nibble of 2ne byte */    /* XXX: gcc */
        uint_t opcode6;         /* high nibble of 3rd byte */
-       uint_t opcode7;         /* low nibble of 3rd byte */
+       uint_t opcode7 = 0;     /* low nibble of 3rd byte */    /* XXX: gcc */
        uint_t opcode_bytes = 1;
 
        /*



Home | Main Index | Thread Index | Old Index