File: gcc-14.patch

package info (click to toggle)
libtfbs-perl 0.7.1%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,016 kB
  • sloc: perl: 10,728; ansic: 1,228; makefile: 560; sh: 9
file content (56 lines) | stat: -rw-r--r-- 2,297 bytes parent folder | download | duplicates (2)
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 */