public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2022-03-31 19:10 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-03-31 19:10 UTC (permalink / raw)
  To: glibc-cvs

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

commit b46adf7b4ddd8c591a16ca3bb58a0ad999f8ee35
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;


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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2024-04-17 20:10 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2024-04-17 20:10 UTC (permalink / raw)
  To: glibc-cvs

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

commit 0fe003b0235263f296e5c7463deadc9a7b797970
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;

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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2024-04-02 15:56 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2024-04-02 15:56 UTC (permalink / raw)
  To: glibc-cvs

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

commit dcaec0356ac473329b3bf44134c578b9a03a8dc2
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;

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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2024-02-09 17:35 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2024-02-09 17:35 UTC (permalink / raw)
  To: glibc-cvs

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

commit da6415da48882f2b115e21a5b63f7f8e397ab529
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;

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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2024-02-07 14:10 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2024-02-07 14:10 UTC (permalink / raw)
  To: glibc-cvs

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

commit f3aab2f357ac0ab454f764bf9c91e582fc5ac124
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;

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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2024-01-29 18:00 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2024-01-29 18:00 UTC (permalink / raw)
  To: glibc-cvs

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

commit f039067c3b899da39650bb3abe7f4b6cda9413c3
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;

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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2023-12-21 18:57 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2023-12-21 18:57 UTC (permalink / raw)
  To: glibc-cvs

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

commit e710a7706ce35559c8558128152eebe3abedeb5e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;

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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2023-09-28 17:55 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2023-09-28 17:55 UTC (permalink / raw)
  To: glibc-cvs

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

commit 7e86a6ef4e95f9085095b654ddbee3072a66869f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;

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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2023-08-30 12:39 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2023-08-30 12:39 UTC (permalink / raw)
  To: glibc-cvs

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

commit 1b86cf0617838cb0d64a50e65d04732d5f91215a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;

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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2023-02-09 19:51 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2023-02-09 19:51 UTC (permalink / raw)
  To: glibc-cvs

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

commit 54e2bd9b0ac0a51e6ee104fde4fbac32e848ca62
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;

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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2022-10-28 17:44 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-10-28 17:44 UTC (permalink / raw)
  To: glibc-cvs

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

commit 2677cabec18ee30c274ea05c09b8b19f671825e2
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;

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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2022-10-04 13:02 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-10-04 13:02 UTC (permalink / raw)
  To: glibc-cvs

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

commit 252696c271824fc702655dbb4ee39e1d80909065
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;

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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2022-06-09 21:23 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 21:23 UTC (permalink / raw)
  To: glibc-cvs

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

commit 158acd2f66fdd29524cbcb52eacb7e50051a81b6
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;


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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2022-06-09 13:20 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 13:20 UTC (permalink / raw)
  To: glibc-cvs

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

commit 158acd2f66fdd29524cbcb52eacb7e50051a81b6
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;


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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2022-06-03 14:09 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-06-03 14:09 UTC (permalink / raw)
  To: glibc-cvs

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

commit 2a5d49699119ba191c1712d86605216e13fb6894
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;


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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2022-05-13 14:23 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-05-13 14:23 UTC (permalink / raw)
  To: glibc-cvs

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

commit a9c727229112d9a6c393be641746a0b4872d5ffd
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;


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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2022-05-12 19:37 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-05-12 19:37 UTC (permalink / raw)
  To: glibc-cvs

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

commit f9fe4d74d5875d008840eb224118d911e4363dde
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;


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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2022-05-10 18:27 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-05-10 18:27 UTC (permalink / raw)
  To: glibc-cvs

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

commit 4ae6f6c54d9fe1f1b84e31b42a0726e33e2621af
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;


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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2022-04-29 14:07 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-04-29 14:07 UTC (permalink / raw)
  To: glibc-cvs

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

commit dfaadfca824f28b12455f50fa04f3f368653bf70
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;


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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2022-04-04 12:57 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-04-04 12:57 UTC (permalink / raw)
  To: glibc-cvs

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

commit 7b46660d24888f626b6215b6e6e312f4d7d462c7
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;


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

* [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24
@ 2022-03-29 20:33 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-03-29 20:33 UTC (permalink / raw)
  To: glibc-cvs

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

commit 7e55acb6e211185095b7af789ee741cb5b98d33e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:23:35 2022 -0300

    posix: Suppress clang warning on bug-regex24
    
    clang complains that adding a 'regoff_t' to a string doe snot
    append to it, and the printf idea below is to make rm_so an
    offset.

Diff:
---
 posix/bug-regex24.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/posix/bug-regex24.c b/posix/bug-regex24.c
index 97c5c3508a..7a655cbc4d 100644
--- a/posix/bug-regex24.c
+++ b/posix/bug-regex24.c
@@ -1,6 +1,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <string.h>
+#include <libc-diag.h>
 
 #define str "civic"
 
@@ -45,11 +46,17 @@ do_test (void)
       {
 	int len = m[i].rm_eo - m[i].rm_so;
 
+	/* clang complains that adding a 'regoff_t' to a string does not
+	   append to it, and the printf idea below is to make rm_so as
+	   an offset to str.  */
+	DIAG_PUSH_NEEDS_COMMENT_CLANG;
+	DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
 	printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so);
 
 	if (strlen (expected[i]) != len
 	    || memcmp (expected[i], str + m[i].rm_so, len) != 0)
 	  result = 1;
+	DIAG_POP_NEEDS_COMMENT_CLANG;
       }
 
   return result;


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

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

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31 19:10 [glibc/azanella/clang] posix: Suppress clang warning on bug-regex24 Adhemerval Zanella
  -- strict thread matches above, loose matches on Subject: below --
2024-04-17 20:10 Adhemerval Zanella
2024-04-02 15:56 Adhemerval Zanella
2024-02-09 17:35 Adhemerval Zanella
2024-02-07 14:10 Adhemerval Zanella
2024-01-29 18:00 Adhemerval Zanella
2023-12-21 18:57 Adhemerval Zanella
2023-09-28 17:55 Adhemerval Zanella
2023-08-30 12:39 Adhemerval Zanella
2023-02-09 19:51 Adhemerval Zanella
2022-10-28 17:44 Adhemerval Zanella
2022-10-04 13:02 Adhemerval Zanella
2022-06-09 21:23 Adhemerval Zanella
2022-06-09 13:20 Adhemerval Zanella
2022-06-03 14:09 Adhemerval Zanella
2022-05-13 14:23 Adhemerval Zanella
2022-05-12 19:37 Adhemerval Zanella
2022-05-10 18:27 Adhemerval Zanella
2022-04-29 14:07 Adhemerval Zanella
2022-04-04 12:57 Adhemerval Zanella
2022-03-29 20:33 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).