[Spice-devel] [spice-gtk 01/13] test: fix a few compiler warnings

Christophe Fergeau cfergeau at redhat.com
Fri Feb 7 01:58:38 PST 2014


ACK

On Mon, Feb 03, 2014 at 07:02:32PM +0100, Marc-André Lureau wrote:
> From: Marc-André Lureau <marcandre.lureau at redhat.com>
> 
> util.c: In function 'test_set_bit':
> util.c:131:13: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
> ---
>  tests/util.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/tests/util.c b/tests/util.c
> index 922818a..ecd83eb 100644
> --- a/tests/util.c
> +++ b/tests/util.c
> @@ -81,9 +81,9 @@ static void test_unix2dos(void)
>  static const struct {
>      unsigned width;
>      unsigned height;
> -    guint8 *and;
> -    guint8 *xor;
> -    guint8 *dest;
> +    gchar *and;
> +    gchar *xor;
> +    gchar *dest;
>  } mono[] = {
>      {
>          8, 6,
> @@ -123,8 +123,8 @@ static void test_set_bit(void)
>  {
>      struct {
>          unsigned len;
> -        guint8 *src;
> -        guint8 *dest;
> +        gchar *src;
> +        gchar *dest;
>      } tests[] = {
>          {
>              4,
> @@ -140,7 +140,7 @@ static void test_set_bit(void)
>      int i, j, bit;
>      guint8 *dest;
>      int bytes;
> -    
> +
>      for (i = 0 ; i < G_N_ELEMENTS(tests); ++i) {
>          bytes = (tests[i].len + 7) / 8;
>          dest = g_malloc0(bytes);
> -- 
> 1.8.4.2
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20140207/4b263e6e/attachment-0001.pgp>


More information about the Spice-devel mailing list