[Bug 282164] audio/oss: fix build with clang 19
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Oct 2024 19:18:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282164 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>. -- You are receiving this mail because: You are the assignee for the bug.