File: gcc-14.patch

package info (click to toggle)
ampliconnoise 1.29-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,316 kB
  • sloc: ansic: 18,085; sh: 2,901; perl: 2,089; makefile: 240
file content (36 lines) | stat: -rw-r--r-- 1,444 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
Description: declare void functions implicitly typed int.
 This fixes the following error, now fatal, with gcc-14:
 .
 	FCluster.c:223:1: error: return type defaults to ‘int’ [-Wimplicit-int]
 	  223 | UpdateMinCacheForRow(struct t_Min* asMin,int i,float** aafDistMatrix)
 	      | ^~~~~~~~~~~~~~~~~~~~
 	FCluster.c:244:1: error: return type defaults to ‘int’ [-Wimplicit-int]
 	  244 | UpdateMinCacheForMarkedRows(struct t_Min* asMin,float** aafDistMatrix,int nN)
 	      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Author: Étienne Mollier <emollier@emlwks999.eu>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1077153
Forwarded: no
Last-Update: 2024-08-07
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- ampliconnoise.orig/FCluster/FCluster.c
+++ ampliconnoise/FCluster/FCluster.c
@@ -220,7 +220,7 @@
 };
 
 // Update the cached data for a row 
-UpdateMinCacheForRow(struct t_Min* asMin,int i,float** aafDistMatrix)
+void UpdateMinCacheForRow(struct t_Min* asMin,int i,float** aafDistMatrix)
 {
         // re-calculate the whole row as the old min has been overwritten
         float fdist = aafDistMatrix[i][0];
@@ -241,7 +241,7 @@
 };
 
 // Recalculate cached data for all rows
-UpdateMinCacheForMarkedRows(struct t_Min* asMin,float** aafDistMatrix,int nN)
+void UpdateMinCacheForMarkedRows(struct t_Min* asMin,float** aafDistMatrix,int nN)
 {
     int i;
     for (i = 1; i < nN; i++)