aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2013-06-06 19:38:54 +0300
committerPekka Enberg <penberg@kernel.org>2013-06-06 19:39:27 +0300
commit79615fce340a08a80c16e4f9306f605a1448eeb6 (patch)
tree783628340f67c1b8b896b2be1ae2c0d7418834f5
parent6f665c1510e1f33436aa2573d4e7073837db9591 (diff)
downloadjato-79615fce340a08a80c16e4f9306f605a1448eeb6.tar.gz
x86-64: Add default case to native_call()
GCC points out that: arch/x86/call.c: In function ‘native_call’: arch/x86/call.c:247:2: warning: switch missing default case [-Wswitch-default] Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r--arch/x86/call.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/call.c b/arch/x86/call.c
index 059888ec..61c6914c 100644
--- a/arch/x86/call.c
+++ b/arch/x86/call.c
@@ -275,7 +275,9 @@ void native_call(struct vm_method *method,
break;
case J_RETURN_ADDRESS:
case VM_TYPE_MAX:
+ default:
die("unexpected type");
+ break;
}
}