Skip to content

Commit 33b15dc

Browse files
committed
src/long-options.c: Fix prototype of parse_long_options for GCC 15
Symptom was: > long-options.c:51:1: error: conflicting types for 'parse_long_options'; have 'void(int, char **, const char *, const char *, const char *, const char *, void (*)(void))' > 51 | parse_long_options (int argc, > | ^~~~~~~~~~~~~~~~~~ > In file included from long-options.c:30: > long-options.h:29:3: note: previous declaration of 'parse_long_options' with type 'void(int, char **, const char *, const char *, const char *, const char *, void (*)(int))' > 29 | parse_long_options PARAMS ((int _argc, > | ^~~~~~~~~~~~~~~~~~ > long-options.c: In function 'parse_long_options': > long-options.c:73:12: error: too many arguments to function 'usage_func' > 73 | (*usage_func) (0); > | ~^~~~~~~~~~~~
1 parent 9984973 commit 33b15dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/long-options.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ parse_long_options (int argc,
5454
const char *package,
5555
const char *version,
5656
const char *authors,
57-
void (*usage_func)())
57+
void (*usage_func)(int))
5858
{
5959
int c;
6060
int saved_opterr;

0 commit comments

Comments
 (0)