From 448889a4f0c32ba8ea61f870d4edcb0e0d58af85 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 20 Dec 2022 20:01:02 -0500 Subject: Use -Wstrict-prototypes and fix warnings Most of the changes include defining and using proper function type declarations (with argument types declared) and avoiding using the K&R style of function declarations. Message-Id: --- include/mach/error.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/mach/error.h') diff --git a/include/mach/error.h b/include/mach/error.h index 72a2d79c..035dcf83 100644 --- a/include/mach/error.h +++ b/include/mach/error.h @@ -44,7 +44,6 @@ #define err_none (mach_error_t)0 #define ERR_SUCCESS (mach_error_t)0 -#define ERR_ROUTINE_NIL (mach_error_fn_t)0 #define err_system(x) (((x)&0x3f)<<26) @@ -89,7 +88,6 @@ #ifndef __ASSEMBLER__ typedef kern_return_t mach_error_t; -typedef mach_error_t (* mach_error_fn_t)(); #endif /* __ASSEMBLER__ */ #endif /* _MACH_ERROR_H_ */ -- cgit v1.2.3