Description: fix implicit int return types with gcc 14. This fixes the following build failure: . ./lib/pwm_searchPFF.c:303:1: error: return type defaults to ‘int’ [-Wimplicit-int] 303 | get_sequence(fp,seq_id,sequence) | ^~~~~~~~~~~~ ./lib/pwm_searchPFF.c:414:1: error: return type defaults to ‘int’ [-Wimplicit-int] 414 | best_pull(pargs,pbase,pstrand,pscore) | ^~~~~~~~~ Author: Étienne Mollier Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075213 Forwarded: https://github.com/ComputationalRegulatoryGenomicsICL/TFBS/pull/4 Last-Update: 2024-07-10 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- libtfbs-perl.orig/Ext/lib/pwm_searchPFF.c +++ libtfbs-perl/Ext/lib/pwm_searchPFF.c @@ -300,7 +300,7 @@ * * Return 0 normally, -1 on error, 1 if called at EOF. *------------------------------------------------------------------*/ -get_sequence(fp,seq_id,sequence) +int get_sequence(fp,seq_id,sequence) FILE *fp; /* file to read */ char *seq_id; /* name of sequence */ char *sequence; /* text of sequence */ @@ -411,7 +411,7 @@ * * Returns: 0 *------------------------------------------------------------------*/ -best_pull(pargs,pbase,pstrand,pscore) +int best_pull(pargs,pbase,pstrand,pscore) struct arguments *pargs; /* args from command line */ long *pbase; /* base where score occurs */ int *pstrand; /* strand where score occurs */ --- libtfbs-perl.orig/blib/lib/pwm_searchPFF.c +++ libtfbs-perl/blib/lib/pwm_searchPFF.c @@ -156,7 +156,7 @@ * * Returns: 0 *------------------------------------------------------------------*/ -best_pull(pargs,pbase,pstrand,pscore) +int best_pull(pargs,pbase,pstrand,pscore) struct arguments *pargs; /* args from command line */ long *pbase; /* base where score occurs */ int *pstrand; /* strand where score occurs */ @@ -523,7 +523,7 @@ * * Return 0 normally, -1 on error, 1 if called at EOF. *------------------------------------------------------------------*/ -get_sequence(fp,seq_id,sequence) +int get_sequence(fp,seq_id,sequence) FILE *fp; /* file to read */ char *seq_id; /* name of sequence */ char *sequence; /* text of sequence */