public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2022-03-16 18:05 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-03-16 18:05 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9074178c9d33517d85b4a7fb0e00f9ac9b9201ac
commit 9074178c9d33517d85b4a7fb0e00f9ac9b9201ac
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 c97c44aaeb..99b63016f0 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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 (13, "-Wformat");
+ snprintf (buf, sizeof buf, "%Id", 0x499602D2U);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
errors |= strcmp (buf, "bcdefghija") != 0;
len = strlen (buf);
errors |= len != 10;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2024-04-17 20:08 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2024-04-17 20:08 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1b58f27cc062352285973103bf2f40e1a484fb4f
commit 1b58f27cc062352285973103bf2f40e1a484fb4f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2024-04-02 15:54 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2024-04-02 15:54 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b8fc94197fb00f410d510200f617674954b838a9
commit b8fc94197fb00f410d510200f617674954b838a9
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2024-02-09 17:33 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2024-02-09 17:33 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f762c246042d5cd6ed5128c141a8fe90e0b1a4fd
commit f762c246042d5cd6ed5128c141a8fe90e0b1a4fd
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2024-02-07 14:08 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2024-02-07 14:08 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ec60dc474e039250be1ee16323442df90b3bd1b8
commit ec60dc474e039250be1ee16323442df90b3bd1b8
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2024-01-29 17:58 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2024-01-29 17:58 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5b103ec3100c32b2ce420ac0c518685a76ea7209
commit 5b103ec3100c32b2ce420ac0c518685a76ea7209
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2023-12-21 18:55 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2023-12-21 18:55 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4fedca0faa667c9c138755c0cdd5b2c9edfa3be9
commit 4fedca0faa667c9c138755c0cdd5b2c9edfa3be9
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 9b8ae646b9..2af4b3ed3b 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2023-09-28 17:53 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2023-09-28 17:53 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=38919f45b375b3467fa36aca824806bde2dcd133
commit 38919f45b375b3467fa36aca824806bde2dcd133
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 9b8ae646b9..2af4b3ed3b 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2023-08-30 12:37 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2023-08-30 12:37 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b4240e5f3a2d8d94ce2c98920cb20489289f35a2
commit b4240e5f3a2d8d94ce2c98920cb20489289f35a2
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 9b8ae646b9..ea9a91f909 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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 (13, "-Wformat");
+ snprintf (buf, sizeof buf, "%Id", 0x499602D2U);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
errors |= strcmp (buf, "bcdefghija") != 0;
len = strlen (buf);
errors |= len != 10;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2023-02-09 19:49 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2023-02-09 19:49 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=26dae7303c7a934ea42ff97cf85a69729d127b27
commit 26dae7303c7a934ea42ff97cf85a69729d127b27
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 9b8ae646b9..ea9a91f909 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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 (13, "-Wformat");
+ snprintf (buf, sizeof buf, "%Id", 0x499602D2U);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
errors |= strcmp (buf, "bcdefghija") != 0;
len = strlen (buf);
errors |= len != 10;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2022-10-28 17:42 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-10-28 17:42 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=66bed010093946fb8c6589cc2c175ff6db8cd8ef
commit 66bed010093946fb8c6589cc2c175ff6db8cd8ef
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 c97c44aaeb..99b63016f0 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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 (13, "-Wformat");
+ snprintf (buf, sizeof buf, "%Id", 0x499602D2U);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
errors |= strcmp (buf, "bcdefghija") != 0;
len = strlen (buf);
errors |= len != 10;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2022-10-04 13:00 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-10-04 13:00 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=95d5b2d1892d671e6bcb1fe283f138d4eb11544e
commit 95d5b2d1892d671e6bcb1fe283f138d4eb11544e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 c97c44aaeb..99b63016f0 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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 (13, "-Wformat");
+ snprintf (buf, sizeof buf, "%Id", 0x499602D2U);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
errors |= strcmp (buf, "bcdefghija") != 0;
len = strlen (buf);
errors |= len != 10;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2022-06-09 21:21 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 21:21 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=12ce4e01fe59c40c727b95574299d80ce694e866
commit 12ce4e01fe59c40c727b95574299d80ce694e866
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 c97c44aaeb..99b63016f0 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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 (13, "-Wformat");
+ snprintf (buf, sizeof buf, "%Id", 0x499602D2U);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
errors |= strcmp (buf, "bcdefghija") != 0;
len = strlen (buf);
errors |= len != 10;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2022-06-09 13:17 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 13:17 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=12ce4e01fe59c40c727b95574299d80ce694e866
commit 12ce4e01fe59c40c727b95574299d80ce694e866
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 c97c44aaeb..99b63016f0 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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 (13, "-Wformat");
+ snprintf (buf, sizeof buf, "%Id", 0x499602D2U);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
errors |= strcmp (buf, "bcdefghija") != 0;
len = strlen (buf);
errors |= len != 10;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2022-06-03 14:07 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-06-03 14:07 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a8742286fbbaa24ffdb80f688392b0a16ef3baf8
commit a8742286fbbaa24ffdb80f688392b0a16ef3baf8
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 c97c44aaeb..99b63016f0 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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 (13, "-Wformat");
+ snprintf (buf, sizeof buf, "%Id", 0x499602D2U);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
errors |= strcmp (buf, "bcdefghija") != 0;
len = strlen (buf);
errors |= len != 10;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2022-05-13 14:21 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-05-13 14:21 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2e0389e3b2147c900cdea5d65ec9fe7b5b01f03e
commit 2e0389e3b2147c900cdea5d65ec9fe7b5b01f03e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 c97c44aaeb..99b63016f0 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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 (13, "-Wformat");
+ snprintf (buf, sizeof buf, "%Id", 0x499602D2U);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
errors |= strcmp (buf, "bcdefghija") != 0;
len = strlen (buf);
errors |= len != 10;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2022-05-12 19:34 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-05-12 19:34 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=265dad63993dfeeabb1ed17de49cc225cf1dc6e0
commit 265dad63993dfeeabb1ed17de49cc225cf1dc6e0
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 c97c44aaeb..99b63016f0 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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 (13, "-Wformat");
+ snprintf (buf, sizeof buf, "%Id", 0x499602D2U);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
errors |= strcmp (buf, "bcdefghija") != 0;
len = strlen (buf);
errors |= len != 10;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2022-05-10 18:25 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-05-10 18:25 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9051963773db29cac83fe070499bed8a412f6680
commit 9051963773db29cac83fe070499bed8a412f6680
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 c97c44aaeb..99b63016f0 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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 (13, "-Wformat");
+ snprintf (buf, sizeof buf, "%Id", 0x499602D2U);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
errors |= strcmp (buf, "bcdefghija") != 0;
len = strlen (buf);
errors |= len != 10;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2022-04-29 14:05 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-04-29 14:05 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=103effe571f7ed18369ec5d9271189994a183d20
commit 103effe571f7ed18369ec5d9271189994a183d20
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 c97c44aaeb..99b63016f0 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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 (13, "-Wformat");
+ snprintf (buf, sizeof buf, "%Id", 0x499602D2U);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
errors |= strcmp (buf, "bcdefghija") != 0;
len = strlen (buf);
errors |= len != 10;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2022-04-04 12:55 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-04-04 12:55 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f7cd03324babbdb300a669577028aaff30cc45ba
commit f7cd03324babbdb300a669577028aaff30cc45ba
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 c97c44aaeb..99b63016f0 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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 (13, "-Wformat");
+ snprintf (buf, sizeof buf, "%Id", 0x499602D2U);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
errors |= strcmp (buf, "bcdefghija") != 0;
len = strlen (buf);
errors |= len != 10;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2022-03-31 19:07 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-03-31 19:07 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=896174ef264107f5e2a0367020412b53b7b0b587
commit 896174ef264107f5e2a0367020412b53b7b0b587
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 c97c44aaeb..99b63016f0 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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 (13, "-Wformat");
+ snprintf (buf, sizeof buf, "%Id", 0x499602D2U);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
errors |= strcmp (buf, "bcdefghija") != 0;
len = strlen (buf);
errors |= len != 10;
^ permalink raw reply [flat|nested] 22+ messages in thread
* [glibc/azanella/clang] localedata: Fix clang warnings on tests
@ 2022-03-29 20:31 Adhemerval Zanella
0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-03-29 20:31 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=049ec73f4cd0a7d573133d94d84c69c1ad733282
commit 049ec73f4cd0a7d573133d94d84c69c1ad733282
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Mar 15 15:29:47 2022 -0300
localedata: Fix clang warnings on tests
clang does not support 'I' specifier and handles it as a 'length
modifier'.
Diff:
---
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 c97c44aaeb..99b63016f0 100644
--- a/localedata/tst-trans.c
+++ b/localedata/tst-trans.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include <libc-diag.h>
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 (13, "-Wformat");
+ snprintf (buf, sizeof buf, "%Id", 0x499602D2U);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
errors |= strcmp (buf, "bcdefghija") != 0;
len = strlen (buf);
errors |= len != 10;
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2024-04-17 20:08 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-16 18:05 [glibc/azanella/clang] localedata: Fix clang warnings on tests Adhemerval Zanella
2022-03-29 20:31 Adhemerval Zanella
2022-03-31 19:07 Adhemerval Zanella
2022-04-04 12:55 Adhemerval Zanella
2022-04-29 14:05 Adhemerval Zanella
2022-05-10 18:25 Adhemerval Zanella
2022-05-12 19:34 Adhemerval Zanella
2022-05-13 14:21 Adhemerval Zanella
2022-06-03 14:07 Adhemerval Zanella
2022-06-09 13:17 Adhemerval Zanella
2022-06-09 21:21 Adhemerval Zanella
2022-10-04 13:00 Adhemerval Zanella
2022-10-28 17:42 Adhemerval Zanella
2023-02-09 19:49 Adhemerval Zanella
2023-08-30 12:37 Adhemerval Zanella
2023-09-28 17:53 Adhemerval Zanella
2023-12-21 18:55 Adhemerval Zanella
2024-01-29 17:58 Adhemerval Zanella
2024-02-07 14:08 Adhemerval Zanella
2024-02-09 17:33 Adhemerval Zanella
2024-04-02 15:54 Adhemerval Zanella
2024-04-17 20:08 Adhemerval Zanella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).