public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] opensm/osm_helper.c: fix compiler warning
       [not found] ` <D8E83C9B6A164D48B1F37DFB606CB25A-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
@ 2009-10-01 17:17   ` Sasha Khapyorsky
  2009-10-01 17:37     ` Smith, Stan
  0 siblings, 1 reply; 2+ messages in thread
From: Sasha Khapyorsky @ 2009-10-01 17:17 UTC (permalink / raw)
  To: linux-rdma; +Cc: Stan C. Smith, ofw-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5


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-smomgflXvOZWk0Htik3J/w@public.gmane.org>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* RE: [PATCH] opensm/osm_helper.c: fix compiler warning
  2009-10-01 17:17   ` [PATCH] opensm/osm_helper.c: fix compiler warning Sasha Khapyorsky
@ 2009-10-01 17:37     ` Smith, Stan
  0 siblings, 0 replies; 2+ messages in thread
From: Smith, Stan @ 2009-10-01 17:37 UTC (permalink / raw)
  To: Sasha Khapyorsky, linux-rdma
  Cc: ofw-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org

Sasha Khapyorsky wrote:
> 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-smomgflXvOZWk0Htik3J/w@public.gmane.org>
> ---
>  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 } };
>
>  /**********************************************************************
>
> **********************************************************************/

OK.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-01 17:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <D8E83C9B6A164D48B1F37DFB606CB25A@amr.corp.intel.com>
     [not found] ` <D8E83C9B6A164D48B1F37DFB606CB25A-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2009-10-01 17:17   ` [PATCH] opensm/osm_helper.c: fix compiler warning Sasha Khapyorsky
2009-10-01 17:37     ` Smith, Stan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox