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.
This commit is contained in:
Andreas Hansson 2012-05-30 05:31:48 -04:00
parent b8cf48accc
commit 1d520cda80
2 changed files with 2 additions and 2 deletions

View file

@ -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 = "<NULL>";

View file

@ -137,7 +137,7 @@ class Arguments
template <class T>
operator T *() {
T *buf = (T *)data->alloc(sizeof(T));
CopyData(tc, buf, getArg(sizeof(T)), sizeof(T));
CopyOut(tc, buf, getArg(sizeof(T)), sizeof(T));
return buf;
}