diff options
author | Patrick Lauer <patrick@gentoo.org> | 2009-04-26 13:02:31 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2009-04-26 13:02:31 +0000 |
commit | 36dab52f639187182642fd4ddd8b1cc7ed372660 (patch) | |
tree | 8e219c33a3199c16844074d4cb3634570947eeb9 /app-emulation/xen/files | |
parent | Fix gcc 4.3 compile failure, part of #259670 (diff) | |
download | gentoo-2-36dab52f639187182642fd4ddd8b1cc7ed372660.tar.gz gentoo-2-36dab52f639187182642fd4ddd8b1cc7ed372660.tar.bz2 gentoo-2-36dab52f639187182642fd4ddd8b1cc7ed372660.zip |
Fix gcc 4.3 compile failure, part of #259670
(Portage version: 2.2_rc31/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/xen/files')
-rw-r--r-- | app-emulation/xen/files/xen-3.3.0-warning-fix.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app-emulation/xen/files/xen-3.3.0-warning-fix.patch b/app-emulation/xen/files/xen-3.3.0-warning-fix.patch new file mode 100644 index 000000000000..d1cc78c322bc --- /dev/null +++ b/app-emulation/xen/files/xen-3.3.0-warning-fix.patch @@ -0,0 +1,26 @@ +diff -Nru a/xen/drivers/char/console.c b/xen/drivers/char/console.c +--- a/xen/drivers/char/console.c 2008-08-22 17:49:09.000000000 +0800 ++++ b/xen/drivers/char/console.c 2009-02-19 18:39:47.000000000 +0800 +@@ -919,7 +919,7 @@ + console_start_sync(); + printk("\n****************************************\n"); + printk("Panic on CPU %d:\n", smp_processor_id()); +- printk(buf); ++ printk("%s", buf); + printk("****************************************\n\n"); + if ( opt_noreboot ) + printk("Manual reset required ('noreboot' specified)\n"); +diff -Nru a/xen/tools/symbols.c b/xen/tools/symbols.c +--- a/xen/tools/symbols.c 2008-08-22 17:49:10.000000000 +0800 ++++ b/xen/tools/symbols.c 2009-02-19 18:36:35.000000000 +0800 +@@ -80,8 +80,9 @@ + rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, str); + if (rc != 3) { + if (rc != EOF) { ++ char* z; + /* skip line */ +- fgets(str, 500, in); ++ z = fgets(str, 500, in); + } + return -1; + } |