From patchwork Thu Nov 21 13:19:54 2024 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: 844674 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:8b:b0:382:43a8:7b94 with SMTP id m11csp2257077wrx; Thu, 21 Nov 2024 05:20:34 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVhQlNPTtYodVugmdrhU6eU7yuGrdNtLG+Cszar/LBG8gC9mYC3JfyUsWqLeqLLrzBD9KJioQ==@linaro.org X-Google-Smtp-Source: AGHT+IFRFhcNsEZ/meHXM+PuD/1qbPh85A55NqgrEWJNbHTzah6C9hFtcv8Bj01qvQnQk2wDn2js X-Received: by 2002:ad4:5e86:0:b0:6d3:f54c:e412 with SMTP id 6a1803df08f44-6d4377e6fafmr104583046d6.16.1732195234041; Thu, 21 Nov 2024 05:20:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732195234; cv=none; d=google.com; s=arc-20240605; b=bKF3/SWUMmJQ8/B/kluSUIodp8l89duJOaVKoUhaiiZtyAgC3T0ZzDfnZW7lfMXGVj VndtfnDhrp6Gs5TiNOS1c8+JJ7mDVz77LPcDbpJgFfC1WHJpxoAso6N8ON63IOOgPIAV BjQiV4tf2QxYfCQNn6ysUc2lWZYXqBb4wYHCeoKxEcoRlZtVe4Vzq2xGWitzgjtriMDg 9fkDMcFuLGYUDkUXPR55N/MO1VAtmBNbX3Zj87ENiZFPKqWqlVP4sOZavakqNnWXJ7ks swHm1YkCaIgiuwGXbP7Dc10eX2k4u4L5TjKm9vugEDK0GsXbbMz+nIp0iSShOsUjw3cz Qahw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=pS9ZcEKi8UeVfGQOjmFhhvFdLoLu3gKgufD3uqpB6sY=; fh=d6DUUs3TramKsRPe7MVeCdK75ZvBrqApIlJd9h064fE=; b=kke/nOjhMJS7u//d5hdo0GoLxok6MRnKu1XZRGWbjFJ6K1wEAcsSplgGTyX0RYGMrA StbGmG03W3v/MwkkfB3u1yk0dCKfa0UIU5WtK6Z3h9wt00C+L63zaxwVqCrHT6v7fdLQ mE5LTlo9bCj+z1FAh6bwi4QOMHRtxSHRzfuoqMqe9qcBNSi/NZHnoq5qp7eaaRmcrQ9t VEyCQB32NrqLiZPIRy2Ako7bfS63dU1NfUyGjxxcoQp3TXJ+SstzRAK6ft0IKs8QO11C ckRye2zcyHtS4bVbcf3Fv0xo1UT9Esc9JqSTpLfKroudg5LklR0yIAc+lsKT4aqsb6gi ASBA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C3vaFLNq; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6d4381398b5si46415396d6.399.2024.11.21.05.20.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Nov 2024 05:20:34 -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=C3vaFLNq; 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; dara=neutral header.i=@linaro.org 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) 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-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) 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) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Volker_R=C3=BCmelin?= , Paolo Bonzini , Peter Maydell , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Phil Dennis-Jordan , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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 deprecated: first deprecated in macOS 15.0 - use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) [-Werror,-Wdeprecated-declarations] 662 | if (!CVDisplayLinkCreateWithCGDisplay(display, &displayLink)) { | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVDisplayLink.h:89:20: note: 'CVDisplayLinkCreateWithCGDisplay' has been explicitly marked deprecated here 89 | CV_EXPORT CVReturn CVDisplayLinkCreateWithCGDisplay( | ^ ui/cocoa.m:663:29: error: 'CVDisplayLinkGetNominalOutputVideoRefreshPeriod' is deprecated: first deprecated in macOS 15.0 - use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) [-Werror,-Wdeprecated-declarations] 663 | CVTime period = CVDisplayLinkGetNominalOutputVideoRefreshPeriod(displayLink); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVDisplayLink.h:182:18: note: 'CVDisplayLinkGetNominalOutputVideoRefreshPeriod' 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 deprecated 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/Frameworks/CoreVideo.framework/Headers/CVDisplayLink.h:249:16: note: 'CVDisplayLinkRelease' has been explicitly marked deprecated here 249 | CV_EXPORT void CVDisplayLinkRelease( CV_RELEASES_ARGUMENT CVDisplayLinkRef 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é 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)]; } +#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); } +#pragma GCC diagnostic pop + - (void) updateUIInfo { if (!allow_events) {