Skip to content

Commit 1614229

Browse files
mrgalarixnia
authored andcommitted
Fix build with GCC 14: give main() a return type.
1 parent ba4549d commit 1614229

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

audio/spiralsynth/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: Makefile,v 1.41 2023/11/12 13:20:43 wiz Exp $
1+
# $NetBSD: Makefile,v 1.43 2025/10/07 03:56:16 mrg Exp $
22
#
33

44
DISTNAME= SpiralSynth-2.0.0
@@ -29,6 +29,8 @@ do-install:
2929
${INSTALL_DATA} ${WRKSRC}/.SpiralPatches.bank \
3030
${WRKSRC}/.Spiralrc ${DESTDIR}${PREFIX}/share/spiralsynth
3131

32+
#CFLAGS.NetBSD+= -Wno-implicit-int -Wno-implicit-function-declaration -Wno-builtin-declaration-mismatch -Wno-incompatible-pointer-types
33+
3234
.include "../../x11/fltk13/buildlink3.mk"
3335
.include "../../mk/oss.buildlink3.mk"
3436
.include "../../mk/pthread.buildlink3.mk"

audio/spiralsynth/distinfo

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$NetBSD: distinfo,v 1.17 2021/10/26 09:59:31 nia Exp $
1+
$NetBSD: distinfo,v 1.18 2025/10/07 03:56:16 mrg Exp $
22

33
BLAKE2s (SpiralSynth-2.0.0.tar.gz) = 161cbb848a8ec7785b52717b57306abf53b498c074476625c6d04379c460dee9
44
SHA512 (SpiralSynth-2.0.0.tar.gz) = fb9b1c84d03120c372af344f1f3e6ec4bfecea8d2c2afed9f5484c13e453bf816cfa7429690d3a3356ca84a51df31fdbb3ca25d2d2b023aacacfea6ec4936244
@@ -18,3 +18,4 @@ SHA1 (patch-am) = 78ab70a1952f389712412515652c2e8cc7d917a3
1818
SHA1 (patch-an) = 2bafb1a9a959816af43a858fdb4a9df5586a91e9
1919
SHA1 (patch-ao) = 138f58bd7fae0226690747efcb8daf472e3a5337
2020
SHA1 (patch-ar) = 44ab335b5a7831080d58a952f3cc13e5795a3f0e
21+
SHA1 (patch-configure) = 2b7c1b47d3de0f725dd7c058d576f17442b61b2a
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
$NetBSD: patch-configure,v 1.1 2025/10/07 03:56:16 mrg Exp $
2+
3+
Give main() a return type for GCC 14.
4+
5+
6+
--- configure.orig 2000-11-26 09:31:50.000000000 -0800
7+
+++ configure 2025-09-29 14:25:24.827542871 -0700
8+
@@ -652,7 +652,7 @@
9+
#line 653 "configure"
10+
#include "confdefs.h"
11+
12+
-main(){return(0);}
13+
+int main(){return(0);}
14+
EOF
15+
if { (eval echo configure:658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16+
ac_cv_prog_cc_works=yes

0 commit comments

Comments
 (0)