Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D923DC77B7A for ; Fri, 26 May 2023 21:13:33 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 3EB72200; Fri, 26 May 2023 23:12:41 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3EB72200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1685135611; bh=yLAN0fb7/SLx7o9BrUk2uUB9UelVB2ogt07/y0GY7dY=; h=From:To:In-Reply-To:References:Subject:Date:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=Hsqy63xZxxSg2JePF+ApAOSeXVjBfRgaWaqn6NYGSWw9ci5VzgxJfs+4f9tPeOSAZ zkdVCpNjfjLplyxYXwLDvew4L/jup1esRG39eZ3VDNsA7t01FihS4Sn8gJ1Jmt4aHR fl/GsqpoRW+AqdAnZmAzWF0vlYSGnJDXdQpKJVtM= Received: by alsa1.perex.cz (Postfix, from userid 50401) id CA608F8001F; Fri, 26 May 2023 23:12:12 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 705CAF80249; Fri, 26 May 2023 23:12:12 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id CD622F80249; Fri, 26 May 2023 23:12:07 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (vmi242170.contaboserver.net [207.180.221.201]) by alsa1.perex.cz (Postfix) with ESMTP id 96A3BF80053 for ; Fri, 26 May 2023 23:12:03 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 96A3BF80053 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - opened To: alsa-devel@alsa-project.org In-Reply-To: <1685135523595964670-webhooks-bot@alsa-project.org> References: <1685135523595964670-webhooks-bot@alsa-project.org> Subject: alsa-lib fails test with clang-16 Message-Id: <20230526211207.CD622F80249@alsa1.perex.cz> Date: Fri, 26 May 2023 23:12:07 +0200 (CEST) Message-ID-Hash: 23TADLK65HCF6ITW5LEZCGQUIKXJS55A X-Message-ID-Hash: 23TADLK65HCF6ITW5LEZCGQUIKXJS55A X-MailFrom: github@alsa-project.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: alsa-project/alsa-lib issue #323 was opened from fsvm88: Hello, While building is fine, testing alsa-lib on Gentoo fails since clang-16, due to clang-16 defaulting to c99. The problem is at `alsa-lib-1.2.8/test/oldapi.c`, in the typedef declaration, which leads to the following error: ``` alsa-lib-1.2.8/test/oldapi.c:40:6: error: incompatible function pointer types assigning to 'myfcn *' (aka 'void (*)(void *)') from 'int (*)(const snd_pcm_hw_params_t *)' (aka 'int (*)(const struct _snd_pcm_hw_params *)') [-Werror,-Wincompatible-func fcn = &snd_pcm_hw_params_get_access; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` [This is the Gentoo bug with all the information](https://bugs.gentoo.org/885551) [I have created a patch based on the compiler's suggestion](https://885551.bugs.gentoo.org/attachment.cgi?id=861055), but I'm not sure if it's the right way to solve this. Issue URL : https://github.com/alsa-project/alsa-lib/issues/323 Repository URL: https://github.com/alsa-project/alsa-lib