maintainer-feedback requested: [Bug 268250] audio/pulseaudio: fix build with clang 15
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 268250] audio/pulseaudio: fix build with clang 15"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 08 Dec 2022 17:07:00 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-desktop (Team) <desktop@FreeBSD.org> for maintainer-feedback: Bug 268250: audio/pulseaudio: fix build with clang 15 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268250 --- Description --- audio/pulseaudio: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that devel/pulseaudio failed to build with clang 15: checking whether C compiler accepts -std=gnu11... no configure: error: *** Compiler does not support -std=gnu11 ===> Script "configure" failed unexpectedly. The configure script compiles a few test cases with -pedantic -Werror, and with clang 15 this results in a -Wstrict-prototypes error, since the test cases use "int main ()" instead of "int main (void)". Replace instances of "int main()" with "int main (void)" in the configure script to work around this problem.