Date: Thu, 17 Oct 2024 19:18:24 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 282164] audio/oss: fix build with clang 19 Message-ID: <bug-282164-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282164 Bug ID: 282164 Summary: audio/oss: fix build with clang 19 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: crees@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: crees@FreeBSD.org Flags: maintainer-feedback?(crees@FreeBSD.org) Clang 19 has become more strict about erroneous redeclarations, which results in an error building audio/oss: oss_sndstat.c:114:17: error: redeclaration of 'version' with a different type: 'char[]' vs 'const char[]' 114 | extern char version[]; | ^ /usr/include/sys/systm.h:54:19: note: previous declaration is here 54 | extern const char version[]; /* system version */ | ^ Since version[] has been a const char for quite a while now, adjust the redeclaration in oss_sndstat.c. Note that it also might be deleted entirely, since the file already includes <sys/systm.h>. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-282164-7788>