Dear Maintainer,
-Wshadow=global -Wredundant-decls -Wunused -Wunused-parameter
-fsanitize=signed-integer-overflow -fsanitize-undefined-trap-on-error
-fstack-protector-strong -fno-common -fstack-clash-protection -ftrapv
-funsigned-char -fvar-tracking-assignments -ggdb -D_FORTIFY_SOURCE=2
-Wmissing-prototypes -Wold-style-definition -Wstrict-prototypes
-Wold-style-declaration -std=c2x -c -o nn.o nn.c
In file included from nn.c:18:
global.h:30:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
30 | typedef int (*fct_type) ();
| ^~~~~~~
####
Create more specific prototypes:
(*fct_type_void) (void);
(*fct_type_int) (int);
(*fct_type_char_int) (char *, int);
Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
global.h | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/global.h b/global.h
index 0d9d475..9f75975 100644
--- a/global.h
+++ b/global.h
@@ -27,9 +27,17 @@ typedef long article_number;
typedef int32 group_number;
typedef uint32 time_stamp;