From patchwork Tue Jun 13 09:38:07 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: 691977 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d91:0:0:0:0:0 with SMTP id b17csp367330wru; Tue, 13 Jun 2023 04:43:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4UXP9+n7AH/Ld/e/M9DbPprfz0UaUBgRcFPuRmDTQmPh8BeNAdQSTFkM9LcHsFhq0Wj3tG X-Received: by 2002:a05:622a:1754:b0:3f8:6bf6:745e with SMTP id l20-20020a05622a175400b003f86bf6745emr15135143qtk.62.1686656588894; Tue, 13 Jun 2023 04:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686656588; cv=none; d=google.com; s=arc-20160816; b=uaAkoClz7Q7A6cccTJ/DFmR0q9fJCBNLR2q6AyYRWEzGojNGBaJT8Cevwg0JR8oOTl /TsBUuDKbauUIQX/VdKXEVqDL8gTbv8DzN6hpOOhwpkBwfIFKyi4ASWrQPY78vTzrFcX YMOdxVcgSoWSyrfyN38T0TZZqWxfXIqOPVtmlPp5OtUEgPEW8y0JJy33QQlCGJCxnypX IzTMYHfct97ggFO6GKXb+pIcuAEdyj4FnwaxrgVbbVScoOPhc62N9c/05wjlLFUlxX6V esFMahtW7TOgwdgpGYYnfMd1akrRz0/7Scop0FxBVNmcr202Vsdx1Y9P7gkzanvy8wId qmMw== 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=coCYRAX/D0a1lARgSgpQz1zwILEZC/GYBuzI7kzZU2k=; b=uFWH/E8dV6DLQzu5FAoeZ1CpJvaDRn/s1Kt0XGABG9/8tJoHEORD84Ek8+qKMYFA6I rUH7tJVBEFgeL28AtVo/TrxgxbT4YzNPlf9gaD15P4wRN/4/KPtdDr+agtdEp/9EAmgw KvVtQle/Ds2GeU2o7N1FokafumD9dcC/ogQzq4nG3V4DiP08s7CM8n+ImzyjQr1kdZce ZalR+ogtKIpGNGlTOhmr59v7TRJAWTR58HFAVcK6nOBn2elpfgsYsvafQ2MXKFV88SAU MQtbmtOmE5H4JxPKVSbEszkSeuz8glLP75JnKMDi9uSz8kqPyGLX0P1j/AMtb6ZSkTQR w2BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fvYNJGEl; 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 c21-20020ac85a95000000b003f38d40cdc3si7352959qtc.561.2023.06.13.04.43.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Jun 2023 04:43:08 -0700 (PDT) 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=fvYNJGEl; 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 1q90UC-00059V-0b; Tue, 13 Jun 2023 05:38:48 -0400 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 1q90UA-00057F-MM for qemu-devel@nongnu.org; Tue, 13 Jun 2023 05:38:46 -0400 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q90U0-0005VC-Nj for qemu-devel@nongnu.org; Tue, 13 Jun 2023 05:38:46 -0400 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-97454836448so755280966b.2 for ; Tue, 13 Jun 2023 02:38:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686649113; x=1689241113; 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=coCYRAX/D0a1lARgSgpQz1zwILEZC/GYBuzI7kzZU2k=; b=fvYNJGElWOZz1CVYoJHpvlpNEdZJHYJgVoa3xXhSVBqQoAE6+fe57f1ahMXjFN/Cjl zSmTpPCklpHaSZtxD3geMnY7qUOgZzixJWsp98MDJYA2sErZg78PuwjPxTdyYX+EiiwD t5yokU+RWa0v7UVqzdCsgUDV8VwuNRQsEqHbv1JlUF+CblMnSAdFunig8UYkxSsRG0hN ShdE+2+jHegDisA8I8hPgcoK9ucbVoBShcnoIiWKDpJMMtGE358fnv/RmCP3K6hQGzH7 eFT/JpvF8lY9ZXMQMKXsYYJj9RnhU578SD8ujcYd/+DD4zDay6oBgqPp4Jw9DABlOkoJ 7EMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686649113; x=1689241113; 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=coCYRAX/D0a1lARgSgpQz1zwILEZC/GYBuzI7kzZU2k=; b=AdbYeR5ZKl1e6joq2+jE/T236X2hOAI8y/eIE1aRinYW6Hz6eFeYJbYNurmG/l34O2 cj0buW7mf6iTmLhjoZERrj61mS0nGUxNR1mQt8uRturf4gJFSTAD9jN28HQKrLDBLNwm 0Xdmf7ObFZHv1/R8d9zPZvyGukl9sLm0/L4yQ0Z/J2wkgoLQ4zDI3IbISGG9OxgwnM6k JqEuzb5rx6oWB+DNPuxeOHKUIELoGz/07niDThWHJHgutpggS7pN6bfkdIjPSKxwb8kJ f+TTCPRV59i0zMlh7Mo96fzS8WN9h82F+lOjYjlFMkhknahvPvhDgZE5okTaV/MzO+6u lnvg== X-Gm-Message-State: AC+VfDwITanNPc2z9GWe1q6Y52Yt/ng2oL25uvDPktBtIO18wsmcBphg WZ8RwfHen0i+4yjKpFIRBjjxC8nDeXSp/ABZpAebUg== X-Received: by 2002:a17:907:6daa:b0:973:cc48:f19c with SMTP id sb42-20020a1709076daa00b00973cc48f19cmr11331108ejc.56.1686649113701; Tue, 13 Jun 2023 02:38:33 -0700 (PDT) Received: from localhost.localdomain ([185.140.244.249]) by smtp.gmail.com with ESMTPSA id g12-20020a1709064e4c00b00965e1be3002sm4801468ejw.166.2023.06.13.02.38.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 13 Jun 2023 02:38:33 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Akihiko Odaki Subject: [PULL 02/17] cocoa: Fix warnings about invalid prototype declarations Date: Tue, 13 Jun 2023 11:38:07 +0200 Message-Id: <20230613093822.63750-3-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230613093822.63750-1-philmd@linaro.org> References: <20230613093822.63750-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=philmd@linaro.org; helo=mail-ej1-x62e.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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 Fix the following Cocoa trivial warnings: C compiler for the host machine: cc (clang 14.0.0 "Apple clang version 14.0.0 (clang-1400.0.29.202)") Objective-C compiler for the host machine: clang (clang 14.0.0) [100/334] Compiling Objective-C object libcommon.fa.p/net_vmnet-bridged.m.o net/vmnet-bridged.m:40:31: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static char* get_valid_ifnames() ^ void [742/1436] Compiling Objective-C object libcommon.fa.p/ui_cocoa.m.o ui/cocoa.m:1937:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static int cocoa_main() ^ void Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Akihiko Odaki Message-Id: <20230425192820.34063-1-philmd@linaro.org> --- net/vmnet-bridged.m | 2 +- ui/cocoa.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/vmnet-bridged.m b/net/vmnet-bridged.m index 46d2282863..76a28abe79 100644 --- a/net/vmnet-bridged.m +++ b/net/vmnet-bridged.m @@ -37,7 +37,7 @@ static bool validate_ifname(const char *ifname) } -static char* get_valid_ifnames() +static char* get_valid_ifnames(void) { xpc_object_t shared_if_list = vmnet_copy_shared_interface_list(); __block char *if_list = NULL; diff --git a/ui/cocoa.m b/ui/cocoa.m index 168170a8a6..0c2153d17c 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -1934,7 +1934,7 @@ static void cocoa_clipboard_request(QemuClipboardInfo *info, exit(status); } -static int cocoa_main() +static int cocoa_main(void) { QemuThread thread;