From patchwork Tue Apr 22 17:19:55 2025 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: 883004 Delivered-To: patch@linaro.org Received: by 2002:a5d:474d:0:b0:38f:210b:807b with SMTP id o13csp2530544wrs; Tue, 22 Apr 2025 10:20:44 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX8GPEMkz5bNZPz4vvGfnZQ52mVLPUscohlsK9x9dhSLs7qZRmg24IDN6VD5LfQtP+8yLUiZg==@linaro.org X-Google-Smtp-Source: AGHT+IEhI5jnxl8uEsZXB3NJFL4AqWNtKj977tZEeTS06b14JWqg2f26fKehMT2I+FqdJ7m74h5q X-Received: by 2002:a05:620a:408c:b0:7c0:9f12:2b7e with SMTP id af79cd13be357-7c927f5301amr2086582885a.11.1745342443945; Tue, 22 Apr 2025 10:20:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1745342443; cv=none; d=google.com; s=arc-20240605; b=eGq+3n6j1GGBggsjsL+x7HMeSMZZNnkERQ+dSqtxN3jUIP79YVMf0fIL1t1RE4z8Fb q4cBnVBTpM4cQ8t1VeTHb/h0qCnoc4XsBFNiXgh9TF6ijM6v40wbFiOrXWzsnJ9QTiPg 6rbbZlnhAF5d7C20cjQcqgXeOmcVdLMFTUvkurxRYdBDmmovcrtcieLaWYwQHqV8mCVA jCl4aG9HtrYVBXimmW4VeiV/V440Q+QIZOM6ogbQx2NMfYT8vqSch4L7O+XsMrx/U8WW epkt4bqz2n6/LGeYUX25xk/euqAdEZu4vVxx2zhOhQ3Jw/7UcAng0uhxtkYerFBMVeOz r/DA== 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=xNKLj4D/gE4uh7HIOOJVJs77DuL5s6j/qlx9j1pTj+s=; fh=KxXia9qG+GblxYh9D8diuicEhdwoQWRuOQLJX6zxrIY=; b=PNt6qnoswpR3HHDZFmovvDz+NzgO+EMDIOTLZxjDNA4XzcwxuBphystXif1qtDOADu J4WHwtfyZCciDuIwfWQTvoYqnqoOsrfvehxZJM+lKgOIIKqpGJ6Fqdavs2taGIbHIK1q xFoGbo7m5icaea9+893ZnP5YH5N61M/jpkxyfV4Q08LmatafbQrGJr7qLqq2VgXi957j +D+oR5FsX5majmG/qdT2EDnSKyud/bK26vI3n5Md/R0QIZbVwKsPeNX4prU/KAh493w6 WaNp8vvA3EgqeQ5RgWZQ0METPM2d89aKRa+UlCMCs8ulXwSp5HHRl1TEGJDv4OYtaebi 6MdQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P6R0fzFL; 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 af79cd13be357-7c925b7e730si1133232085a.226.2025.04.22.10.20.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Apr 2025 10:20:43 -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=P6R0fzFL; 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 1u7HHx-00082F-5e; Tue, 22 Apr 2025 13:20:05 -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 1u7HHu-00081P-3U for qemu-devel@nongnu.org; Tue, 22 Apr 2025 13:20:02 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u7HHr-0005cN-Th for qemu-devel@nongnu.org; Tue, 22 Apr 2025 13:20:01 -0400 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-39ee5ac4321so5850793f8f.1 for ; Tue, 22 Apr 2025 10:19:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1745342397; x=1745947197; 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=xNKLj4D/gE4uh7HIOOJVJs77DuL5s6j/qlx9j1pTj+s=; b=P6R0fzFLubvs3q2WF/Q+mbhT4vdrUrzhQYpEOYnR0NgqIcK5xPxwWohKPp6nIWDPz+ x6GdUfsneNXmHTykfcej1oy1wLYoCTRdGCHFFO7xUWubME4dGQk3LGRgAd2Vr/tVyXhK zYNprKWe7rhZWeghxBPs50bE2Ack/pX/kJ5IQ5S7hqpxfYsQqeZ0TrO8cOzSUfNecafG 9AJ96znc63CzM1hUpIzMo2ch4Ek7EVCUr47PO+UKO29HHvJY7oW6Q4cOLVRUhimsbV6n MrbIxUr0vqycjzlfRt8Efpg/X3g7Dv/yLlwec7vwe8o31KDZqtUFZdTi840gsQrofSyV HDIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745342397; x=1745947197; 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=xNKLj4D/gE4uh7HIOOJVJs77DuL5s6j/qlx9j1pTj+s=; b=abVydH1LFnQ2TI6ISdTZ/f7hOFXssmFB9UG2Of0LLF16XGhEBrVh37MIgt/srANbke U1dRt2YUk76RRtK2LgwdvtgpYbUY7iL70eLGC+Rbtudl3oZf3ZvLowiQakR0bjbhIGEG F/nCiYxfVEUOusosKWsE8x/1LkAzSslyvT0oljbIQfcL7uUjE3VNQ81y1ukIojVEFruU iJU7wN+j8GW+QAKZsEbD3er/QtIl9YZDa9dDjCrJyYxq8VpHIncpzM+LXo4lh5/ETqVI n2//RgUN5lnp6oY5akVoj8BgnI9crhxbZW9K+rm8vy37PNIKowjsr21QCU9kC8Jy3cqG xGqg== X-Gm-Message-State: AOJu0YyPaJOXxhFUlLnV3M9FqDsXcldiS4n9/JnYFF875CNmJ0VThCot j5awUOWIuG7qWmQ9r58IgmMQY4PVrVTW4+87cbTvjaJq3Mo35Sr3czKB4Qs9FoqOLcbmDBXbhOL 8 X-Gm-Gg: ASbGnctc6Ok85XnjZ6aF5Mc5Hkk54gt6SGAU1l2dSPSjQsNRrlfpYBnCfMgt1XELfCW IN+3MURD5AvejDqZAU/2wcdpi980g3U3CAWAMwiFFC1KhiUUEDmWM+t0F+zmHhwbIbgybeF0C5p 4PfUbhyfA4R2HLz1gtsGyzgBRLSY4pU5BalIpnjBMteuAsZ7QrJYAt7TGPAeG8z5QkWFYB6xm2v Ig9UKsQZhGU2GWfO2r7GenTVyxNU0bnyk847GzlVC7A/mr0sWZJ2T85r4EHYi6bKhtctHSIAB0L 2okvQWDnKQHzd8Uxr0O3Pvza2Ax8xfiNGTief1oP+jLQmWYlMuHE5CpPzDyLpppoSpcYfslxuC/ dFbG5cDw7AX0zT4E= X-Received: by 2002:a05:6000:2483:b0:391:241d:a13e with SMTP id ffacd0b85a97d-39efbaf6c45mr12230559f8f.48.1745342397379; Tue, 22 Apr 2025 10:19:57 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39efa493207sm15940721f8f.79.2025.04.22.10.19.56 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 22 Apr 2025 10:19:56 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Eric Blake , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Pierrick Bouvier , Akihiko Odaki , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [RFC PATCH] buildsys: Disable 'unguarded-availability-new' warnings Date: Tue, 22 Apr 2025 19:19:55 +0200 Message-ID: <20250422171955.11791-1-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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 When using Visual Studio Code (v1.99.3) and Apple clangd v17.0.0 I get: In file included from ../../qapi/string-output-visitor.c:14: qemu/include/qemu/cutils.h:144:12: error: 'strchrnul' is only available on macOS 15.4 or newer [-Werror,-Wunguarded-availability-new] 144 | return strchrnul(s, c); | ^~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_string.h:198:9: note: 'strchrnul' has been marked as being introduced in macOS 15.4 here, but the deployment target is macOS 15.0.0 198 | strchrnul(const char *__s, int __c); | ^ qemu/include/qemu/cutils.h:144:12: note: enclose 'strchrnul' in a __builtin_available check to silence this warning 144 | return strchrnul(s, c); | ^~~~~~~~~ 1 error generated. Disable this -Wunguarded-availability-new warning as a short term band-aid fix. Signed-off-by: Philippe Mathieu-Daudé --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index 41f68d38069..539368f82b1 100644 --- a/meson.build +++ b/meson.build @@ -735,6 +735,7 @@ warn_flags = [ '-Wstrict-prototypes', '-Wtype-limits', '-Wundef', + '-Wunguarded-availability', '-Wvla', '-Wwrite-strings', @@ -747,6 +748,7 @@ warn_flags = [ '-Wno-string-plus-int', '-Wno-tautological-type-limit-compare', '-Wno-typedef-redefinition', + '-Wno-unguarded-availability-new', ] if host_os != 'darwin'