# HG changeset patch # User Andreas Woess # Date 1378983365 -7200 # Node ID 103795ab699d79dcd3c5956d13681c4562b335da # Parent b5d2a23b7f6ba0770d0f3552ea6efee97c03c309 gpu.cpp: fix warning: not all control paths return a value diff -r b5d2a23b7f6b -r 103795ab699d src/share/vm/runtime/gpu.cpp --- a/src/share/vm/runtime/gpu.cpp Thu Sep 12 11:18:03 2013 +0200 +++ b/src/share/vm/runtime/gpu.cpp Thu Sep 12 12:56:05 2013 +0200 @@ -55,10 +55,9 @@ if (gpu::get_target_il_type() == gpu::PTX) { return (gpu::Ptx::generate_kernel(code, code_len, name)); } - } else { // Add kernel generation functionality of other GPUs here - return NULL; } + return NULL; } bool gpu::execute_kernel(address kernel, PTXKernelArguments & ptxka, JavaValue& ret) { @@ -66,9 +65,8 @@ if (gpu::get_target_il_type() == gpu::PTX) { return (gpu::Ptx::execute_kernel(kernel, ptxka, ret)); } - } else { // Add kernel execution functionality of other GPUs here - return false; } + return false; }