From nobody Sat Nov 23 14:39:19 2024 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=1732195234; cv=none; d=zohomail.com; s=zohoarc; b=Dhvwqb+7CW/Irb4aT2QyzEDAposKwzJvN0dwO7SBgzBjnUTcn5MC6DSN0V75moUArXkdD2PQJSkDzMsgd6mlD2MKCD5sRrVY9/6J47tOS43tnXPCe+B981MLOYBFeaYbEn15V+9LcWXDHTvHON7rH2tbvJDNSZk5/14A0pLNL4M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1732195234; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=pS9ZcEKi8UeVfGQOjmFhhvFdLoLu3gKgufD3uqpB6sY=; b=bAkT5iUjbf0mLST9OYDSwRtc7hE8VIdDL+6ihetjcK58CWSVMrTI5tpja4BdZCh4aIg789dz64Z1UjbOIPieWjVx70f99/3mt7TfIxENaeblKgZUeOLFuSJGniTGzplM+vcLszG8L9ybMH4afAyrkoX8Hmx4UlB8fCXt7p6VMHk= 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 1732195234494834.8305274004117; Thu, 21 Nov 2024 05:20:34 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tE76S-00054E-9x; Thu, 21 Nov 2024 08:20:12 -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 1tE76K-00050k-5f for qemu-devel@nongnu.org; Thu, 21 Nov 2024 08:20:05 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tE76I-0005yk-9V for qemu-devel@nongnu.org; Thu, 21 Nov 2024 08:20:03 -0500 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-382325b0508so655145f8f.3 for ; Thu, 21 Nov 2024 05:19:58 -0800 (PST) Received: from localhost.localdomain ([176.187.204.90]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38254905194sm5192750f8f.5.2024.11.21.05.19.55 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 21 Nov 2024 05:19:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732195197; x=1732799997; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pS9ZcEKi8UeVfGQOjmFhhvFdLoLu3gKgufD3uqpB6sY=; b=C3vaFLNqijD3c+muGhqmG/3ihx6lvYVW2tNey+Mi6FnJr1csmePUCR+Hg+DJBjuvVK jP891U/feLf5MWjbad3f+dIHegZms4bj83azC222XvezU33C8TtW7v+OJWrCrP299T2e A2eI1mzyGKBfCop4dqMIzOX1NFPfHGC/VA7Cy6AcsdVrxqiYMDS2JIOC6tT0wr9O+NYc Q07d68w5KC4KhoxE/2EXgYd1f8a/JpbgkbjhQQ4t/pM+tXwKa2FWNzNAioYJ7HxuowIe 9Aeg1s8eK+cnzzwl+rZspwTcVjhGO/jHJDeSUAAFIPurlaByn9ewGdIRcHounbODBaCb aB7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732195197; x=1732799997; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pS9ZcEKi8UeVfGQOjmFhhvFdLoLu3gKgufD3uqpB6sY=; b=dswfOjGfcv6GiYVRMbPiRm1SoopVcARTsW+jp2IFNyxlcL8m/qXYi2BTwQvVJjcV72 0D4+Egn2bq60CeVXkLBHcVQFI7WMPTniiY16AANKJQLy71muaJebX+5IRCDORjH53i8O Kvo+JBO67w4kRujROxPqWYj44lRpkxaJFr1tGo6J26i1AHPIxYfQeJ056GnIos3oHxxg 3tHOVH8CCN9Om1Ix7JCNGQquCwWPZTIgvwllwsGJLEnkQTEw176ymPhvZLwqTENNck4z jH6VCJFsxevrktYxezywn1gtxwKTHB5JECkksCTCsMef+f+UbTOWYddbSHM/nLAjCSA+ Hxrg== X-Gm-Message-State: AOJu0YxguzGYEL6TdjQtdcXVDtg+ZpHpu+7EJEyB12UCvhvta7htm+i/ rw7PSAe5qGtjyDarcN48JeLiUkjO+XBfxvtHkUVOADMEOuEO6vQbgE9j4K/kab4CncnISEuqNFg L X-Google-Smtp-Source: AGHT+IESdmb9pXFJrCA77H3syuXsd3hMKpGtGXSwa+Q8giy5eFFONyKmB1caxlhHM8zS/zllQcV9Jw== X-Received: by 2002:a5d:5887:0:b0:382:4fd6:405e with SMTP id ffacd0b85a97d-38254afa8ecmr4746611f8f.29.1732195196716; Thu, 21 Nov 2024 05:19:56 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Volker=20R=C3=BCmelin?= , Paolo Bonzini , Peter Maydell , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Phil Dennis-Jordan , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Akihiko Odaki Subject: [PATCH-for-9.2] ui/cocoa: Temporarily ignore annoying deprecated declaration warnings Date: Thu, 21 Nov 2024 14:19:54 +0100 Message-ID: <20241121131954.98949-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 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::431; envelope-from=philmd@linaro.org; helo=mail-wr1-x431.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: 1732195236362116600 These warnings are breaking some build configurations since 2 months now (https://gitlab.com/qemu-project/qemu/-/issues/2575): ui/cocoa.m:662:14: error: 'CVDisplayLinkCreateWithCGDisplay' is deprecate= d: first deprecated in macOS 15.0 - use NSView.displayLink(target:selector:= ), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:s= elector:) [-Werror,-Wdeprecated-declarations] 662 | if (!CVDisplayLinkCreateWithCGDisplay(display, &displayLi= nk)) { | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Framew= orks/CoreVideo.framework/Headers/CVDisplayLink.h:89:20: note: 'CVDisplayLin= kCreateWithCGDisplay' has been explicitly marked deprecated here 89 | CV_EXPORT CVReturn CVDisplayLinkCreateWithCGDisplay( | ^ ui/cocoa.m:663:29: error: 'CVDisplayLinkGetNominalOutputVideoRefreshPerio= d' is deprecated: first deprecated in macOS 15.0 - use NSView.displayLink(t= arget:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displ= ayLink(target:selector:) [-Werror,-Wdeprecated-declarations] 663 | CVTime period =3D CVDisplayLinkGetNominalOutputVideoR= efreshPeriod(displayLink); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Framew= orks/CoreVideo.framework/Headers/CVDisplayLink.h:182:18: note: 'CVDisplayLi= nkGetNominalOutputVideoRefreshPeriod' has been explicitly marked deprecated= here 182 | CV_EXPORT CVTime CVDisplayLinkGetNominalOutputVideoRefreshPeriod(= CVDisplayLinkRef CV_NONNULL displayLink ); | ^ ui/cocoa.m:664:13: error: 'CVDisplayLinkRelease' is deprecated: first dep= recated in macOS 15.0 - use NSView.displayLink(target:selector:), NSWindow.= displayLink(target:selector:), or NSScreen.displayLink(target:selector:) [= -Werror,-Wdeprecated-declarations] 664 | CVDisplayLinkRelease(displayLink); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Framew= orks/CoreVideo.framework/Headers/CVDisplayLink.h:249:16: note: 'CVDisplayLi= nkRelease' has been explicitly marked deprecated here 249 | CV_EXPORT void CVDisplayLinkRelease( CV_RELEASES_ARGUMENT CVDispl= ayLinkRef CV_NULLABLE displayLink ); | ^ 3 errors generated. For the next release, ignore the warnings using #pragma directives. At least until we figure the correct new API usage. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Phil Dennis-Jordan Tested-by: Phil Dennis-Jordan --- ui/cocoa.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/cocoa.m b/ui/cocoa.m index 4c2dd33532..0422dafde4 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -639,6 +639,9 @@ - (void) updateBounds [self setBoundsSize:NSMakeSize(screen.width, screen.height)]; } =20 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + - (void) updateUIInfoLocked { /* Must be called with the BQL, i.e. via updateUIInfo */ @@ -685,6 +688,8 @@ - (void) updateUIInfoLocked dpy_set_ui_info(dcl.con, &info, TRUE); } =20 +#pragma GCC diagnostic pop + - (void) updateUIInfo { if (!allow_events) { --=20 2.45.2