public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2022-03-16 18:05 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=91b1c05a2f512e5ae897b09f73ec1c88ef221f12

commit 91b1c05a2f512e5ae897b09f73ec1c88ef221f12
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 8c1cce37bd..acfb6e66e8 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)


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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2024-04-17 20:08 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=3a249b4037899e00cde197ed76b267df31be06c9

commit 3a249b4037899e00cde197ed76b267df31be06c9
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 36dc132e4f..71f36d39fa 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,19 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns the global variables are not needed and will not be emitted.
+   However there are used on the CHECK_RET_* macros.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)

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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2024-04-02 15:54 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=eadf82b2188e40322322fcc20a7662fbc996c53f

commit eadf82b2188e40322322fcc20a7662fbc996c53f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 36dc132e4f..71f36d39fa 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,19 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns the global variables are not needed and will not be emitted.
+   However there are used on the CHECK_RET_* macros.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)

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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2024-02-09 17:33 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=9491140bd7c32a24e8620d4b00fe42537eb23338

commit 9491140bd7c32a24e8620d4b00fe42537eb23338
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 36dc132e4f..71f36d39fa 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,19 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns the global variables are not needed and will not be emitted.
+   However there are used on the CHECK_RET_* macros.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)

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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2024-02-07 14:08 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=52abd5ca02a7c68629913649c7db2af5742822c3

commit 52abd5ca02a7c68629913649c7db2af5742822c3
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 36dc132e4f..71f36d39fa 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,19 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns the global variables are not needed and will not be emitted.
+   However there are used on the CHECK_RET_* macros.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)

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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2024-01-29 17:58 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=21bc4e0da08511bdf3baedfc28f5360de63d7906

commit 21bc4e0da08511bdf3baedfc28f5360de63d7906
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 36dc132e4f..71f36d39fa 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,19 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns the global variables are not needed and will not be emitted.
+   However there are used on the CHECK_RET_* macros.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)

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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2023-12-21 18:55 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=c6cafb6d09a395a4a134087dad511c65d8261b75

commit c6cafb6d09a395a4a134087dad511c65d8261b75
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index f31828d6a6..0f108b6ceb 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,19 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns the global variables are not needed and will not be emitted.
+   However there are used on the CHECK_RET_* macros.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)

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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2023-09-28 17:53 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=985afaf9f55e51d787d79aed7bfc11ed6bc9d63b

commit 985afaf9f55e51d787d79aed7bfc11ed6bc9d63b
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index f31828d6a6..0f108b6ceb 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,19 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns the global variables are not needed and will not be emitted.
+   However there are used on the CHECK_RET_* macros.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)

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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2023-08-30 12:37 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=091e6bcdc35b2a5c1d034c8d7bb0fba443ce36bf

commit 091e6bcdc35b2a5c1d034c8d7bb0fba443ce36bf
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index f31828d6a6..efbc10af5b 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)

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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2023-02-09 19:49 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=238a6593161e31f674dadc7278ba08661582cc33

commit 238a6593161e31f674dadc7278ba08661582cc33
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index f31828d6a6..efbc10af5b 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)

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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2022-10-28 17:42 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=51092741a03f21efcca20ba78ad66d8dfd5facac

commit 51092741a03f21efcca20ba78ad66d8dfd5facac
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index dd054bef7e..96e6108cf2 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)

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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2022-10-04 13:00 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=2e7216f1957a0ce5af72ca11ffa5007b4ffda527

commit 2e7216f1957a0ce5af72ca11ffa5007b4ffda527
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index dd054bef7e..96e6108cf2 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)

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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2022-06-09 21:21 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=ea1fc63d083fb0b1247a63d134f8521b1fee59f9

commit ea1fc63d083fb0b1247a63d134f8521b1fee59f9
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 8c1cce37bd..acfb6e66e8 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)


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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2022-06-09 13:17 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=ea1fc63d083fb0b1247a63d134f8521b1fee59f9

commit ea1fc63d083fb0b1247a63d134f8521b1fee59f9
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 8c1cce37bd..acfb6e66e8 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)


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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2022-06-03 14:07 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=516ad5f0cc3cc9781b52300c47240954e1a28e7d

commit 516ad5f0cc3cc9781b52300c47240954e1a28e7d
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 8c1cce37bd..acfb6e66e8 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)


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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2022-05-13 14:21 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=81c8730377da70bff05715c7479b85eb1d9714b9

commit 81c8730377da70bff05715c7479b85eb1d9714b9
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 8c1cce37bd..acfb6e66e8 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)


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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2022-05-12 19:34 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=ae91502e259d58d9325197e5053d7c134bfa0b0c

commit ae91502e259d58d9325197e5053d7c134bfa0b0c
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 8c1cce37bd..acfb6e66e8 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)


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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2022-05-10 18:25 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=394fca932700b5bdd4e6dcd7290a96e068a15f1a

commit 394fca932700b5bdd4e6dcd7290a96e068a15f1a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 8c1cce37bd..acfb6e66e8 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)


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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2022-04-29 14:05 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=a646756217b090f1e287ffbabdf19aa6c5ca31a4

commit a646756217b090f1e287ffbabdf19aa6c5ca31a4
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 8c1cce37bd..acfb6e66e8 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)


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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2022-04-04 12:55 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=7c474a7fd5bc6d6ec0010da300ef4a8a6df4a93e

commit 7c474a7fd5bc6d6ec0010da300ef4a8a6df4a93e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 8c1cce37bd..acfb6e66e8 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)


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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2022-03-31 19:07 Adhemerval Zanella
  0 siblings, 0 replies; 23+ 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=f8d91ebcc02ea6bd2a0ff5af1afa62922d825c06

commit f8d91ebcc02ea6bd2a0ff5af1afa62922d825c06
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 8c1cce37bd..acfb6e66e8 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)


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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2022-03-29 20:30 Adhemerval Zanella
  0 siblings, 0 replies; 23+ messages in thread
From: Adhemerval Zanella @ 2022-03-29 20:30 UTC (permalink / raw)
  To: glibc-cvs

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

commit 870ff672a5d33259b566368a94609b6e2eb29289
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 8c1cce37bd..acfb6e66e8 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)


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

* [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c
@ 2022-03-15 18:42 Adhemerval Zanella
  0 siblings, 0 replies; 23+ messages in thread
From: Adhemerval Zanella @ 2022-03-15 18:42 UTC (permalink / raw)
  To: glibc-cvs

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

commit 58416a64ed8d7979c10430cf0ea0a8e5c3384c3b
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 15:33:02 2022 -0300

    math: Fix clang warnings for math/test-tgmath-ret.c
    
    clang warns that since the global variables are only used to function
    calls (without being actually used), there are not needed and will
    not be emitted.

Diff:
---
 math/test-tgmath-ret.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/math/test-tgmath-ret.c b/math/test-tgmath-ret.c
index 8c1cce37bd..acfb6e66e8 100644
--- a/math/test-tgmath-ret.c
+++ b/math/test-tgmath-ret.c
@@ -21,13 +21,20 @@
 #include <tgmath.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <libc-diag.h>
 
+/* clang warns that since the global variables are only used to function
+   calls (without being actually used), there are not needed and will not
+   be emitted.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wunneeded-internal-declaration");
 static float fx;
 static double dx;
 static long double lx;
 static int rm = FP_INT_UPWARD;
 static unsigned int width = 64;
 static int errors = 0;
+DIAG_POP_NEEDS_COMMENT_CLANG;
 
 static void
 our_error (const char *c)


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

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

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-16 18:05 [glibc/azanella/clang] math: Fix clang warnings for math/test-tgmath-ret.c Adhemerval Zanella
  -- strict thread matches above, loose matches on Subject: below --
2024-04-17 20:08 Adhemerval Zanella
2024-04-02 15:54 Adhemerval Zanella
2024-02-09 17:33 Adhemerval Zanella
2024-02-07 14:08 Adhemerval Zanella
2024-01-29 17:58 Adhemerval Zanella
2023-12-21 18:55 Adhemerval Zanella
2023-09-28 17:53 Adhemerval Zanella
2023-08-30 12:37 Adhemerval Zanella
2023-02-09 19:49 Adhemerval Zanella
2022-10-28 17:42 Adhemerval Zanella
2022-10-04 13:00 Adhemerval Zanella
2022-06-09 21:21 Adhemerval Zanella
2022-06-09 13:17 Adhemerval Zanella
2022-06-03 14:07 Adhemerval Zanella
2022-05-13 14:21 Adhemerval Zanella
2022-05-12 19:34 Adhemerval Zanella
2022-05-10 18:25 Adhemerval Zanella
2022-04-29 14:05 Adhemerval Zanella
2022-04-04 12:55 Adhemerval Zanella
2022-03-31 19:07 Adhemerval Zanella
2022-03-29 20:30 Adhemerval Zanella
2022-03-15 18: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).