From 1d520cda808704c98dea14f2cfd563b43f73c8d6 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Wed, 30 May 2012 05:31:48 -0400 Subject: gcc: Small fixes to compile with gcc 4.7 This patch makes two very minor changes to please gcc 4.7. The CopyData function no longer exists and this has been replaced. For some reason previous versions of gcc did not complain on the const char casting not having an implementation, but this is now addressed. --- src/kern/linux/printk.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kern') diff --git a/src/kern/linux/printk.cc b/src/kern/linux/printk.cc index a19d81b08..e856e2263 100644 --- a/src/kern/linux/printk.cc +++ b/src/kern/linux/printk.cc @@ -169,7 +169,7 @@ Printk(stringstream &out, Arguments args) break; case 's': { - const char *s = (const char *)args; + const char *s = (char *)args; if (!s) s = ""; -- cgit v1.2.3