Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/xen/files: xen-3.3.0-warning-fix.patch
Date: Sun, 26 Apr 2009 13:02:34
Message-Id: E1Ly407-0004Qr-Na@stork.gentoo.org
1 patrick 09/04/26 13:02:31
2
3 Added: xen-3.3.0-warning-fix.patch
4 Log:
5 Fix gcc 4.3 compile failure, part of #259670
6 (Portage version: 2.2_rc31/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 app-emulation/xen/files/xen-3.3.0-warning-fix.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/files/xen-3.3.0-warning-fix.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/files/xen-3.3.0-warning-fix.patch?rev=1.1&content-type=text/plain
13
14 Index: xen-3.3.0-warning-fix.patch
15 ===================================================================
16 diff -Nru a/xen/drivers/char/console.c b/xen/drivers/char/console.c
17 --- a/xen/drivers/char/console.c 2008-08-22 17:49:09.000000000 +0800
18 +++ b/xen/drivers/char/console.c 2009-02-19 18:39:47.000000000 +0800
19 @@ -919,7 +919,7 @@
20 console_start_sync();
21 printk("\n****************************************\n");
22 printk("Panic on CPU %d:\n", smp_processor_id());
23 - printk(buf);
24 + printk("%s", buf);
25 printk("****************************************\n\n");
26 if ( opt_noreboot )
27 printk("Manual reset required ('noreboot' specified)\n");
28 diff -Nru a/xen/tools/symbols.c b/xen/tools/symbols.c
29 --- a/xen/tools/symbols.c 2008-08-22 17:49:10.000000000 +0800
30 +++ b/xen/tools/symbols.c 2009-02-19 18:36:35.000000000 +0800
31 @@ -80,8 +80,9 @@
32 rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, str);
33 if (rc != 3) {
34 if (rc != EOF) {
35 + char* z;
36 /* skip line */
37 - fgets(str, 500, in);
38 + z = fgets(str, 500, in);
39 }
40 return -1;
41 }