Skip to content

Commit 010d6aa

Browse files
committed
rmkdepend: Add arguments to function pointer types
Soon-to-be-released Clang 15 complains: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
1 parent dfd90c2 commit 010d6aa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

build/rmkdepend/ifparser.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,9 @@ typedef int Bool;
7171

7272
typedef struct _if_parser {
7373
struct { /* functions */
74-
char *(*handle_error)(/* struct _if_parser *, const char *,
75-
const char * */);
76-
long(*eval_variable)(/* struct _if_parser *, const char *, int */);
77-
int (*eval_defined)(/* struct _if_parser *, const char *, int */);
74+
char *(*handle_error)(struct _if_parser *, const char *, const char *);
75+
long (*eval_variable)(struct _if_parser *, const char *, int);
76+
int (*eval_defined)(struct _if_parser *, const char *, int);
7877
} funcs;
7978
char *data;
8079
} IfParser;

0 commit comments

Comments
 (0)