From nobody Fri Dec 19 21:48:31 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1670586280; cv=none; d=zohomail.com; s=zohoarc; b=AKeJb/qrIzaZKs6xiNgELtxp11W67miV9GNU89L9wUzGdCwgQ8pQrSzWwhs/1mFYmFdMgP2m0zcdNq57+LuNgqiONAu5zC0hzMORyAQnupV52dyLRHkPIQrzF5E7wv1gpBU2did175zMnCFoELaGlOyAMYXr8ad5jDHj8iwFCwU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1670586280; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=lVEYVLy4bG6SIZTRvPZzmvu8H95iJMHf5269FMOz9mg=; b=lB4vCBKMcOKy9puIoe/Me8y9RPx56TXPnKLAea6QYJZ+c6ZbQ7Jg6j8+zLS1Sk17RDUe9VDs5XI1u8SrP2m7bFYYBnR0mrVdp4w2m+PLQ97rktQHDZLrar5dZBlko7lL2GOQ8WShOpuU8uTaN5fFS2E/bBmScjdEYvgULnrFMWY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1670586280179279.976328032731; Fri, 9 Dec 2022 03:44:40 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3bWM-0005F7-6x; Fri, 09 Dec 2022 06:26:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3bUt-0003yi-H5 for qemu-devel@nongnu.org; Fri, 09 Dec 2022 06:25:14 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3bUr-00010V-SL for qemu-devel@nongnu.org; Fri, 09 Dec 2022 06:24:55 -0500 Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-100-B_gPSA08OfO4XbprSlQLUw-1; Fri, 09 Dec 2022 06:24:51 -0500 Received: by mail-ed1-f70.google.com with SMTP id i2-20020a05640242c200b0046c66305ebaso1196658edc.15 for ; Fri, 09 Dec 2022 03:24:51 -0800 (PST) Received: from avogadro.local ([2001:b07:6468:f312:1c09:f536:3de6:228c]) by smtp.gmail.com with ESMTPSA id i15-20020a50fd0f000000b0046b4e0fae75sm515125eds.40.2022.12.09.03.24.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 03:24:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670585093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lVEYVLy4bG6SIZTRvPZzmvu8H95iJMHf5269FMOz9mg=; b=iLZSTcOxdJfHiO8oQNEEVKzgDbg0q76n6KAmDJKOGrafMbSebZLqvOScLjEtEykEhVBdYQ LGAqvzgHqZOi/hQo4aaIj2q9bTiGb2iGEWVpfhcU3H1NPWkdLLMWTP0wEmuKD2a5w3SZ+n CQVUQyP3CnTq/p14Hk2qcAATbJOH5cQ= X-MC-Unique: B_gPSA08OfO4XbprSlQLUw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lVEYVLy4bG6SIZTRvPZzmvu8H95iJMHf5269FMOz9mg=; b=QBqq5yKSvOAVZ+ukiyRi75vI86cFngI4Aup8v4kaslZeQQglTk2qF+zLzlGTHv10HU Iy+vI3S5Ip+hRSOQ+U6JSk7J0E0+toSkugP//KQsHEHe5H/RJaFzyE9jveX31pH4bmFn k46adrKrIPnYgwPBI2cX86NSmi6jf1JaJueDJ1DjrPrc0TZ4Bcqrj8C6C23OMDCUbei5 4rDZ9MIwotcEOXGzPScPlEQNdAOaJ+iJ3E5t/JtXJYGJOs4Nf7o+/iooh1K+YIZPEpH6 KozaV8aifH+mIkNAZu/aWd8GGxJAcbhKn7eYhS/LNNLbZctEWPC/ch3dRnqzRy7fmY+B 6TpA== X-Gm-Message-State: ANoB5pmTmOtA3zpHjiz/Jbpm5/y5d1xAP1Z3NGGGdPvOsKRLIQkGorHS P8W+fkOW+goWpOdin4k3fmFJ7Dvw6QqKXP4wa0dJfBb/zr9EYEblNHNjDJf9l2yFLHK54rRCAoL QWLLWQQMDJ9c0gT+/xHKHVOFuvzrOAery0ewk/mp2Iq1lNxLtcFeOQeRHBsy1Qc8HDEk= X-Received: by 2002:a17:907:a803:b0:78d:f454:3762 with SMTP id vo3-20020a170907a80300b0078df4543762mr5744399ejc.5.1670585090468; Fri, 09 Dec 2022 03:24:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf5+Du2YwT+/NBSnskd2weXegs+MOe7YHiGUM0qBeZg3H4Fq3RTegBlb8s+V83+Q15XzbU++9g== X-Received: by 2002:a17:907:a803:b0:78d:f454:3762 with SMTP id vo3-20020a170907a80300b0078df4543762mr5744385ejc.5.1670585090248; Fri, 09 Dec 2022 03:24:50 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 14/30] configure: test all warnings Date: Fri, 9 Dec 2022 12:23:53 +0100 Message-Id: <20221209112409.184703-15-pbonzini@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221209112409.184703-1-pbonzini@redhat.com> References: <20221209112409.184703-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1670586281587100003 Content-Type: text/plain; charset="utf-8" Some warnings are hardcoded in QEMU_CFLAGS and not tested. There is no particular reason to single out these five, as many more -W flags are present on all the supported compilers. For homogeneity when moving the detection to meson, make them use the same warn_flags infrastructure. Signed-off-by: Paolo Bonzini Reviewed-by: Daniel P. Berrang=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- configure | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 113db838a16f..9c5393a25de7 100755 --- a/configure +++ b/configure @@ -378,8 +378,6 @@ sdl2_config=3D"${SDL2_CONFIG-${cross_prefix}sdl2-config= }" # 2s-complement style results. (Both clang and gcc agree that it # provides these semantics.) QEMU_CFLAGS=3D"-fno-strict-aliasing -fno-common -fwrapv" -QEMU_CFLAGS=3D"-Wundef -Wwrite-strings -Wmissing-prototypes $QEMU_CFLAGS" -QEMU_CFLAGS=3D"-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS" QEMU_CFLAGS=3D"-D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE = $QEMU_CFLAGS" =20 QEMU_LDFLAGS=3D @@ -1161,6 +1159,11 @@ fi # just silently disable some features, so it's too error prone. =20 warn_flags=3D +add_to warn_flags -Wundef +add_to warn_flags -Wwrite-strings +add_to warn_flags -Wmissing-prototypes +add_to warn_flags -Wstrict-prototypes +add_to warn_flags -Wredundant-decls add_to warn_flags -Wold-style-declaration add_to warn_flags -Wold-style-definition add_to warn_flags -Wtype-limits --=20 2.38.1