From patchwork Wed Mar 27 16:43:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milton Vandersloot X-Patchwork-Id: 10874495 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5B3A6922 for ; Thu, 28 Mar 2019 07:03:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 445FC28AE0 for ; Thu, 28 Mar 2019 07:03:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 38FC828BDF; Thu, 28 Mar 2019 07:03:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C98FC28AE0 for ; Thu, 28 Mar 2019 07:03:48 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 1AF7D85D; Thu, 28 Mar 2019 08:02:57 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1AF7D85D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1553756627; bh=hYY4bx4adnVukpmduJB4fQ8525MakzcdkzrFeLhi+i8=; h=Date:To:From:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Reply-To:From; b=OTAIhwAb0cl/Ty37mc2wnRyYSChx9obDe1QKm814JLZzjn6TXQp0P8EqPJpG+bRxx CrryN3NUimlXwwolHUnQVPzORue1xg9eUGJ1yVzpOyZCiyYkATYOJL8EY+q6WnJlK6 nQo1gTdgts3fprwod3xm9D9OG/G5dx6OwOum/AQs= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 9795FF8963C; Thu, 28 Mar 2019 08:02:56 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id F0AABF80CAB; Wed, 27 Mar 2019 17:43:47 +0100 (CET) Received: from mail-40135.protonmail.ch (mail-40135.protonmail.ch [185.70.40.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 718E7F8071D for ; Wed, 27 Mar 2019 17:43:44 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 718E7F8071D Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="KMJuMRGm" Date: Wed, 27 Mar 2019 16:43:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1553705024; bh=FVOa3hyl963pvefLsfmqh6+O5KpgCBWw+3CcNlap/7s=; h=Date:To:From:Reply-To:Subject:Feedback-ID:From; b=KMJuMRGmDVnN1MuaAgtx7s09tFLlhIXo/XaSOm+N39ypdcOE8AiLGGq/HYTz3zPZc iiy4DYZEYtFBvs94Cr2IZifEEgzijwEaXtA00JyEuRvpwMylNr4QrtKsfJ+k3Wz97H mIEtsPy9rBq1RKzOvpAymkX6HB6rBMRhTXb+zfhU= To: "alsa-devel@alsa-project.org" From: Milton Vandersloot Message-ID: Feedback-ID: 9quG35HBhF3vN9zjn7vcmwjbZUnKE8vJS4-C2jMWh6Y4-P571jIZHO-py8iDMejiP8GN36iIbZAMkZK1uKwlfQ==:Ext:ProtonMail MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 28 Mar 2019 08:02:54 +0100 Subject: [alsa-devel] [PATCH] amixer: define _GNU_SOURCE to get exp10 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Milton Vandersloot Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi I get a warning about the implicit declaration of exp10 for amixer (not alsamixer). The same issue was reported at beginning of the year for alsamixer [0,1] and solved by adding -D_GNU_SOURCE to the CFLAGS. (In fact both alsamixer and amixer use the same file alsamixer/volume_mapping.c.) I suggest adding the same CFLAG also to the amixer Makefile.am. Cheers Milton [0] https://patchwork.kernel.org/patch/10765311/ [1] commit 116488e5f2f1b897084bd151381ee254e1cc177d Patch suggestion: From d31f804d171e7548ecf6e96e96edc7a694a51612 Mon Sep 17 00:00:00 2001 From: Milton Vandersloot Date: Wed, 27 Mar 2019 17:36:54 +0100 Subject: [PATCH] amixer: define _GNU_SOURCE to get exp10 Get rid of a warning about implicit declarition of exp10, which is behind _GNU_SOURCE as a non-standard feature. The same problem was fixed for alsamixer in commit 116488e5f2f1b897084bd151381ee254e1cc177d. --- amixer/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/amixer/Makefile.am b/amixer/Makefile.am index 0343c8e..b4526ca 100644 --- a/amixer/Makefile.am +++ b/amixer/Makefile.am @@ -1,3 +1,4 @@ +AM_CFLAGS = -D_GNU_SOURCE AM_CPPFLAGS = -I$(top_srcdir)/include LDADD = -lm # LDFLAGS = -static