Description: fix uptream: migration to C23 Origin: debian Forwarded: https://github.com/ge-ne/bibtool/pull/91 Author: Michael Tautschnig Author: Jerome Benoit Last-Update: 2025-04-13 --- a/include/bibtool/pxfile.h +++ b/include/bibtool/pxfile.h @@ -42,7 +42,7 @@ char * mode, char **pattern, char **path, - int (*show)() + int (*show)(char *) #endif ); --- a/include/bibtool/tex_read.h +++ b/include/bibtool/tex_read.h @@ -38,7 +38,7 @@ #else #define _ARG(A) () #endif - int TeX_read _ARG((String cp, String *sp)); /* tex-read.c */ + bool TeX_read _ARG((String cp, String *sp)); /* tex-read.c */ void TeX_active _ARG((int c,int arity, String s));/* tex_read.c */ void TeX_close _ARG((void)); /* tex_read.c */ void TeX_def _ARG((String s)); /* tex_read.c */ --- a/main.c +++ b/main.c @@ -414,7 +414,7 @@ /* this database. */ int i; /* */ bool need_rsc = true; /* */ - int (*fct)(); /* Function pointer */ + int (*fct)(struct rECORD *, struct rECORD *); /* Function pointer */ int c_len; /* */ int *c = NULL; /* */ /* */ --- a/configure.ac +++ b/configure.ac @@ -80,6 +80,9 @@ AC_CHECK_FUNCS(strrchr) dnl --------------------------------------------------------------------------- +AX_APPEND_COMPILE_FLAGS(-Wno-old-style-definition) + +dnl --------------------------------------------------------------------------- AC_ARG_WITH(kpathsea,Use the KPATHSEA library.,,with_kpathsea=yes) if test $with_kpathsea = no; then