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

Smith, Stan stan.smith at intel.com
Thu Oct 1 10:37:23 PDT 2009


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 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 } };
>
>  /**********************************************************************
>
> **********************************************************************/

OK.



More information about the ofw mailing list