public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] stdio: Fix clang warnings on tests
@ 2024-04-17 20:13 Adhemerval Zanella
  0 siblings, 0 replies; 8+ messages in thread
From: Adhemerval Zanella @ 2024-04-17 20:13 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b3816426d9e35c6d15f901657b5beb1fdc3d51fa

commit b3816426d9e35c6d15f901657b5beb1fdc3d51fa
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Jul 27 15:27:08 2023 -0300

    stdio: Fix clang warnings on tests
    
    clang does not support 'I' specifier and handles it as a 'length
    modifier'.

Diff:
---
 stdio-common/tst-scanf-to_inpunct.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/stdio-common/tst-scanf-to_inpunct.c b/stdio-common/tst-scanf-to_inpunct.c
index 6fc038f476..fab1a232b9 100644
--- a/stdio-common/tst-scanf-to_inpunct.c
+++ b/stdio-common/tst-scanf-to_inpunct.c
@@ -18,6 +18,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <array_length.h>
+#include <libc-diag.h>
 #include <stdio.h>
 #include <support/support.h>
 #include <support/check.h>
@@ -68,7 +69,11 @@ do_test (void)
   for (int i = 0; i < array_length (inputs); i++)
     {
       int n;
+      /* clang does not support 'I' specifier.  */
+      DIAG_PUSH_NEEDS_COMMENT_CLANG;
+      DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wformat");
       sscanf (inputs[i].str, "%Id", &n);
+      DIAG_POP_NEEDS_COMMENT_CLANG;
       TEST_COMPARE (n, inputs[i].n);
     }

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [glibc/azanella/clang] stdio: Fix clang warnings on tests
@ 2024-04-02 15:59 Adhemerval Zanella
  0 siblings, 0 replies; 8+ messages in thread
From: Adhemerval Zanella @ 2024-04-02 15:59 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c449401e8fa1a44003a051dfc9b15f1ca93eccbb

commit c449401e8fa1a44003a051dfc9b15f1ca93eccbb
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Jul 27 15:27:08 2023 -0300

    stdio: Fix clang warnings on tests
    
    clang does not support 'I' specifier and handles it as a 'length
    modifier'.

Diff:
---
 stdio-common/tst-scanf-to_inpunct.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/stdio-common/tst-scanf-to_inpunct.c b/stdio-common/tst-scanf-to_inpunct.c
index 6fc038f476..fab1a232b9 100644
--- a/stdio-common/tst-scanf-to_inpunct.c
+++ b/stdio-common/tst-scanf-to_inpunct.c
@@ -18,6 +18,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <array_length.h>
+#include <libc-diag.h>
 #include <stdio.h>
 #include <support/support.h>
 #include <support/check.h>
@@ -68,7 +69,11 @@ do_test (void)
   for (int i = 0; i < array_length (inputs); i++)
     {
       int n;
+      /* clang does not support 'I' specifier.  */
+      DIAG_PUSH_NEEDS_COMMENT_CLANG;
+      DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wformat");
       sscanf (inputs[i].str, "%Id", &n);
+      DIAG_POP_NEEDS_COMMENT_CLANG;
       TEST_COMPARE (n, inputs[i].n);
     }

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [glibc/azanella/clang] stdio: Fix clang warnings on tests
@ 2024-02-09 17:38 Adhemerval Zanella
  0 siblings, 0 replies; 8+ messages in thread
From: Adhemerval Zanella @ 2024-02-09 17:38 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=82918c893a2228b5b12aa7db18470b0238b9f14f

commit 82918c893a2228b5b12aa7db18470b0238b9f14f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Jul 27 15:27:08 2023 -0300

    stdio: Fix clang warnings on tests
    
    clang does not support 'I' specifier and handles it as a 'length
    modifier'.

Diff:
---
 stdio-common/tst-scanf-to_inpunct.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/stdio-common/tst-scanf-to_inpunct.c b/stdio-common/tst-scanf-to_inpunct.c
index 6fc038f476..fab1a232b9 100644
--- a/stdio-common/tst-scanf-to_inpunct.c
+++ b/stdio-common/tst-scanf-to_inpunct.c
@@ -18,6 +18,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <array_length.h>
+#include <libc-diag.h>
 #include <stdio.h>
 #include <support/support.h>
 #include <support/check.h>
@@ -68,7 +69,11 @@ do_test (void)
   for (int i = 0; i < array_length (inputs); i++)
     {
       int n;
+      /* clang does not support 'I' specifier.  */
+      DIAG_PUSH_NEEDS_COMMENT_CLANG;
+      DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wformat");
       sscanf (inputs[i].str, "%Id", &n);
+      DIAG_POP_NEEDS_COMMENT_CLANG;
       TEST_COMPARE (n, inputs[i].n);
     }

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [glibc/azanella/clang] stdio: Fix clang warnings on tests
@ 2024-02-07 14:13 Adhemerval Zanella
  0 siblings, 0 replies; 8+ messages in thread
From: Adhemerval Zanella @ 2024-02-07 14:13 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=db6fba7abf9a643b3555e20279c545f2f2f02f4e

commit db6fba7abf9a643b3555e20279c545f2f2f02f4e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Jul 27 15:27:08 2023 -0300

    stdio: Fix clang warnings on tests
    
    clang does not support 'I' specifier and handles it as a 'length
    modifier'.

Diff:
---
 stdio-common/tst-scanf-to_inpunct.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/stdio-common/tst-scanf-to_inpunct.c b/stdio-common/tst-scanf-to_inpunct.c
index 6fc038f476..fab1a232b9 100644
--- a/stdio-common/tst-scanf-to_inpunct.c
+++ b/stdio-common/tst-scanf-to_inpunct.c
@@ -18,6 +18,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <array_length.h>
+#include <libc-diag.h>
 #include <stdio.h>
 #include <support/support.h>
 #include <support/check.h>
@@ -68,7 +69,11 @@ do_test (void)
   for (int i = 0; i < array_length (inputs); i++)
     {
       int n;
+      /* clang does not support 'I' specifier.  */
+      DIAG_PUSH_NEEDS_COMMENT_CLANG;
+      DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wformat");
       sscanf (inputs[i].str, "%Id", &n);
+      DIAG_POP_NEEDS_COMMENT_CLANG;
       TEST_COMPARE (n, inputs[i].n);
     }

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [glibc/azanella/clang] stdio: Fix clang warnings on tests
@ 2024-01-29 18:03 Adhemerval Zanella
  0 siblings, 0 replies; 8+ messages in thread
From: Adhemerval Zanella @ 2024-01-29 18:03 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=57757a723f520bea5db03e546a956424c36769f4

commit 57757a723f520bea5db03e546a956424c36769f4
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Jul 27 15:27:08 2023 -0300

    stdio: Fix clang warnings on tests
    
    clang does not support 'I' specifier and handles it as a 'length
    modifier'.

Diff:
---
 stdio-common/tst-scanf-to_inpunct.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/stdio-common/tst-scanf-to_inpunct.c b/stdio-common/tst-scanf-to_inpunct.c
index 6fc038f476..fab1a232b9 100644
--- a/stdio-common/tst-scanf-to_inpunct.c
+++ b/stdio-common/tst-scanf-to_inpunct.c
@@ -18,6 +18,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <array_length.h>
+#include <libc-diag.h>
 #include <stdio.h>
 #include <support/support.h>
 #include <support/check.h>
@@ -68,7 +69,11 @@ do_test (void)
   for (int i = 0; i < array_length (inputs); i++)
     {
       int n;
+      /* clang does not support 'I' specifier.  */
+      DIAG_PUSH_NEEDS_COMMENT_CLANG;
+      DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wformat");
       sscanf (inputs[i].str, "%Id", &n);
+      DIAG_POP_NEEDS_COMMENT_CLANG;
       TEST_COMPARE (n, inputs[i].n);
     }

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [glibc/azanella/clang] stdio: Fix clang warnings on tests
@ 2023-12-21 19:00 Adhemerval Zanella
  0 siblings, 0 replies; 8+ messages in thread
From: Adhemerval Zanella @ 2023-12-21 19:00 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=48ed7fb56d40009367e99f053d1f062f9b8415e1

commit 48ed7fb56d40009367e99f053d1f062f9b8415e1
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Jul 27 15:27:08 2023 -0300

    stdio: Fix clang warnings on tests
    
    clang does not support 'I' specifier and handles it as a 'length
    modifier'.

Diff:
---
 stdio-common/tst-scanf-to_inpunct.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/stdio-common/tst-scanf-to_inpunct.c b/stdio-common/tst-scanf-to_inpunct.c
index 32236ac2dc..69508f26d7 100644
--- a/stdio-common/tst-scanf-to_inpunct.c
+++ b/stdio-common/tst-scanf-to_inpunct.c
@@ -18,6 +18,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <array_length.h>
+#include <libc-diag.h>
 #include <stdio.h>
 #include <support/support.h>
 #include <support/check.h>
@@ -68,7 +69,11 @@ do_test (void)
   for (int i = 0; i < array_length (inputs); i++)
     {
       int n;
+      /* clang does not support 'I' specifier.  */
+      DIAG_PUSH_NEEDS_COMMENT_CLANG;
+      DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wformat");
       sscanf (inputs[i].str, "%Id", &n);
+      DIAG_POP_NEEDS_COMMENT_CLANG;
       TEST_COMPARE (n, inputs[i].n);
     }

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [glibc/azanella/clang] stdio: Fix clang warnings on tests
@ 2023-09-28 17:58 Adhemerval Zanella
  0 siblings, 0 replies; 8+ messages in thread
From: Adhemerval Zanella @ 2023-09-28 17:58 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=004d3b3617451b7ba264a23a0ea95502e58cfa0b

commit 004d3b3617451b7ba264a23a0ea95502e58cfa0b
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Jul 27 15:27:08 2023 -0300

    stdio: Fix clang warnings on tests
    
    clang does not support 'I' specifier and handles it as a 'length
    modifier'.

Diff:
---
 stdio-common/tst-scanf-to_inpunct.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/stdio-common/tst-scanf-to_inpunct.c b/stdio-common/tst-scanf-to_inpunct.c
index 32236ac2dc..69508f26d7 100644
--- a/stdio-common/tst-scanf-to_inpunct.c
+++ b/stdio-common/tst-scanf-to_inpunct.c
@@ -18,6 +18,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <array_length.h>
+#include <libc-diag.h>
 #include <stdio.h>
 #include <support/support.h>
 #include <support/check.h>
@@ -68,7 +69,11 @@ do_test (void)
   for (int i = 0; i < array_length (inputs); i++)
     {
       int n;
+      /* clang does not support 'I' specifier.  */
+      DIAG_PUSH_NEEDS_COMMENT_CLANG;
+      DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wformat");
       sscanf (inputs[i].str, "%Id", &n);
+      DIAG_POP_NEEDS_COMMENT_CLANG;
       TEST_COMPARE (n, inputs[i].n);
     }

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [glibc/azanella/clang] stdio: Fix clang warnings on tests
@ 2023-08-30 12:42 Adhemerval Zanella
  0 siblings, 0 replies; 8+ messages in thread
From: Adhemerval Zanella @ 2023-08-30 12:42 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=61b957443637b2de60077467fe3e31dc39ad696a

commit 61b957443637b2de60077467fe3e31dc39ad696a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Jul 27 15:27:08 2023 -0300

    stdio: Fix clang warnings on tests
    
    clang does not support 'I' specifier and handles it as a 'length
    modifier'.

Diff:
---
 stdio-common/tst-scanf-to_inpunct.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/stdio-common/tst-scanf-to_inpunct.c b/stdio-common/tst-scanf-to_inpunct.c
index 32236ac2dc..69508f26d7 100644
--- a/stdio-common/tst-scanf-to_inpunct.c
+++ b/stdio-common/tst-scanf-to_inpunct.c
@@ -18,6 +18,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <array_length.h>
+#include <libc-diag.h>
 #include <stdio.h>
 #include <support/support.h>
 #include <support/check.h>
@@ -68,7 +69,11 @@ do_test (void)
   for (int i = 0; i < array_length (inputs); i++)
     {
       int n;
+      /* clang does not support 'I' specifier.  */
+      DIAG_PUSH_NEEDS_COMMENT_CLANG;
+      DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wformat");
       sscanf (inputs[i].str, "%Id", &n);
+      DIAG_POP_NEEDS_COMMENT_CLANG;
       TEST_COMPARE (n, inputs[i].n);
     }

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-04-17 20:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-17 20:13 [glibc/azanella/clang] stdio: Fix clang warnings on tests Adhemerval Zanella
  -- strict thread matches above, loose matches on Subject: below --
2024-04-02 15:59 Adhemerval Zanella
2024-02-09 17:38 Adhemerval Zanella
2024-02-07 14:13 Adhemerval Zanella
2024-01-29 18:03 Adhemerval Zanella
2023-12-21 19:00 Adhemerval Zanella
2023-09-28 17:58 Adhemerval Zanella
2023-08-30 12:42 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).