WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 22 of 45] gcc-4.6 compile fix: xen/common/unlzo.c

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 22 of 45] gcc-4.6 compile fix: xen/common/unlzo.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:41 +0200
Delivery-date: Thu, 19 May 2011 12:27:58 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832152; l=1028; s=domk; d=aepfle.de; h=To:From:Date:References:In-Reply-To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:X-RZG-CLASS-ID: X-RZG-AUTH; bh=fEm6NBonIquB2xMfq5fanbJkG/Q=; b=Ql2AIyaS8S1wq3Hdg094FktL4HNo0AAMT7iFy+aa3QcUVIvVCCJfU86+G+n/793jvK2 k+2X4NfyqmOF5xChaguxAmBPr87oKo2l5J5RYmBRIRH7wMo8ZjFUARFQbwSa0Uvl5B9Lp oePRurju7FX/PNpPpjlxRzRohPHGX9zSELg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1305831919@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1305831919@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.7.5
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305824406 -7200
# Node ID 0f8146a56c8e2349f7fbc091e843f72974643106
# Parent  215451b4be8e001ccf816decb171ef0c50373de5
gcc-4.6 compile fix: xen/common/unlzo.c

unlzo.c: In function 'parse_header':
unlzo.c:71:5: error: variable 'level' set but not used 
[-Werror=unused-but-set-variable]

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r 215451b4be8e -r 0f8146a56c8e xen/common/unlzo.c
--- a/xen/common/unlzo.c        Thu May 19 19:00:05 2011 +0200
+++ b/xen/common/unlzo.c        Thu May 19 19:00:06 2011 +0200
@@ -68,7 +68,6 @@ static int INIT parse_header(u8 *input, 
 {
        int l;
        u8 *parse = input;
-       u8 level = 0;
        u16 version;
 
        /* read magic: 9 first bits */
@@ -82,7 +81,7 @@ static int INIT parse_header(u8 *input, 
        version = get_unaligned_be16(parse);
        parse += 7;
        if (version >= 0x0940)
-               level = *parse++;
+               parse += 1; /* skip level */
        if (get_unaligned_be32(parse) & HEADER_HAS_FILTER)
                parse += 8; /* flags + filter info */
        else

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>