public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-10-04 12:56 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-10-04 12:56 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c6e5b8af3e28649b338834c0890672cdd73a09d4
commit c6e5b8af3e28649b338834c0890672cdd73a09d4
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Clang emits an error:
error: result of comparison of constant 255 with expression of type
'char' is always true
[-Werror,-Wtautological-constant-out-of-range-compare]
if (spec <= UCHAR_MAX
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index fb94961f37..ccbca28fd0 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1380,7 +1380,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
{
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2023-02-09 19:49 Adhemerval Zanella
0 siblings, 0 replies; 17+ 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=5c94dd0beabfbf5b3c45cffa0a3a4b8d183b0d9c
commit 5c94dd0beabfbf5b3c45cffa0a3a4b8d183b0d9c
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Jan 3 14:35:09 2023 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Clang emits an error:
error: result of comparison of constant 255 with expression of type
'char' is always true
[-Werror,-Wtautological-constant-out-of-range-compare]
if (spec <= UCHAR_MAX
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index c76c06e49b..d3c776790c 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1253,7 +1253,7 @@ printf_positional (struct Xprintf_buffer * buf, const CHAR_T *format,
/* Process format specifiers. */
do
{
- if (spec <= UCHAR_MAX
+ if ((size_t) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-10-28 17:38 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-10-28 17:38 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=349ea2b1f49684b7833b6be672dff1b5654e59c7
commit 349ea2b1f49684b7833b6be672dff1b5654e59c7
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Clang emits an error:
error: result of comparison of constant 255 with expression of type
'char' is always true
[-Werror,-Wtautological-constant-out-of-range-compare]
if (spec <= UCHAR_MAX
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index fb94961f37..ccbca28fd0 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1380,7 +1380,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
{
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-06-09 21:18 Adhemerval Zanella
0 siblings, 0 replies; 17+ 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=07bf2078bbc59e8aabbc5d22910bd9ecddc1ab92
commit 07bf2078bbc59e8aabbc5d22910bd9ecddc1ab92
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index fb94961f37..ccbca28fd0 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1380,7 +1380,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
{
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-06-09 13:14 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 13:14 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=07bf2078bbc59e8aabbc5d22910bd9ecddc1ab92
commit 07bf2078bbc59e8aabbc5d22910bd9ecddc1ab92
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index fb94961f37..ccbca28fd0 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1380,7 +1380,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
{
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-06-03 14:04 Adhemerval Zanella
0 siblings, 0 replies; 17+ 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=790f8f8c20a9a89e6c5332feb66c1e85b97097bc
commit 790f8f8c20a9a89e6c5332feb66c1e85b97097bc
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index fb94961f37..ccbca28fd0 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1380,7 +1380,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
{
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-05-13 14:18 Adhemerval Zanella
0 siblings, 0 replies; 17+ 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=1ea82d08f43d0061ec1b90f4b55a03ed5a969ed1
commit 1ea82d08f43d0061ec1b90f4b55a03ed5a969ed1
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index 59bd76c890..76b89d5d65 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1878,7 +1878,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
extern printf_function **__printf_function_table;
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-05-12 19:31 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-05-12 19:31 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=09e72107bdb53185fd9016b14837dd89e54d2cbe
commit 09e72107bdb53185fd9016b14837dd89e54d2cbe
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index 59bd76c890..76b89d5d65 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1878,7 +1878,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
extern printf_function **__printf_function_table;
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-05-10 18:22 Adhemerval Zanella
0 siblings, 0 replies; 17+ 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=b5b3827cf0c9af1cc27e5b3455e15c1f95846421
commit b5b3827cf0c9af1cc27e5b3455e15c1f95846421
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index 59bd76c890..76b89d5d65 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1878,7 +1878,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
extern printf_function **__printf_function_table;
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-04-29 14:02 Adhemerval Zanella
0 siblings, 0 replies; 17+ 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=c473bbd8df243dceadd44e5cb11e643abd840b3b
commit c473bbd8df243dceadd44e5cb11e643abd840b3b
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index 59bd76c890..76b89d5d65 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1878,7 +1878,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
extern printf_function **__printf_function_table;
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-04-04 12:52 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-04-04 12:52 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=470bac73eace7dee7b3c1b24abb69e64527ce933
commit 470bac73eace7dee7b3c1b24abb69e64527ce933
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index 59bd76c890..76b89d5d65 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1878,7 +1878,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
extern printf_function **__printf_function_table;
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-03-31 19:04 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-03-31 19:04 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=22854742e74e7594c1fd6e036c46c4e55446ebc4
commit 22854742e74e7594c1fd6e036c46c4e55446ebc4
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index 59bd76c890..76b89d5d65 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1878,7 +1878,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
extern printf_function **__printf_function_table;
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-03-29 20:27 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-03-29 20:27 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=16f0fdccc91312be3146da816227308f1cfb74e3
commit 16f0fdccc91312be3146da816227308f1cfb74e3
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index 59bd76c890..76b89d5d65 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1878,7 +1878,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
extern printf_function **__printf_function_table;
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-03-16 18:00 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-03-16 18:00 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8cf3da8d75a819aad893f8cc644dd05a9d2bf073
commit 8cf3da8d75a819aad893f8cc644dd05a9d2bf073
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index 59bd76c890..76b89d5d65 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1878,7 +1878,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
extern printf_function **__printf_function_table;
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-03-15 18:37 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-03-15 18:37 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8cf3da8d75a819aad893f8cc644dd05a9d2bf073
commit 8cf3da8d75a819aad893f8cc644dd05a9d2bf073
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index 59bd76c890..76b89d5d65 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1878,7 +1878,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
extern printf_function **__printf_function_table;
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-03-11 17:21 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-03-11 17:21 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c95d4bb712bd899c61b409324eb9fd2d04b0f114
commit c95d4bb712bd899c61b409324eb9fd2d04b0f114
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index 59bd76c890..76b89d5d65 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1878,7 +1878,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
extern printf_function **__printf_function_table;
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
* [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang
@ 2022-03-10 19:20 Adhemerval Zanella
0 siblings, 0 replies; 17+ messages in thread
From: Adhemerval Zanella @ 2022-03-10 19:20 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7df2a071b73aefa9f4d5fc118e087aa6deb83207
commit 7df2a071b73aefa9f4d5fc118e087aa6deb83207
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Mar 9 15:57:17 2022 -0300
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
Diff:
---
stdio-common/vfprintf-internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c
index 59bd76c890..76b89d5d65 100644
--- a/stdio-common/vfprintf-internal.c
+++ b/stdio-common/vfprintf-internal.c
@@ -1878,7 +1878,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format,
extern printf_function **__printf_function_table;
int function_done;
- if (spec <= UCHAR_MAX
+ if ((int) spec <= UCHAR_MAX
&& __printf_function_table != NULL
&& __printf_function_table[(size_t) spec] != NULL)
{
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2023-02-09 19:49 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 12:56 [glibc/azanella/clang] stdio: Fix -Wtautological-constant-out-of-range-compare on clang Adhemerval Zanella
-- strict thread matches above, loose matches on Subject: below --
2023-02-09 19:49 Adhemerval Zanella
2022-10-28 17:38 Adhemerval Zanella
2022-06-09 21:18 Adhemerval Zanella
2022-06-09 13:14 Adhemerval Zanella
2022-06-03 14:04 Adhemerval Zanella
2022-05-13 14:18 Adhemerval Zanella
2022-05-12 19:31 Adhemerval Zanella
2022-05-10 18:22 Adhemerval Zanella
2022-04-29 14:02 Adhemerval Zanella
2022-04-04 12:52 Adhemerval Zanella
2022-03-31 19:04 Adhemerval Zanella
2022-03-29 20:27 Adhemerval Zanella
2022-03-16 18:00 Adhemerval Zanella
2022-03-15 18:37 Adhemerval Zanella
2022-03-11 17:21 Adhemerval Zanella
2022-03-10 19:20 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).