From patchwork Sat Dec 21 22:25:12 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: 852746 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp2744482wrq; Sat, 21 Dec 2024 14:25:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXGuLuD4VSBUXXBXcxQ4JE8iF/YyTIN8eF4LfnIeXX7LcuVjqc16jgsYbBR6nJvBJF5k9oLAw==@linaro.org X-Google-Smtp-Source: AGHT+IE9WW+ZdLM9x31W6Ct+mxxWlGEJN13mGkiB8TrVzL2O65FIVhxKiu1Uor83AS1sqx60F0i6 X-Received: by 2002:a05:622a:1a25:b0:463:788e:7912 with SMTP id d75a77b69052e-46a4a9be898mr152409211cf.56.1734819933435; Sat, 21 Dec 2024 14:25:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1734819933; cv=pass; d=google.com; s=arc-20240605; b=Rfjm7IZdM4vt+Nh/hZtZko+okMnQVVSn7qmhNS6z3Arf7hr2qyorxh+Z0cMdhwMg// lucUDiO7yumEPSk7F682DZ8Jk/tqObIq5VwvHHQ6h2xiFLgmbO1avs/zsvCTFH8wPP91 2QtFzVGOhZeER8CblcUU5AQHx1OGNY9DmlENeNwEixXfJV+YeGJeHq1E0lP3sBlpIJ5z mg9GQ99RPykOVouqWL76PwavZ0nVf4mjdZh7UOhLzAhX/P5Q2sGqr9caCMPsYKINL+QB K1eJmPWbM1If5u96BQycfLKJ7menSj3VpGrzjc+qCfCbdJM/F9PWb37r0nye5JDT6RNW wwJQ== 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:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter:arc-filter:dmarc-filter:delivered-to:dkim-filter; bh=UhMTNy4+1QfutFFaCG7KQaGGUcGybhbqwATCTM6Dqu0=; fh=rJtIiWzkCr5V2GvQGQWdJX+wkLY3kEXmUtQZbZqt0f0=; b=Cj0Xio6K1LBFKTH4y9yUO4dBv/p39nsPPNbJKYWYXOwvdeXpuc8M6zGfzGRdK5NFb4 9UIzkpfusls+uvHLnI0ohQUgg37xGVUwpsuBTVTobxOsT7PWdYpTrEZfHJ7P0csLX944 T9WdMY6N0IhyTSxqUfsg9U3rgpx0ZkbA+2NRl5m0eVlhM8PPzdztabFFEdFAmbsffyRV gEz2dMK6Z6/ZHKhdCeu/SbZbR8yuKM5Nn9L/u3GxVXXNafrcpQAuh+LtGkaBQH7ofQYb qrGeQ6EuIahjcQAnKehApURKlWYrz0Aoy956v1VaDATT7OzoHdTnva8+qjM/5SUzCrzE NYMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XPhScZiG; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id d75a77b69052e-46a3ec05814si68411421cf.696.2024.12.21.14.25.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 14:25:33 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XPhScZiG; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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 07F3A3858408 for ; Sat, 21 Dec 2024 22:25:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07F3A3858408 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=XPhScZiG X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id 63ED73858408 for ; Sat, 21 Dec 2024 22:25:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 63ED73858408 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 63ED73858408 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734819918; cv=none; b=pUlhL3E/iZfscTPltOygeAFGb09pgmONeyWFz5ufP39LvDJvo4vlytP6aMx0P8tWu8TWC7bGnWIDFvUpuPeaF3+BdJBGszYDWp17Yk561Ba9Fsfu6sBJN+y/JGH2SfMVQeUvHTPk6DfLpM5rUtW59DqEYMiEgrm+GzCPdT2Cb+k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734819918; c=relaxed/simple; bh=QrEbynxbbOyLkrKqWb904hRHFxaJZn6r6fHMUexVcD8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=h7OyMOLcTCKH1+TKtY9abnu3C2Ec/RsEy7FB04gnsAZUtU8FfxU7JkTRmcvOVVgJhH/9B2WoMBa3dvMviUyaJQRqjMNSGu7AATYdGqvEqB+zMjTPuAA3dq0LhLqGcc9VVEEeyexBm9Lx2W2gXu89fHZ+VwtmH4GCkLy3XSkZ8fk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 63ED73858408 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-21619108a6bso25576395ad.3 for ; Sat, 21 Dec 2024 14:25:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734819917; x=1735424717; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UhMTNy4+1QfutFFaCG7KQaGGUcGybhbqwATCTM6Dqu0=; b=XPhScZiGRi8ousG+iiqK84HOIX/s4fhPIRbR9rBV7Ni9RuSrHr5JMB//eAQ8SNySpT +QSGm/NYK1UYCfaR0CKd+1YvIFDJqTTP3Y41o3c9OtUIF3/Rkc+U2ixsRFV9uAvvS7IK FtSjXU7k42kmzvpz48Ze7rxKiFIa7f+fgcIDZxZbaWtNZZ1uaWwx6uOQJ2jBGYusbW4B r0tFrpAhvIxAxUbnQ2mZ5d4/4hWkwuzoXZ2cm8iOe74faq9qM/gJcuJ9/Bn53n0vKIrw kXGL7+nVO/Nb2cG0s8zeAwmCAJuyc4ckRcxHV1SJyh6zfXWDJCNqEH6UqWcp2rBBb3FX dsBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734819917; x=1735424717; 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=UhMTNy4+1QfutFFaCG7KQaGGUcGybhbqwATCTM6Dqu0=; b=VnDKcgqEtZB0nEne0eS9P5pR2HvRLxPLhuWZ+pTX1XgL377eDb07mp11YXVxTFops6 tvxUFghQ/BTwBh9K8mQBf5wBtZgLqvx0Ah/aRbWDmKZ+tqoGo3LEZnfh17LkRO0aMWy/ 7AMokAKWC2xb0J2FfV8UJBm/MTQ4TOJYx/VD4LMAtdUcZszPOHGIap6Msc4nac/5LG/v ToQ4t6FvnQfEYHOvxOhKOuaXE/hxqquRuV7zrq67j+XmvXkOdKjW3DFsqRa74Vxng/PX MAUQmYhDN3ZeM/MkpYW5tEQNUUvHveXgyIoPrc7PuQUBnFF5EDo+PIHXRx9B3maTr5I1 1iOQ== X-Gm-Message-State: AOJu0YyYSbe3mwPChcO7ho8ikClUOwHxgfRNbwurx4/p5A+m7n23kkzo 3sthDg2tJhGtwmPqvjaJcQPTb4ulcxN+z23s48fWOWwjU4RIfqDA4KNOittpXk1S2g== X-Gm-Gg: ASbGnct8rb7iulnCtuKwjOJ4Niwt8N2IaZ8tF8grVNmV+4gby6QnSYZTxxscwiWdMva 5IyNDx3mgrGAX99Olm12HqImyBaiPosRAUJIOfLpin6Ur1Arl0PmEaF8f1V3HnzJRHts1FfWIRZ 2BTDspfn3/Zv5kOQfB77wvzAmiGGKFqI7I4OL6ZCjAXDCByon8yPLE06M4ejfLik60AH27eXr8w 2RvhcMHmlu9E5iaivxNFpV5fnDu16tiU76y3InBlrI8tVsf2z9i5drtf6oVvEXOMKWCGmg= X-Received: by 2002:a17:903:2acb:b0:215:6b4c:89fa with SMTP id d9443c01a7336-219e6e85aacmr102934815ad.8.1734819917227; Sat, 21 Dec 2024 14:25:17 -0800 (PST) Received: from gnu-tgl-3.localdomain ([120.204.185.181]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dca02b77sm48409415ad.242.2024.12.21.14.25.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 14:25:16 -0800 (PST) Received: from gnu-tgl-3.lan (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id BC6FCC028A; Sun, 22 Dec 2024 06:25:14 +0800 (CST) From: "H.J. Lu" To: libc-alpha@sourceware.org Cc: Adhemerval Zanella Subject: [PATCH] localedata: Fix clang warnings on tests Date: Sun, 22 Dec 2024 06:25:12 +0800 Message-ID: <20241221222512.753549-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.47.1 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'. --- 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;