databases/kyotocabinet: add prototypes to kclangc.h declarations.
Some function declarations just use () as argument list. This is valid C++, but not C, and clang-15 complains with -Wstrict-prototypes: /usr/local/include/kclangc.h:261:13: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] double kcnan(); ^ void /usr/local/include/kclangc.h:268:13: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] double kcinf(); ^ void /usr/local/include/kclangc.h:1525:18: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] KCLIST* kclistnew(); ^ void Add the missing void. PR: 268313
This commit is contained in:
parent
e0dd1e987a
commit
8b60e005cd
2 changed files with 29 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= kyotocabinet
|
||||
PORTVERSION= 1.2.79
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= https://dbmx.net/kyotocabinet/pkg/ \
|
||||
LOCAL/sunpoet
|
||||
|
|
28
databases/kyotocabinet/files/patch-kclangc.h
Normal file
28
databases/kyotocabinet/files/patch-kclangc.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
--- kclangc.h.orig 2020-12-18 02:48:28 UTC
|
||||
+++ kclangc.h
|
||||
@@ -258,14 +258,14 @@ size_t kclevdist(const void* abuf, size_t asiz, const
|
||||
* Get the quiet Not-a-Number value.
|
||||
* @return the quiet Not-a-Number value.
|
||||
*/
|
||||
-double kcnan();
|
||||
+double kcnan(void);
|
||||
|
||||
|
||||
/**
|
||||
* Get the positive infinity value.
|
||||
* @return the positive infinity value.
|
||||
*/
|
||||
-double kcinf();
|
||||
+double kcinf(void);
|
||||
|
||||
|
||||
/**
|
||||
@@ -1522,7 +1522,7 @@ typedef struct {
|
||||
* @note The object of the return value should be released with the kclistdel function when it is
|
||||
* no longer in use.
|
||||
*/
|
||||
-KCLIST* kclistnew();
|
||||
+KCLIST* kclistnew(void);
|
||||
|
||||
|
||||
/**
|
Loading…
Reference in a new issue