diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2022-12-20 20:01:02 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-12-21 12:55:46 +0100 |
commit | 448889a4f0c32ba8ea61f870d4edcb0e0d58af85 (patch) | |
tree | cad56c7263667bb09096cc05c707130d3809544a /include/mach/error.h | |
parent | 28ac48ba2371ad6f76f263e56dcf0090fe0d6087 (diff) | |
download | gnumach-448889a4f0c32ba8ea61f870d4edcb0e0d58af85.tar.gz gnumach-448889a4f0c32ba8ea61f870d4edcb0e0d58af85.tar.bz2 gnumach-448889a4f0c32ba8ea61f870d4edcb0e0d58af85.zip |
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: <Y6Jazsuis1QA0lXI@mars>
Diffstat (limited to 'include/mach/error.h')
-rw-r--r-- | include/mach/error.h | 2 |
1 files changed, 0 insertions, 2 deletions
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_ */ |