From 11cf4e80748af05dd6c8f1d30609a5485bf28372 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 26 Nov 2016 19:26:23 +0100 Subject: fixup gcc warnings Remove following warning from common code: warning: ISO C90 forbids mixed declarations and code --- include/cancel.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/cancel.h b/include/cancel.h index b60d21808..629df555f 100644 --- a/include/cancel.h +++ b/include/cancel.h @@ -60,10 +60,12 @@ # define CANCELLABLE_SYSCALL(res_type, name, param_list, params) \ res_type weak_function name param_list \ { \ + int oldtype; \ + res_type result; \ if (SINGLE_THREAD_P) \ return __NC(name) params; \ - int oldtype = LIBC_CANCEL_ASYNC(); \ - res_type result = __NC(name) params; \ + oldtype = LIBC_CANCEL_ASYNC(); \ + result = __NC(name) params; \ LIBC_CANCEL_RESET(oldtype); \ return result; \ } -- cgit v1.2.3