From patchwork Sun Dec 22 00:04:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 852893 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp2771172wrq; Sat, 21 Dec 2024 16:20:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVhi2XL09kzxno7uxhmABZij+ITBdb0oqV4GCMg1n9BRjlZnBYY/S6yiHaiwa89NwQVpJdnQw==@linaro.org X-Google-Smtp-Source: AGHT+IG8lcwgjVFzcchz4vDBfDnQTCAjLE/zplW2UIj/YQB/D9qVAY0/2oBDOvkbzpjRZ2QZcmJU X-Received: by 2002:ac8:7f94:0:b0:467:5367:7d09 with SMTP id d75a77b69052e-46a4a8e15aamr130980941cf.16.1734826835418; Sat, 21 Dec 2024 16:20:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1734826835; cv=pass; d=google.com; s=arc-20240605; b=kyz4GAtiRHbSDTPTA0l9UI+CbEcGNMrNKc9QzERm8RgNMkS0pd+3XptruijxVVBs0j Nd/frKyW3Z1h3W7FRi4RVMO30KLkiEAszGnkWuwMZORlJRdLZ95CXNBWGQzPBIsysZ4w x+QwXSLie1FpxSV7z/Vyj/OPyle1L4ObNh21GVbMEW7h1cwsQjHX/Gp7LrFdTa0Z8wGV IHmW6d5uBGnxRPxgLq8pk50E+jZUbeBV7WlFconz/7x4AKNv2HXt2+zCTMkjG1Ds0kZ2 WPEwMAtfDkRZ6RJ0f22Exb2lJre5uK8TJHFJDG2hqyHZNxhWG4rppn4G0NKC3DrePcYO CsEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=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:dkim-filter:arc-filter:dmarc-filter :delivered-to:dkim-filter; bh=UhMTNy4+1QfutFFaCG7KQaGGUcGybhbqwATCTM6Dqu0=; fh=uKlFkH9AUukvL1xmvBA9M7Oe4ntiJIR8HCR4+3TPd4w=; b=M0DYi6Rwgw50xxps5vbOosF+kK/fSyRu8JrX0hOiCvYW5YFlea8GmBmjCrHHpnWOXp 4amiQYvGTt6En13bNJ8e2zDBsJzTnrSmKDQ7eiT/smsrYUs94H5H7qb79Eq3iIDU3Pue ze995rZCNfxwQYE0UNCcRT5zEI6kmIolvF5g7PfmxfX/cCK+95YFJIr6h4Ql1vXY1QKL ApCsBDOKkqiB5pvN03SM6raBZZe98uwVfWQVMvgnvW2O/USQOCPkLPUtUo0WJJkoN3dU owp1++ecfCmhoD02tmSPtaRd2pjj1Tz0kRZKox+9Y8WDnGI+/qW/pBGXxIx3dKUKnMHJ sYNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PGzdlSl0; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d75a77b69052e-46a3ebd5d40si70498441cf.515.2024.12.21.16.20.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 16:20:35 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PGzdlSl0; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E16003858415 for ; Sun, 22 Dec 2024 00:20:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E16003858415 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=PGzdlSl0 X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by sourceware.org (Postfix) with ESMTPS id 8E5233857C68 for ; Sun, 22 Dec 2024 00:05:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8E5233857C68 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8E5233857C68 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734825930; cv=none; b=JZCFjbBTdWnSJJI9AbK8t9+3elEx+qjTeNLcYklAxlswc+w0zFnQKBDk7+NKSirRZKqfRgQ9NMRD7tJRq+tliToVVlmZ5UJuRZixqQKj8foNzJgi6NM+U+XsdLR0qqgL56GRjHRRJtmwF1H5wuwy4F4No2aGQ0VENAeXTVogZAA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734825930; c=relaxed/simple; bh=QrEbynxbbOyLkrKqWb904hRHFxaJZn6r6fHMUexVcD8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=rFKInW3v78UxNRdtSf8G07nAaP1NYfDoj6QZIXIHDLWeyfGv9oAxbJKmJrYN2P5sm+O0Ge9GH086eLVxTWK7KXzz/R6VOJl3FKUzdAY6rfbC33POuAJIBYe7VlcBYfoGyat6J8nNtBnfrzWXJNTwkaP3Kg4I96jb3V0ocGmti8M= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E5233857C68 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-725f4623df7so2992299b3a.2 for ; Sat, 21 Dec 2024 16:05:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734825923; x=1735430723; darn=sourceware.org; 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=UhMTNy4+1QfutFFaCG7KQaGGUcGybhbqwATCTM6Dqu0=; b=PGzdlSl0R5UHPu1GuXzJcsB7oegNtfyKMBDAifrXYUzyERPpV/PlNvHzDym5AXBggH erF2VsM7btaMfgKN8ZoahoM6/3GV+BWLLxhBVXTBZZ6QpB2ScgvcLJoelZ1ZRJ5cmlsM lwtFTHsHYQaQ5solvZkOzzV3R/550mrJ1D2FfrzrJ65hHUKqkEEMnyghzCi7QxA2z+wj r9G363NcbrqUUjA73C1aFS5URGdpmAo/aeY3Q7/0YuDhoWSfOsNmsC8SqY0zbqjQRbQK QuRFuI5G1ylSe5sgiWEZJSR6eV+CEgVZbcqEl7TvcoIr2HQf1cRqxpH2F7a4pMhwlhMq 3ejQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734825923; x=1735430723; 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=UhMTNy4+1QfutFFaCG7KQaGGUcGybhbqwATCTM6Dqu0=; b=AISpSlidIytIT8xLc661gdY7/sA5M/aBuApitMloGBrd9UT9Mkq8ph8veX66Cx/zgL qNh4UpIXKlPTLSUb6ON4xeFqJe/jzWOAlN/m3Q0UnOWYbt4R/jJorlNeLERzovuYhcDe qf4PXfm6cuyaWexymr2TuzfYPL62SkBqGgz5HqUw9vzjbRHz1Grn3pjj/ikOTrlkKwki xKQmJiR1G/Xu6Kjkt5GK/UvkjFpschpS1s0i66478h0ypwr+/ztEY00aaRVlRUtVUXL5 w7hkbag1IhYO6d7mt8jGhvHNn7xj1Y7LEg8dzjs6Mcv4brC2FpIgI+dGJNXH1YmoFzLL OKwQ== X-Gm-Message-State: AOJu0YyW6kDvUgYVwlEviqWHcNw1xNm9qtOndOLbHfakdf1HHm/WMVhH rEGt2RneK4+z97wkaxcTwzDgstKUvP0s/VyC1bEHx5maW+aWH3JPJYjZIoZY3c7MLg== X-Gm-Gg: ASbGncuax99P/W2xx/Plgr4jeYlCH/rsO6WeL0aW2gR/yUMqF7mg/mw2CDGERyu5pUh D+cKP2ESMBoVP+IKcpeA1aCOiUwsu0brAFRH8SwMDqrwCE1sNCcP7f8hmRz3G9I4qptRGeR5/Sk 6NBGZdeMs7JtbBXZL/nvS/sDhy9P6PsjWDM4jJ/QyXAGSdg4a0YC2s/jkpaDDit7nxOXflae4JU KM30Ba807D4pvwWGqxxoTlySp/XVtFbigwaJ1AUb3wkfnzBHQYXo/c3gKMF1CeSAIfMxwc= X-Received: by 2002:a05:6a21:3115:b0:1e1:9fef:e959 with SMTP id adf61e73a8af0-1e5e04a4443mr12196922637.27.1734825923165; Sat, 21 Dec 2024 16:05:23 -0800 (PST) Received: from gnu-tgl-3.localdomain ([120.204.185.181]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad836bd9sm5293394b3a.78.2024.12.21.16.05.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 16:05:22 -0800 (PST) Received: from gnu-tgl-3.lan (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id 38DC0C0AA2; Sun, 22 Dec 2024 08:05:15 +0800 (CST) From: "H.J. Lu" To: libc-alpha@sourceware.org Cc: sam@gentoo.org, Adhemerval Zanella Subject: [PATCH 24/39] localedata: Fix clang warnings on tests Date: Sun, 22 Dec 2024 08:04:47 +0800 Message-ID: <20241222000509.2205895-25-hjl.tools@gmail.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241222000509.2205895-1-hjl.tools@gmail.com> References: <20241222000509.2205895-1-hjl.tools@gmail.com> MIME-Version: 1.0 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org From: Adhemerval Zanella clang does not support 'I' specifier and handles it as a 'length modifier'. Reviewed-by: Sam James --- localedata/tst-trans.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/localedata/tst-trans.c b/localedata/tst-trans.c index 2819bb32cc..3c0db4d5c1 100644 --- a/localedata/tst-trans.c +++ b/localedata/tst-trans.c @@ -22,6 +22,7 @@ #include #include #include +#include static int do_test (void) @@ -59,7 +60,12 @@ do_test (void) errors |= len != 10; printf ("len = %d, wbuf = L\"%ls\"\n", len, wbuf); - snprintf (buf, sizeof buf, "%Id", 0x499602D2); + /* clang does not support 'I' specifier and handles it as a 'length + * modifier'. */ + DIAG_PUSH_NEEDS_COMMENT_CLANG; + DIAG_IGNORE_NEEDS_COMMENT_CLANG (16, "-Wformat"); + snprintf (buf, sizeof buf, "%Id", 0x499602D2U); + DIAG_POP_NEEDS_COMMENT_CLANG; errors |= strcmp (buf, "bcdefghija") != 0; len = strlen (buf); errors |= len != 10;