File: gcc-14.patch

package info (click to toggle)
icom 20120228-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,584 kB
  • sloc: ansic: 4,070; cpp: 3,322; xml: 112; csh: 64; makefile: 39; awk: 37
file content (25 lines) | stat: -rw-r--r-- 539 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
Description: address FTBFS w/GCC-14 due to -Wint-conversion
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075081
Author: tony mancill <tmancill@debian.org>
Forwarded: no

--- a/icom.c
+++ b/icom.c
@@ -325,7 +325,7 @@
 			if (fp_cmd[fp] != NULL) {
 				if (fgets(args, LINMAX, fp_cmd[fp]) ==
 				    NULL) {
-					close(fp_cmd[fp]);
+					close((int)fp_cmd[fp]);
 					fp--;
 					continue;
 
@@ -923,7 +923,7 @@
 					break;
 			}
 		}
-		close(fp_in);
+		close((int)fp_in);
 		pflags &= ~(P_DISP | P_DSPCH);
 		break;