[ofw] [PATCH] opensm/osm_helper.c: fix compiler warning

Sasha Khapyorsky sashak at voltaire.com
Thu Oct 1 10:17:00 PDT 2009


Eliminate compiler warning:

osm_helper.c:551: warning: missing braces around initializer
osm_helper.c:551: warning: (near initialization for ‘ib_zero_gid.raw’)

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 opensm/opensm/osm_helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opensm/opensm/osm_helper.c b/opensm/opensm/osm_helper.c
index 35da131..ea9e21f 100644
--- a/opensm/opensm/osm_helper.c
+++ b/opensm/opensm/osm_helper.c
@@ -548,7 +548,7 @@ const char *ib_get_trap_str(ib_net16_t trap_num)
 	return "Unknown";
 }
 
-const ib_gid_t ib_zero_gid = { 0 };
+const ib_gid_t ib_zero_gid = { { 0 } };
 
 /**********************************************************************
  **********************************************************************/
-- 
1.6.5.rc1




More information about the ofw mailing list