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:
parent
b8cf48accc
commit
1d520cda80
2 changed files with 2 additions and 2 deletions
|
@ -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>";
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue