#984464 global.h:. Fix a warning from the compiler

Package:
src:nn
Source:
nn
Submitter:
Bjarni Ingi Gislason
Date:
2021-03-03 22:09:03 UTC
Severity:
normal
Tags:
#984464#5
Date:
2021-03-03 22:06:29 UTC
From:
To:
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;