From nobody Fri Dec 19 19:14:28 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=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1674129970; cv=none; d=zohomail.com; s=zohoarc; b=jlmORSqWg/XgO2t83mlgyXRVLi0hlAfE3Y2Ckyo/kz2cxr9gzLe++UBgu2UOjf55mfriQXBtlqeo9rjSDFjYAx4xEgIdpluqI63L+mDDn3iC2xjwHE2crv/c3DO8r24n3p/Rsgb13KweoOj0CarWPKilN8Rcyi1kj+FAB5Cqs5M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674129970; h=Content-Type:Content-Transfer-Encoding:Cc: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=QppPQJH4LZQg27COJ1eHChl/e8bOzY/wwCMPjzZoPKc=; b=bT5tT/nxXwlbippUrlZncmqoUzi1iR29IcMeVTM01/7UC/1mhRc9MyoP7rXxzvxTkrKONJySky3B9ZKZMFUCzrx9PC2lWkq091kV7JPCQj1QfHhknr0ig7v9d676JwpofLwewtOG8M+rwa9pMKrZd4846nx160LUUTcZow04TYk= 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 1674129970743126.56962830306873; Thu, 19 Jan 2023 04:06:10 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pITfr-0008DM-TQ; Thu, 19 Jan 2023 07:05:43 -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 1pITfY-0008AZ-Ko for qemu-devel@nongnu.org; Thu, 19 Jan 2023 07:05:29 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pITfX-000277-5h for qemu-devel@nongnu.org; Thu, 19 Jan 2023 07:05:24 -0500 Received: by mail-wr1-x42b.google.com with SMTP id z5so1632387wrt.6 for ; Thu, 19 Jan 2023 04:05:22 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id s2-20020adff802000000b00241bd7a7165sm33596139wrp.82.2023.01.19.04.05.20 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 19 Jan 2023 04:05:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QppPQJH4LZQg27COJ1eHChl/e8bOzY/wwCMPjzZoPKc=; b=S69AkX302tUxrYF21IM0+xRv4XMgMT8JZwnUvRMPle79KYY4R7ZJtctqpyDOVEc1St GKOFntovhCZZIViY5qrq4I4C+oU+JvjaX3+eLQZ3+li2hMBrRM0PBiR6cjzLlxPCLPBy o1/aI5/bvj9mGdKRfS7p8zYmbiacgo03EQEqj3xgSx/zu0KoFBWWJOqVA4qXmSvqBvmF hzG1wWquw9aGIv6uL+ub6XUxZ+8Gqh+glRJ+XNhgq4fGg08/P5UBybDhGkKJzFq5znPP A+fD3g6bvw6/DV+PKvw59VHDUaVzkYmZSSISdXRLuBHscRQ/bz5E4lj8KX26gBTpnnu2 ro7w== 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:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QppPQJH4LZQg27COJ1eHChl/e8bOzY/wwCMPjzZoPKc=; b=sPyjCQfv0CBRZM41NM9yhcNtBRbLGGkha9V0Xg710Oc1V9OLgMbxZHYJW5qcBTzDFh TmxmMuu2cBPdI10MPhYMQ9ruzG39Ir8uOpQfmdn2DrZim7wt4JLw4xV9wghZwSUIT0iu YDFZcJP7/FI9vhMl5cwk9dqyRB5u7egiv113EqtSGHe0Me6iNAT5/F4+XBXEetkwGmCB XR6sDPTMInjCvBRI+pAiibEcRnzjRY445qBg1VpKP/Lvvy79y0R2xu/VgrsGtlcdkl4i Pdaq+80LNtwx7K653pCBSroOAMAUxcww+B/u0OeF+T8ppVWJIaBCVjhuD39ygKM1uP0v AIQg== X-Gm-Message-State: AFqh2koOFNkVuuN1PEPJ0FoKITyv+Jd01Yc+GDffiN2Av/2fdYb9BYzl ykqzAaxt54a+fxByMfyCJCYdlaoSzIxqZgFz X-Google-Smtp-Source: AMrXdXvfDgIiwcfqamr/5hO60IbAsjHUhiP/tsWANOsHaIrTRytRa97AKzXy/QC/zYEXX8YdD9E3sQ== X-Received: by 2002:a5d:5259:0:b0:2bb:6c90:26a0 with SMTP id k25-20020a5d5259000000b002bb6c9026a0mr9410471wrc.43.1674129921296; Thu, 19 Jan 2023 04:05:21 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Fabiano Rosas , Paolo Bonzini , Akihiko Odaki , Laurent Vivier , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Thomas Huth , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 1/3] tests/qtest/vnc-display-test: Suppress build warnings on Windows Date: Thu, 19 Jan 2023 13:05:12 +0100 Message-Id: <20230119120514.28778-2-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230119120514.28778-1-philmd@linaro.org> References: <20230119120514.28778-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=2a00:1450:4864:20::42b; envelope-from=philmd@linaro.org; helo=mail-wr1-x42b.google.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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 @linaro.org) X-ZM-MESSAGEID: 1674129972648100003 While this test is skipped on Windows, we still get when building: tests/qtest/vnc-display-test.c:22:20: warning: unused function 'on_vnc_er= ror' [-Wunused-function] static inline void on_vnc_error(VncConnection* self, ^ tests/qtest/vnc-display-test.c:28:20: warning: unused function 'on_vnc_au= th_failure' [-Wunused-function] static inline void on_vnc_auth_failure(VncConnection *self, ^ 2 warnings generated. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- tests/qtest/vnc-display-test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/qtest/vnc-display-test.c b/tests/qtest/vnc-display-test.c index e2a9d682bb..fd63e3a881 100644 --- a/tests/qtest/vnc-display-test.c +++ b/tests/qtest/vnc-display-test.c @@ -19,6 +19,8 @@ typedef struct Test { GMainLoop *loop; } Test; =20 +#if !defined(WIN32) + static void on_vnc_error(VncConnection* self, const char* msg) { @@ -31,6 +33,8 @@ static void on_vnc_auth_failure(VncConnection *self, g_error("vnc-auth-failure: %s", msg); } =20 +#endif + static bool test_setup(Test *test) { --=20 2.38.1