From patchwork Thu Jan 19 12:05:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 644064 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp170540pvb; Thu, 19 Jan 2023 04:06:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXtQGKrfGtDuTw4LXhuNlWblo1607ca/1X4YHlYkZTNcZlep/3aWGDMbSx+gWnnvu1P45ZgI X-Received: by 2002:a0d:c206:0:b0:3c2:6bfa:540c with SMTP id e6-20020a0dc206000000b003c26bfa540cmr8033186ywd.49.1674129970357; Thu, 19 Jan 2023 04:06:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674129970; cv=none; d=google.com; s=arc-20160816; b=MQIlg5oS477WPwj/Ik5hQrh8KVI7Iu7Fu/LaxNxTjAlBOIq/ECX2gTJ9GnKt1L/wrB xbXmSfh170eCPbeCUs1btg4n3SbO19u36mh+eKJNgkO6ojUdVLgNHfVEDM5v6OzNKuL8 3UUahQFOgA6Q/HJkzUKGY+sy5wtuQASoxbju5SsKsIYr5UZY4Jh/7KaFQMGY2lO+vs2R c2se189b8zkgbZx8MBHaJsaBQNxPrGFBwGxtIShj4NfQfI0bTknDDD+2LiAZ8G0bYbWl gnBEtJg5z7+Ghgl4L59AH+8AqygLOFz0L4/7aLPA06I/4qfLOpS7HHkHJ4xI0yO8hjl0 uwhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QppPQJH4LZQg27COJ1eHChl/e8bOzY/wwCMPjzZoPKc=; b=JrSOzfDPA/5omRmKHqC5fMfhGtxP4VnZgFRagkI9jaLTZG4nIZADdGwTagRM51aiNM ZShpappQ0mL6UrKu4VivrmGmvp5HdtQCi3+1NGB56irmiJhgUZIJ/oP+mSLK+osNdicn Ya742QGledhwW2sc22RRDcrPNqRc5FyvxYIzz4epqrRS9KlwfZNbwp8dCHS4u9QXGxYQ 1rMiPgbtXSQpUvq7luTGTnqMEmhyx9ELG3R1liRKhzfnHva1RLdlp7T4/72LdYFYPJdu 1JD21Zr67ImR5B9DefmxpG7ZZZLXSRCR4YNVY/UTUNtKCBfr9wi+3iVxml1IFs4T5EfU vR+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S69AkX30; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ou24-20020a05620a621800b00705ba979991si18189525qkn.284.2023.01.19.04.06.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Jan 2023 04:06:10 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S69AkX30; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) 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-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) 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) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Fabiano Rosas , Paolo Bonzini , Akihiko Odaki , Laurent Vivier , =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= , Thomas Huth , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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_error' [-Wunused-function] static inline void on_vnc_error(VncConnection* self, ^ tests/qtest/vnc-display-test.c:28:20: warning: unused function 'on_vnc_auth_failure' [-Wunused-function] static inline void on_vnc_auth_failure(VncConnection *self, ^ 2 warnings generated. Signed-off-by: Philippe Mathieu-Daudé 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; +#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); } +#endif + static bool test_setup(Test *test) {