Re: [PATCH] libmlx4: Fix a compiler warning

Roland Dreier
2011-10-11T00:41:16Z

On Mon, Oct 10, 2011 at 10:47 AM, Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org> wrote:
> -       uint32_t hi = *(uint32_t *)(gid->raw);
> -       uint32_t lo = *(uint32_t *)(gid->raw + 4);
> -       if (hi == htonl(0xfe800000) && lo == 0)
> -               return 1;
> +       uint32_t hi = gid->u32[0];
> +       uint32_t lo = gid->u32[1];

Thanks, however I like to keep libmlx4 backwards compatible
if possible. So we can't do this unconditionally.

- R.