File: c-dialect.patch

package info (click to toggle)
arc 5.21q-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 640 kB
  • sloc: ansic: 6,630; makefile: 323
file content (25 lines) | stat: -rw-r--r-- 830 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: Specify the expected C dialect explicitly
 Starting with gcc-15, the compiler defaults to C23, which is way more strict
 with function prototypes and pointer types. The code is not ready for that
 yet, so specify the expected C dialect explicitly, by passing -std=gnu17.
Author: Guillem Jover <guillem@debian.org>
Origin: vendor
Forwarded: no
Bug-Debian: https://bugs.debian.org/1096324
Last-Update: 2025-02-19

---
 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,7 @@ SYSTEM = -DSYSV=1
 OPT = -O -Wall
 # For MWC 3.0 on the Atari ST, use:
 #CFLAGS = -VCOMPAC -VPEEP
-CFLAGS += $(OPT) $(SYSTEM) $(CPPFLAGS)
+CFLAGS += $(OPT) $(SYSTEM) -std=gnu17 $(CPPFLAGS)
 
 # GNU's gcc is very nice, if you've got it. Otherwise just cc.
 #CC = cgcc -mshort -mbaserel