public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2022-10-04 12:59 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-10-04 12:59 UTC (permalink / raw)
  To: glibc-cvs

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

commit 351e61ea171078e9694fb8790eca8b8386b9e26d
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE
    
    Clang warns:
    
      ../sysdeps/posix/fpathconf.c:118:21: error: right side of operator
      converted from negative value to unsigned: -1 to 18446744073709551615
      [-Werror]
      #if _POSIX_VDISABLE == -1
        ~~~~~~~~~~~~~~~ ^  ~~

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 4b215e0600..7d5b543e47 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index d414f7a313..54c86f0dfd 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;

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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2024-04-17 20:06 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2024-04-17 20:06 UTC (permalink / raw)
  To: glibc-cvs

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

commit 2e9db2ac737ffdcf336a64223e8b77764003b7ce
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE
    
    Clang warns:
    
      ../sysdeps/posix/fpathconf.c:118:21: error: right side of operator
      converted from negative value to unsigned: -1 to 18446744073709551615
      [-Werror]
      #if _POSIX_VDISABLE == -1
        ~~~~~~~~~~~~~~~ ^  ~~

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 3284e88b8e..f7b68da779 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index 2a17082301..61d7469acc 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;

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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2024-04-02 15:53 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2024-04-02 15:53 UTC (permalink / raw)
  To: glibc-cvs

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

commit a167c11a2cfec90ab95c165fd5db1ac807a3eb3e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE
    
    Clang warns:
    
      ../sysdeps/posix/fpathconf.c:118:21: error: right side of operator
      converted from negative value to unsigned: -1 to 18446744073709551615
      [-Werror]
      #if _POSIX_VDISABLE == -1
        ~~~~~~~~~~~~~~~ ^  ~~

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 3284e88b8e..f7b68da779 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index 2a17082301..61d7469acc 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;

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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2024-02-09 17:31 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2024-02-09 17:31 UTC (permalink / raw)
  To: glibc-cvs

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

commit a43d325cc76b8bd37b92c1b6814eba54ce3ff6b9
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE
    
    Clang warns:
    
      ../sysdeps/posix/fpathconf.c:118:21: error: right side of operator
      converted from negative value to unsigned: -1 to 18446744073709551615
      [-Werror]
      #if _POSIX_VDISABLE == -1
        ~~~~~~~~~~~~~~~ ^  ~~

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 3284e88b8e..f7b68da779 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index 2a17082301..61d7469acc 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;

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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2024-02-07 14:06 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2024-02-07 14:06 UTC (permalink / raw)
  To: glibc-cvs

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

commit 08e7d9f975c16dd1e1cb63bcb935fa61d56356d5
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE
    
    Clang warns:
    
      ../sysdeps/posix/fpathconf.c:118:21: error: right side of operator
      converted from negative value to unsigned: -1 to 18446744073709551615
      [-Werror]
      #if _POSIX_VDISABLE == -1
        ~~~~~~~~~~~~~~~ ^  ~~

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 3284e88b8e..f7b68da779 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index 2a17082301..61d7469acc 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;

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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2024-01-29 17:56 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2024-01-29 17:56 UTC (permalink / raw)
  To: glibc-cvs

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

commit 46c4a69afa40dfc03596b916f952bfe222e3ce26
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE
    
    Clang warns:
    
      ../sysdeps/posix/fpathconf.c:118:21: error: right side of operator
      converted from negative value to unsigned: -1 to 18446744073709551615
      [-Werror]
      #if _POSIX_VDISABLE == -1
        ~~~~~~~~~~~~~~~ ^  ~~

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 3284e88b8e..f7b68da779 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index 2a17082301..61d7469acc 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;

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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2023-12-21 18:53 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2023-12-21 18:53 UTC (permalink / raw)
  To: glibc-cvs

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

commit 428e4be5bfc6d201defbbd3e08e8daa9cab0a33f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE
    
    Clang warns:
    
      ../sysdeps/posix/fpathconf.c:118:21: error: right side of operator
      converted from negative value to unsigned: -1 to 18446744073709551615
      [-Werror]
      #if _POSIX_VDISABLE == -1
        ~~~~~~~~~~~~~~~ ^  ~~

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index ce432962cd..d5436e523a 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index 2cf0ad5abf..8e15801dbf 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;

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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2023-09-28 17:51 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2023-09-28 17:51 UTC (permalink / raw)
  To: glibc-cvs

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

commit fe98553c962205b5547b7b39f5c6c5d1031b436a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE
    
    Clang warns:
    
      ../sysdeps/posix/fpathconf.c:118:21: error: right side of operator
      converted from negative value to unsigned: -1 to 18446744073709551615
      [-Werror]
      #if _POSIX_VDISABLE == -1
        ~~~~~~~~~~~~~~~ ^  ~~

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index ce432962cd..d5436e523a 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index 2cf0ad5abf..8e15801dbf 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;

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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2023-08-30 12:36 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2023-08-30 12:36 UTC (permalink / raw)
  To: glibc-cvs

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

commit 2e261400d982c5f9ffe4f0e7c9382f9891e18929
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE
    
    Clang warns:
    
      ../sysdeps/posix/fpathconf.c:118:21: error: right side of operator
      converted from negative value to unsigned: -1 to 18446744073709551615
      [-Werror]
      #if _POSIX_VDISABLE == -1
        ~~~~~~~~~~~~~~~ ^  ~~

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index ce432962cd..d5436e523a 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index 2cf0ad5abf..8e15801dbf 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;

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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2023-02-09 19:48 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2023-02-09 19:48 UTC (permalink / raw)
  To: glibc-cvs

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

commit 9e3b7ddec43c5a64fb46ead7e723eb4974bbc0d9
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE
    
    Clang warns:
    
      ../sysdeps/posix/fpathconf.c:118:21: error: right side of operator
      converted from negative value to unsigned: -1 to 18446744073709551615
      [-Werror]
      #if _POSIX_VDISABLE == -1
        ~~~~~~~~~~~~~~~ ^  ~~

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index ce432962cd..d5436e523a 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index 2cf0ad5abf..8e15801dbf 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;

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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2022-10-28 17:41 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-10-28 17:41 UTC (permalink / raw)
  To: glibc-cvs

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

commit 63419fe5ced46a7d18a5daeb26f1fbb868386a36
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE
    
    Clang warns:
    
      ../sysdeps/posix/fpathconf.c:118:21: error: right side of operator
      converted from negative value to unsigned: -1 to 18446744073709551615
      [-Werror]
      #if _POSIX_VDISABLE == -1
        ~~~~~~~~~~~~~~~ ^  ~~

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 4b215e0600..7d5b543e47 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index d414f7a313..54c86f0dfd 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;

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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2022-06-09 21:20 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 21:20 UTC (permalink / raw)
  To: glibc-cvs

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

commit f0eb2304d145f888b63c8cdaf9c5a8afb07ac317
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 4b215e0600..7d5b543e47 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index d414f7a313..54c86f0dfd 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;


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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2022-06-09 13:17 Adhemerval Zanella
  0 siblings, 0 replies; 22+ 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=f0eb2304d145f888b63c8cdaf9c5a8afb07ac317

commit f0eb2304d145f888b63c8cdaf9c5a8afb07ac317
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 4b215e0600..7d5b543e47 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index d414f7a313..54c86f0dfd 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;


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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2022-06-03 14:06 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-06-03 14:06 UTC (permalink / raw)
  To: glibc-cvs

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

commit 2ff5dfb27fd2d441375a97749c86794849c403fe
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 4b215e0600..7d5b543e47 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index d414f7a313..54c86f0dfd 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;


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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2022-05-13 14:20 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-05-13 14:20 UTC (permalink / raw)
  To: glibc-cvs

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

commit 655233a61ef92b7f74576c0a0a42c96afd95d409
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 216f2a9c8d..69a5cd147f 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index d414f7a313..54c86f0dfd 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;


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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2022-05-12 19:34 Adhemerval Zanella
  0 siblings, 0 replies; 22+ 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=35825222677bb8b80a8df39bf903a27e20a9829a

commit 35825222677bb8b80a8df39bf903a27e20a9829a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 216f2a9c8d..69a5cd147f 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index d414f7a313..54c86f0dfd 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;


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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2022-05-10 18:24 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-05-10 18:24 UTC (permalink / raw)
  To: glibc-cvs

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

commit 5d5bb45c551157d5443fee30d116f3c142db78a4
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 216f2a9c8d..69a5cd147f 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index d414f7a313..54c86f0dfd 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;


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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2022-04-29 14:04 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-04-29 14:04 UTC (permalink / raw)
  To: glibc-cvs

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

commit 8eae208c85e1995f18caa59216a60dc7fdcaae2a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 216f2a9c8d..69a5cd147f 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index d414f7a313..54c86f0dfd 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;


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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2022-04-04 12:55 Adhemerval Zanella
  0 siblings, 0 replies; 22+ 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=c1440c8d23e5d35e03deb64183456599b9866a2e

commit c1440c8d23e5d35e03deb64183456599b9866a2e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 216f2a9c8d..69a5cd147f 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index d414f7a313..54c86f0dfd 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;


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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2022-03-31 19:07 Adhemerval Zanella
  0 siblings, 0 replies; 22+ 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=f0ec47c13a7871de011a24434c54ee79292d718e

commit f0ec47c13a7871de011a24434c54ee79292d718e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 216f2a9c8d..69a5cd147f 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index d414f7a313..54c86f0dfd 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;


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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2022-03-29 20:30 Adhemerval Zanella
  0 siblings, 0 replies; 22+ 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=0beb325c75cfef8b2d0db54b20ca1938cce43439

commit 0beb325c75cfef8b2d0db54b20ca1938cce43439
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 216f2a9c8d..69a5cd147f 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index d414f7a313..54c86f0dfd 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;


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

* [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE
@ 2022-03-16 18:04 Adhemerval Zanella
  0 siblings, 0 replies; 22+ messages in thread
From: Adhemerval Zanella @ 2022-03-16 18:04 UTC (permalink / raw)
  To: glibc-cvs

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

commit a0bdfed04cb897804a9e7a516ac34e2343bb10ad
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 15 18:09:10 2022 -0300

    posix: Use unsigned to check for _POSIX_VDISABLE

Diff:
---
 sysdeps/posix/fpathconf.c | 2 +-
 sysdeps/posix/pathconf.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 216f2a9c8d..69a5cd147f 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -115,7 +115,7 @@ __fpathconf (int fd, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;
diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c
index d414f7a313..54c86f0dfd 100644
--- a/sysdeps/posix/pathconf.c
+++ b/sysdeps/posix/pathconf.c
@@ -113,7 +113,7 @@ __pathconf (const char *path, int name)
       return _POSIX_NO_TRUNC;
 
     case _PC_VDISABLE:
-#if _POSIX_VDISABLE == -1
+#if _POSIX_VDISABLE == -1U
 # error "Invalid value for _POSIX_VDISABLE"
 #endif
       return _POSIX_VDISABLE;


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

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

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 12:59 [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE Adhemerval Zanella
  -- strict thread matches above, loose matches on Subject: below --
2024-04-17 20:06 Adhemerval Zanella
2024-04-02 15:53 Adhemerval Zanella
2024-02-09 17:31 Adhemerval Zanella
2024-02-07 14:06 Adhemerval Zanella
2024-01-29 17:56 Adhemerval Zanella
2023-12-21 18:53 Adhemerval Zanella
2023-09-28 17:51 Adhemerval Zanella
2023-08-30 12:36 Adhemerval Zanella
2023-02-09 19:48 Adhemerval Zanella
2022-10-28 17:41 Adhemerval Zanella
2022-06-09 21:20 Adhemerval Zanella
2022-06-09 13:17 Adhemerval Zanella
2022-06-03 14:06 Adhemerval Zanella
2022-05-13 14:20 Adhemerval Zanella
2022-05-12 19:34 Adhemerval Zanella
2022-05-10 18:24 Adhemerval Zanella
2022-04-29 14:04 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-16 18:04 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).