From patchwork Wed Jun 26 20:02:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 1123001 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45YvBn668vz9s3l for ; Thu, 27 Jun 2019 06:04:49 +1000 (AEST) Received: from localhost ([::1]:44672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgE9v-0007xV-Ut for incoming@patchwork.ozlabs.org; Wed, 26 Jun 2019 16:04:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35077) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgE8t-0007ra-7H for qemu-devel@nongnu.org; Wed, 26 Jun 2019 16:03:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgE8l-00014N-P9 for qemu-devel@nongnu.org; Wed, 26 Jun 2019 16:03:41 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:47723) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgE8f-000101-Vw; Wed, 26 Jun 2019 16:03:31 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N2E9Y-1iiNzw2I74-013gr2; Wed, 26 Jun 2019 22:02:58 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Wed, 26 Jun 2019 22:02:51 +0200 Message-Id: <20190626200252.30220-4-laurent@vivier.eu> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190626200252.30220-1-laurent@vivier.eu> References: <20190626200252.30220-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:6Eu+HSQFiVFuj5n34n9byGYW1DCaRx0C6Pl2ex5KQhZc9CYgSTe 0diqwb6b7oHg+N/+QACDCwfGV1+stUC/IC+SLrgY8ICBDvo7hAw3qLqqm+ovvis7PpS/CaQ qYv/YFQo9SIhdYa1wtYUyU6HW+eSZXQENYYtQlCIvtVBdIC7HN98gu7ZqMoR718xzohyBn+ xcY/rbbv+lLxMdlXNfkWg== X-UI-Out-Filterresults: notjunk:1; V03:K0:hloth9wYqoM=:pPPx9cKo2Yenaqt0777Vpq UWJj3lSlH0jaJJf7fDFuHtAYAWe6dPH1iA8A5k2iZhvPJcI1NOVrcEg3HpbSuGncikAoZ8pkg 5cD4F1sGOvVCW4FkbR1Ujlk1lUNIs17VEbFB3tWoTNyC16E/KIBkySJTVUk50Gxs5WLnHJeew lOrvtV0kXZf5w08iKWBQeRPrtpDY7QpceFlOBX/TQvx0CCbsbK1U6de1YqSVH6HMhae/cjcSh XOwfze/juSUQBRzrXcLndtxlJ5apAuW2OwDmdDxPb696YXStEOWKG2d73/kQ2gayKuspbkKMt pbKFOdZvbfrBNvkxUzkTqdom88z0DkW8jBRIqy511hNt+C84WVl8lKQ6Yn/d0LWZqAw8e3lPn 8dhulLdem/VSFAQSUQEWbZkuuG7tLo8VIxxGg146CpzQWev/vBa9apFKbLsAPzO6G0Lmd8GHB 1TapaTsCM83R+aRc1ytKmY10Va8eE74hNoC1MxMhzp4Su8rlD3jRJQbNODmgpME26LP0OPvuH dsiHZTt9laimVKjnvUSTUbw1bZKuJB6XMJkI1U9ZIkG4aGoyR05Euiht/XeyxOADUba2jajvL FunGXnksfpOKd9yvvhhJRNWDBphSSiMqrxFOl+jHF+wdEDlWB3lu1UNbjTM54gahQ6xtgzwWl liM4WrvkJfJjhmu2qT1NEYw3g9ikltOk7XvrbMDtAuPfcDNRS9qtTpCcHzJ/p6b/fLtQLFrNl J8ZiC6fglB1RxaTAVAzXeoqKzxqpB2bUPOha0HDui+gnWalmPGfB82DTcmY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.72.192.73 Subject: [Qemu-devel] [PULL 3/4] configure: use valid args testing sem_timedwait X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Michael Tokarev , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Daniel P. Berrangé The sem_timedwait function has been annotated as requiring non-null args in latest header files from GCC snapshot representing the future 2.30 release. This causes configure to fail when -Werror is used: config-temp/qemu-conf.c: In function ‘main’: config-temp/qemu-conf.c:2:25: error: null argument where non-null required (argument 1) [-Werror=nonnull] 2 | int main(void) { return sem_timedwait(0, 0); } | ^~~~~~~~~~~~~ config-temp/qemu-conf.c:2:25: error: null argument where non-null required (argument 2) [-Werror=nonnull] Signed-off-by: Daniel P. Berrangé Reviewed-by: Laurent Vivier Message-Id: <20190617114114.24897-1-berrange@redhat.com> Signed-off-by: Laurent Vivier --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index cf3d9d30bfce..f94633101094 100755 --- a/configure +++ b/configure @@ -5144,7 +5144,7 @@ fi sem_timedwait=no cat > $TMPC << EOF #include -int main(void) { return sem_timedwait(0, 0); } +int main(void) { sem_t s; struct timespec t = {0}; return sem_timedwait(&s, &t); } EOF if compile_prog "" "" ; then sem_timedwait=yes