From d5d9d4fe82846f6b8ddd86cef4804650088ef4d6 Mon Sep 17 00:00:00 2001 From: tidwall Date: Wed, 24 Apr 2024 19:57:20 -0700 Subject: [PATCH] Adjust neco_main specifiers to remove warnings Remove the static inline specifier from the __neco_main signature to avoid old-style-declaration warning when -Wextra is provided. --- neco.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neco.h b/neco.h index 5055342..067ba96 100644 --- a/neco.h +++ b/neco.h @@ -422,10 +422,10 @@ ssize_t neco_stream_buffered_write_size(neco_stream *stream); #include #define neco_main \ -static inline __neco_main0(int argc, char *argv[]); \ +__neco_main(int argc, char *argv[]); \ static void _neco_main(int argc, void *argv[]) { \ (void)argc; \ - __neco_exit_prog(__neco_main0(*(int*)argv[0], *(char***)argv[1])); \ + __neco_exit_prog(__neco_main(*(int*)argv[0], *(char***)argv[1])); \ } \ int main(int argc, char *argv[]) { \ neco_env_setpaniconerror(true); \ @@ -434,7 +434,7 @@ int main(int argc, char *argv[]) { \ fprintf(stderr, "neco_start: %s (code %d)\n", neco_strerror(ret), ret); \ return -1; \ }; \ -int static inline __neco_main0 +int __neco_main //////////////////////////////////////////////////////////////////////////////// // private functions, not to be call directly