From 92eaac07118a620c2c9dd48921eefcb7ca4422a8 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 2 Jul 2012 08:21:53 -0400 Subject: gcc: Fix warnings for gcc 4.7 and clang 3.1 This patch fixes two warnings, one related to a narrowing conversion (int to MachInst), and one due to the cast operator for arguments and a mismatch in const-ness (const void* and void*). --- src/kern/tru64/printf.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kern/tru64/printf.cc') diff --git a/src/kern/tru64/printf.cc b/src/kern/tru64/printf.cc index 600e96818..dfd300c12 100644 --- a/src/kern/tru64/printf.cc +++ b/src/kern/tru64/printf.cc @@ -177,7 +177,7 @@ Printf(Arguments args) break; case 's': { - const char *s = (const char *)args; + const char *s = (char *)args; if (!s) s = ""; -- cgit v1.2.3