1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
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 <emollier@debian.org>
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 */
|