bug#7200: [PATCH] mbsalign: avoid warning with Solaris 10 cc
From:
Jim Meyering
Subject:
bug#7200: [PATCH] mbsalign: avoid warning with Solaris 10 cc
Date:
Tue, 12 Oct 2010 21:58:17 +0200
Paul Eggert wrote:
> For the Oct. 10 snapshot Solaris 10 cc issues this warning:
>
> "mbsalign.c", line 135: warning: initializer does not fit or is out of range:
> -1
>
> This is just a warning and doesn't break anything, but it's trivial to fix:
This too looks safe enough.
Feel free to push that.
> Subject: [PATCH] mbsalign: avoid warning with Solaris 10 cc
>
> * gl/lib/mbsalign.c: Include <stdint.h> for SIZE_MAX.
> Use SIZE_MAX rather than (size_t) -1, to avoid warning for
> "size_t x = -1" on Solaris 10 cc.
> * gl/modules/mbsalign (Depends-on): Add stdint.