Skip to contentSkip to conversation

opensm/osm_helper.c: fix compiler warning

PATCH In review Sasha Khapyorsky 2 participants 2 messages Oct 1, 2009 2 messages not in the archive InfiniBand

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): D8E83C9B6A164D48B1F37DFB606CB25A-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org

#2 lore raw

PATCH 1/1 opensm/osm_helper.c: fix compiler warning

Eliminate compiler warning:

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

---
 opensm/opensm/osm_helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
opensm/opensm/osm_helper.c +1 -1
index 35da131..ea9e21f 100644
@@ -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 } };
 
 /**********************************************************************
  **********************************************************************/
Signature · 6 lines
1.6.5.rc1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw
Quoted 23 lines · Sasha Khapyorsky

Eliminate compiler warning:

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

---
 opensm/opensm/osm_helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
opensm/opensm/osm_helper.c +1 -1
index 35da131..ea9e21f 100644
@@ -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 } };
 
 /**********************************************************************
 
Quoted 1 line

**********************************************************************/

OK.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html