public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] elf: Suppress warning on clang
@ 2022-04-04 12:53 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-04-04 12:53 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7dfe19debbfd43eb6ed81f29919f1fe01f187f66
commit 7dfe19debbfd43eb6ed81f29919f1fe01f187f66
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:48:32 2022 -0300
elf: Suppress warning on clang
Diff:
---
elf/rtld.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/elf/rtld.c b/elf/rtld.c
index 57ca2f1562..cd0050c048 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2512,10 +2512,16 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy);
_dl_printf ("\
Valid options for the LD_DEBUG environment variable are:\n\n");
+ /* clang issues an warning adding 'const unsigned char' to a string
+ does not append to the string, however it is exactly what code
+ means here. */
+ DIAG_PUSH_NEEDS_COMMENT_CLANG;
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
for (cnt = 0; cnt < ndebopts; ++cnt)
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
" " + debopts[cnt].len - 3,
debopts[cnt].helptext);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
_dl_printf ("\n\
To direct the debugging output into a file instead of standard output\n\
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] elf: Suppress warning on clang
@ 2022-06-09 21:18 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 21:18 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3482fc988209bb578caad90822570f29c5b50867
commit 3482fc988209bb578caad90822570f29c5b50867
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:48:32 2022 -0300
elf: Suppress warning on clang
Diff:
---
elf/rtld.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/elf/rtld.c b/elf/rtld.c
index b8c7f1c166..0dea6621ce 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2532,10 +2532,16 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy);
_dl_printf ("\
Valid options for the LD_DEBUG environment variable are:\n\n");
+ /* clang issues an warning adding 'const unsigned char' to a string
+ does not append to the string, however it is exactly what code
+ means here. */
+ DIAG_PUSH_NEEDS_COMMENT_CLANG;
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
for (cnt = 0; cnt < ndebopts; ++cnt)
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
" " + debopts[cnt].len - 3,
debopts[cnt].helptext);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
_dl_printf ("\n\
To direct the debugging output into a file instead of standard output\n\
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] elf: Suppress warning on clang
@ 2022-06-09 13:15 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 13:15 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3482fc988209bb578caad90822570f29c5b50867
commit 3482fc988209bb578caad90822570f29c5b50867
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:48:32 2022 -0300
elf: Suppress warning on clang
Diff:
---
elf/rtld.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/elf/rtld.c b/elf/rtld.c
index b8c7f1c166..0dea6621ce 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2532,10 +2532,16 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy);
_dl_printf ("\
Valid options for the LD_DEBUG environment variable are:\n\n");
+ /* clang issues an warning adding 'const unsigned char' to a string
+ does not append to the string, however it is exactly what code
+ means here. */
+ DIAG_PUSH_NEEDS_COMMENT_CLANG;
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
for (cnt = 0; cnt < ndebopts; ++cnt)
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
" " + debopts[cnt].len - 3,
debopts[cnt].helptext);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
_dl_printf ("\n\
To direct the debugging output into a file instead of standard output\n\
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] elf: Suppress warning on clang
@ 2022-06-03 14:04 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-06-03 14:04 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e79bacf847b27fcfe5888e5a2489aaf3f5582f2a
commit e79bacf847b27fcfe5888e5a2489aaf3f5582f2a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:48:32 2022 -0300
elf: Suppress warning on clang
Diff:
---
elf/rtld.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/elf/rtld.c b/elf/rtld.c
index b8c7f1c166..0dea6621ce 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2532,10 +2532,16 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy);
_dl_printf ("\
Valid options for the LD_DEBUG environment variable are:\n\n");
+ /* clang issues an warning adding 'const unsigned char' to a string
+ does not append to the string, however it is exactly what code
+ means here. */
+ DIAG_PUSH_NEEDS_COMMENT_CLANG;
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
for (cnt = 0; cnt < ndebopts; ++cnt)
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
" " + debopts[cnt].len - 3,
debopts[cnt].helptext);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
_dl_printf ("\n\
To direct the debugging output into a file instead of standard output\n\
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] elf: Suppress warning on clang
@ 2022-05-13 14:18 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-05-13 14:18 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=abfee24f57ec32680209e619474947df5e6f96e2
commit abfee24f57ec32680209e619474947df5e6f96e2
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:48:32 2022 -0300
elf: Suppress warning on clang
Diff:
---
elf/rtld.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/elf/rtld.c b/elf/rtld.c
index ebb3fbbb23..3d53107504 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2506,10 +2506,16 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy);
_dl_printf ("\
Valid options for the LD_DEBUG environment variable are:\n\n");
+ /* clang issues an warning adding 'const unsigned char' to a string
+ does not append to the string, however it is exactly what code
+ means here. */
+ DIAG_PUSH_NEEDS_COMMENT_CLANG;
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
for (cnt = 0; cnt < ndebopts; ++cnt)
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
" " + debopts[cnt].len - 3,
debopts[cnt].helptext);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
_dl_printf ("\n\
To direct the debugging output into a file instead of standard output\n\
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] elf: Suppress warning on clang
@ 2022-05-12 19:32 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-05-12 19:32 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7ab86391b275fb186075e83ddb5b7fb57a7ebe7e
commit 7ab86391b275fb186075e83ddb5b7fb57a7ebe7e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:48:32 2022 -0300
elf: Suppress warning on clang
Diff:
---
elf/rtld.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/elf/rtld.c b/elf/rtld.c
index ebb3fbbb23..3d53107504 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2506,10 +2506,16 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy);
_dl_printf ("\
Valid options for the LD_DEBUG environment variable are:\n\n");
+ /* clang issues an warning adding 'const unsigned char' to a string
+ does not append to the string, however it is exactly what code
+ means here. */
+ DIAG_PUSH_NEEDS_COMMENT_CLANG;
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
for (cnt = 0; cnt < ndebopts; ++cnt)
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
" " + debopts[cnt].len - 3,
debopts[cnt].helptext);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
_dl_printf ("\n\
To direct the debugging output into a file instead of standard output\n\
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] elf: Suppress warning on clang
@ 2022-05-10 18:22 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-05-10 18:22 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7edd51a542f960ab526b34f09e718c99d62c567f
commit 7edd51a542f960ab526b34f09e718c99d62c567f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:48:32 2022 -0300
elf: Suppress warning on clang
Diff:
---
elf/rtld.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/elf/rtld.c b/elf/rtld.c
index ebb3fbbb23..3d53107504 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2506,10 +2506,16 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy);
_dl_printf ("\
Valid options for the LD_DEBUG environment variable are:\n\n");
+ /* clang issues an warning adding 'const unsigned char' to a string
+ does not append to the string, however it is exactly what code
+ means here. */
+ DIAG_PUSH_NEEDS_COMMENT_CLANG;
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
for (cnt = 0; cnt < ndebopts; ++cnt)
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
" " + debopts[cnt].len - 3,
debopts[cnt].helptext);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
_dl_printf ("\n\
To direct the debugging output into a file instead of standard output\n\
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] elf: Suppress warning on clang
@ 2022-04-29 14:02 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-04-29 14:02 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=aab0cb093ab572e7c9b96de5f7d71364a58d7f85
commit aab0cb093ab572e7c9b96de5f7d71364a58d7f85
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:48:32 2022 -0300
elf: Suppress warning on clang
Diff:
---
elf/rtld.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/elf/rtld.c b/elf/rtld.c
index ebb3fbbb23..3d53107504 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2506,10 +2506,16 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy);
_dl_printf ("\
Valid options for the LD_DEBUG environment variable are:\n\n");
+ /* clang issues an warning adding 'const unsigned char' to a string
+ does not append to the string, however it is exactly what code
+ means here. */
+ DIAG_PUSH_NEEDS_COMMENT_CLANG;
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
for (cnt = 0; cnt < ndebopts; ++cnt)
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
" " + debopts[cnt].len - 3,
debopts[cnt].helptext);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
_dl_printf ("\n\
To direct the debugging output into a file instead of standard output\n\
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] elf: Suppress warning on clang
@ 2022-03-31 19:05 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-31 19:05 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c418d4016db654ef2c56f0a90b4029a04853b7ca
commit c418d4016db654ef2c56f0a90b4029a04853b7ca
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:48:32 2022 -0300
elf: Suppress warning on clang
Diff:
---
elf/rtld.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/elf/rtld.c b/elf/rtld.c
index 57ca2f1562..cd0050c048 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2512,10 +2512,16 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy);
_dl_printf ("\
Valid options for the LD_DEBUG environment variable are:\n\n");
+ /* clang issues an warning adding 'const unsigned char' to a string
+ does not append to the string, however it is exactly what code
+ means here. */
+ DIAG_PUSH_NEEDS_COMMENT_CLANG;
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
for (cnt = 0; cnt < ndebopts; ++cnt)
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
" " + debopts[cnt].len - 3,
debopts[cnt].helptext);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
_dl_printf ("\n\
To direct the debugging output into a file instead of standard output\n\
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] elf: Suppress warning on clang
@ 2022-03-29 20:28 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-29 20:28 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c93d67abc0449aefa1792d7ff239bee118a085c7
commit c93d67abc0449aefa1792d7ff239bee118a085c7
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:48:32 2022 -0300
elf: Suppress warning on clang
Diff:
---
elf/rtld.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/elf/rtld.c b/elf/rtld.c
index 57ca2f1562..cd0050c048 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2512,10 +2512,16 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy);
_dl_printf ("\
Valid options for the LD_DEBUG environment variable are:\n\n");
+ /* clang issues an warning adding 'const unsigned char' to a string
+ does not append to the string, however it is exactly what code
+ means here. */
+ DIAG_PUSH_NEEDS_COMMENT_CLANG;
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
for (cnt = 0; cnt < ndebopts; ++cnt)
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
" " + debopts[cnt].len - 3,
debopts[cnt].helptext);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
_dl_printf ("\n\
To direct the debugging output into a file instead of standard output\n\
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] elf: Suppress warning on clang
@ 2022-03-16 18:01 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-16 18:01 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3aa08d6f60f083f9984ad4abc8c4ec3e36274163
commit 3aa08d6f60f083f9984ad4abc8c4ec3e36274163
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:48:32 2022 -0300
elf: Suppress warning on clang
Diff:
---
elf/rtld.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/elf/rtld.c b/elf/rtld.c
index 57ca2f1562..cd0050c048 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2512,10 +2512,16 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy);
_dl_printf ("\
Valid options for the LD_DEBUG environment variable are:\n\n");
+ /* clang issues an warning adding 'const unsigned char' to a string
+ does not append to the string, however it is exactly what code
+ means here. */
+ DIAG_PUSH_NEEDS_COMMENT_CLANG;
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
for (cnt = 0; cnt < ndebopts; ++cnt)
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
" " + debopts[cnt].len - 3,
debopts[cnt].helptext);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
_dl_printf ("\n\
To direct the debugging output into a file instead of standard output\n\
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] elf: Suppress warning on clang
@ 2022-03-15 18:39 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-15 18:39 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3aa08d6f60f083f9984ad4abc8c4ec3e36274163
commit 3aa08d6f60f083f9984ad4abc8c4ec3e36274163
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:48:32 2022 -0300
elf: Suppress warning on clang
Diff:
---
elf/rtld.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/elf/rtld.c b/elf/rtld.c
index 57ca2f1562..cd0050c048 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2512,10 +2512,16 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy);
_dl_printf ("\
Valid options for the LD_DEBUG environment variable are:\n\n");
+ /* clang issues an warning adding 'const unsigned char' to a string
+ does not append to the string, however it is exactly what code
+ means here. */
+ DIAG_PUSH_NEEDS_COMMENT_CLANG;
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
for (cnt = 0; cnt < ndebopts; ++cnt)
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
" " + debopts[cnt].len - 3,
debopts[cnt].helptext);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
_dl_printf ("\n\
To direct the debugging output into a file instead of standard output\n\
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] elf: Suppress warning on clang
@ 2022-03-11 17:23 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-11 17:23 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=af85ff833d0003c1b8148e6f527cb35253b33f9e
commit af85ff833d0003c1b8148e6f527cb35253b33f9e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:48:32 2022 -0300
elf: Suppress warning on clang
Diff:
---
elf/rtld.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/elf/rtld.c b/elf/rtld.c
index 57ca2f1562..cd0050c048 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2512,10 +2512,16 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy);
_dl_printf ("\
Valid options for the LD_DEBUG environment variable are:\n\n");
+ /* clang issues an warning adding 'const unsigned char' to a string
+ does not append to the string, however it is exactly what code
+ means here. */
+ DIAG_PUSH_NEEDS_COMMENT_CLANG;
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
for (cnt = 0; cnt < ndebopts; ++cnt)
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
" " + debopts[cnt].len - 3,
debopts[cnt].helptext);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
_dl_printf ("\n\
To direct the debugging output into a file instead of standard output\n\
^ permalink raw reply [flat|nested] 14+ messages in thread
* [glibc/azanella/clang] elf: Suppress warning on clang
@ 2022-03-10 19:22 Adhemerval Zanella
0 siblings, 0 replies; 14+ messages in thread
From: Adhemerval Zanella @ 2022-03-10 19:22 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a46333ccdb9ae278d63afb2a842b53461d64ef37
commit a46333ccdb9ae278d63afb2a842b53461d64ef37
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:48:32 2022 -0300
elf: Suppress warning on clang
Diff:
---
elf/rtld.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/elf/rtld.c b/elf/rtld.c
index 57ca2f1562..cd0050c048 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2512,10 +2512,16 @@ warning: debug option `%s' unknown; try LD_DEBUG=help\n", copy);
_dl_printf ("\
Valid options for the LD_DEBUG environment variable are:\n\n");
+ /* clang issues an warning adding 'const unsigned char' to a string
+ does not append to the string, however it is exactly what code
+ means here. */
+ DIAG_PUSH_NEEDS_COMMENT_CLANG;
+ DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wstring-plus-int");
for (cnt = 0; cnt < ndebopts; ++cnt)
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
" " + debopts[cnt].len - 3,
debopts[cnt].helptext);
+ DIAG_POP_NEEDS_COMMENT_CLANG;
_dl_printf ("\n\
To direct the debugging output into a file instead of standard output\n\
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2022-06-09 21:18 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 12:53 [glibc/azanella/clang] elf: Suppress warning on clang Adhemerval Zanella
-- strict thread matches above, loose matches on Subject: below --
2022-06-09 21:18 Adhemerval Zanella
2022-06-09 13:15 Adhemerval Zanella
2022-06-03 14:04 Adhemerval Zanella
2022-05-13 14:18 Adhemerval Zanella
2022-05-12 19:32 Adhemerval Zanella
2022-05-10 18:22 Adhemerval Zanella
2022-04-29 14:02 Adhemerval Zanella
2022-03-31 19:05 Adhemerval Zanella
2022-03-29 20:28 Adhemerval Zanella
2022-03-16 18:01 Adhemerval Zanella
2022-03-15 18:39 Adhemerval Zanella
2022-03-11 17:23 Adhemerval Zanella
2022-03-10 19:22 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).