public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] linux: Avoid indirection on operand of type 'void *' for gettimeofday
@ 2023-09-28 17:58 Adhemerval Zanella
0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2023-09-28 17:58 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1ededbacdaeca4f03d790405d1c6a1be0d3fc4a9
commit 1ededbacdaeca4f03d790405d1c6a1be0d3fc4a9
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Sep 26 10:00:51 2022 -0300
linux: Avoid indirection on operand of type 'void *' for gettimeofday
ISO C does not allow and it fixes a clang issue with
-Werror,-Wvoid-ptr-dereference.
Checked on x86_64-linux-gnu.
Diff:
---
sysdeps/unix/sysv/linux/gettimeofday.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/gettimeofday.c b/sysdeps/unix/sysv/linux/gettimeofday.c
index d3afd1a587..0f92b50f82 100644
--- a/sysdeps/unix/sysv/linux/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/gettimeofday.c
@@ -32,7 +32,7 @@ static int
__gettimeofday_syscall (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_SYSCALL_CALL (gettimeofday, tv, tz);
}
@@ -48,7 +48,7 @@ int
__gettimeofday (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* [glibc/azanella/clang] linux: Avoid indirection on operand of type 'void *' for gettimeofday
@ 2024-04-17 20:13 Adhemerval Zanella
0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2024-04-17 20:13 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1eed82b6917bfd26e642b6eaf831d08595cf9cfb
commit 1eed82b6917bfd26e642b6eaf831d08595cf9cfb
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Sep 26 10:00:51 2022 -0300
linux: Avoid indirection on operand of type 'void *' for gettimeofday
ISO C does not allow and it fixes a clang issue with
-Werror,-Wvoid-ptr-dereference.
Checked on x86_64-linux-gnu.
Diff:
---
sysdeps/unix/sysv/linux/gettimeofday.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/gettimeofday.c b/sysdeps/unix/sysv/linux/gettimeofday.c
index 7ab147c614..11d6173ff1 100644
--- a/sysdeps/unix/sysv/linux/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/gettimeofday.c
@@ -32,7 +32,7 @@ static int
__gettimeofday_syscall (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_SYSCALL_CALL (gettimeofday, tv, tz);
}
@@ -48,7 +48,7 @@ int
__gettimeofday (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* [glibc/azanella/clang] linux: Avoid indirection on operand of type 'void *' for gettimeofday
@ 2024-04-02 15:59 Adhemerval Zanella
0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2024-04-02 15:59 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=83c227f66fb6427f7045c65fe61af7ee54d2a0f5
commit 83c227f66fb6427f7045c65fe61af7ee54d2a0f5
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Sep 26 10:00:51 2022 -0300
linux: Avoid indirection on operand of type 'void *' for gettimeofday
ISO C does not allow and it fixes a clang issue with
-Werror,-Wvoid-ptr-dereference.
Checked on x86_64-linux-gnu.
Diff:
---
sysdeps/unix/sysv/linux/gettimeofday.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/gettimeofday.c b/sysdeps/unix/sysv/linux/gettimeofday.c
index 7ab147c614..11d6173ff1 100644
--- a/sysdeps/unix/sysv/linux/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/gettimeofday.c
@@ -32,7 +32,7 @@ static int
__gettimeofday_syscall (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_SYSCALL_CALL (gettimeofday, tv, tz);
}
@@ -48,7 +48,7 @@ int
__gettimeofday (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* [glibc/azanella/clang] linux: Avoid indirection on operand of type 'void *' for gettimeofday
@ 2024-02-09 17:38 Adhemerval Zanella
0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2024-02-09 17:38 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3420e9ac354235757862f685018a86e1315d662e
commit 3420e9ac354235757862f685018a86e1315d662e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Sep 26 10:00:51 2022 -0300
linux: Avoid indirection on operand of type 'void *' for gettimeofday
ISO C does not allow and it fixes a clang issue with
-Werror,-Wvoid-ptr-dereference.
Checked on x86_64-linux-gnu.
Diff:
---
sysdeps/unix/sysv/linux/gettimeofday.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/gettimeofday.c b/sysdeps/unix/sysv/linux/gettimeofday.c
index 7ab147c614..11d6173ff1 100644
--- a/sysdeps/unix/sysv/linux/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/gettimeofday.c
@@ -32,7 +32,7 @@ static int
__gettimeofday_syscall (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_SYSCALL_CALL (gettimeofday, tv, tz);
}
@@ -48,7 +48,7 @@ int
__gettimeofday (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* [glibc/azanella/clang] linux: Avoid indirection on operand of type 'void *' for gettimeofday
@ 2024-02-07 14:13 Adhemerval Zanella
0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2024-02-07 14:13 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=eec55cbe0a53823d5a483b82f5779567cea6f2d3
commit eec55cbe0a53823d5a483b82f5779567cea6f2d3
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Sep 26 10:00:51 2022 -0300
linux: Avoid indirection on operand of type 'void *' for gettimeofday
ISO C does not allow and it fixes a clang issue with
-Werror,-Wvoid-ptr-dereference.
Checked on x86_64-linux-gnu.
Diff:
---
sysdeps/unix/sysv/linux/gettimeofday.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/gettimeofday.c b/sysdeps/unix/sysv/linux/gettimeofday.c
index 7ab147c614..11d6173ff1 100644
--- a/sysdeps/unix/sysv/linux/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/gettimeofday.c
@@ -32,7 +32,7 @@ static int
__gettimeofday_syscall (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_SYSCALL_CALL (gettimeofday, tv, tz);
}
@@ -48,7 +48,7 @@ int
__gettimeofday (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* [glibc/azanella/clang] linux: Avoid indirection on operand of type 'void *' for gettimeofday
@ 2024-01-29 18:03 Adhemerval Zanella
0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2024-01-29 18:03 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=13f04e40ceaadd95e6ad499cc3037848a2c401ec
commit 13f04e40ceaadd95e6ad499cc3037848a2c401ec
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Sep 26 10:00:51 2022 -0300
linux: Avoid indirection on operand of type 'void *' for gettimeofday
ISO C does not allow and it fixes a clang issue with
-Werror,-Wvoid-ptr-dereference.
Checked on x86_64-linux-gnu.
Diff:
---
sysdeps/unix/sysv/linux/gettimeofday.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/gettimeofday.c b/sysdeps/unix/sysv/linux/gettimeofday.c
index 7ab147c614..11d6173ff1 100644
--- a/sysdeps/unix/sysv/linux/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/gettimeofday.c
@@ -32,7 +32,7 @@ static int
__gettimeofday_syscall (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_SYSCALL_CALL (gettimeofday, tv, tz);
}
@@ -48,7 +48,7 @@ int
__gettimeofday (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* [glibc/azanella/clang] linux: Avoid indirection on operand of type 'void *' for gettimeofday
@ 2023-12-21 19:00 Adhemerval Zanella
0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2023-12-21 19:00 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7c8dd2778cd66a63cc31a32c0c471182d6db3b03
commit 7c8dd2778cd66a63cc31a32c0c471182d6db3b03
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Sep 26 10:00:51 2022 -0300
linux: Avoid indirection on operand of type 'void *' for gettimeofday
ISO C does not allow and it fixes a clang issue with
-Werror,-Wvoid-ptr-dereference.
Checked on x86_64-linux-gnu.
Diff:
---
sysdeps/unix/sysv/linux/gettimeofday.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/gettimeofday.c b/sysdeps/unix/sysv/linux/gettimeofday.c
index d3afd1a587..0f92b50f82 100644
--- a/sysdeps/unix/sysv/linux/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/gettimeofday.c
@@ -32,7 +32,7 @@ static int
__gettimeofday_syscall (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_SYSCALL_CALL (gettimeofday, tv, tz);
}
@@ -48,7 +48,7 @@ int
__gettimeofday (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* [glibc/azanella/clang] linux: Avoid indirection on operand of type 'void *' for gettimeofday
@ 2023-08-30 12:42 Adhemerval Zanella
0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2023-08-30 12:42 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1443f898bcbb63b45f28d96fbaee87c32403c19e
commit 1443f898bcbb63b45f28d96fbaee87c32403c19e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Sep 26 10:00:51 2022 -0300
linux: Avoid indirection on operand of type 'void *' for gettimeofday
ISO C does not allow and it fixes a clang issue with
-Werror,-Wvoid-ptr-dereference.
Checked on x86_64-linux-gnu.
Diff:
---
sysdeps/unix/sysv/linux/gettimeofday.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/gettimeofday.c b/sysdeps/unix/sysv/linux/gettimeofday.c
index d3afd1a587..0f92b50f82 100644
--- a/sysdeps/unix/sysv/linux/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/gettimeofday.c
@@ -32,7 +32,7 @@ static int
__gettimeofday_syscall (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_SYSCALL_CALL (gettimeofday, tv, tz);
}
@@ -48,7 +48,7 @@ int
__gettimeofday (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* [glibc/azanella/clang] linux: Avoid indirection on operand of type 'void *' for gettimeofday
@ 2023-02-09 19:54 Adhemerval Zanella
0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2023-02-09 19:54 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9c4b4c1a0a441dcbef1ca825a7d509d7ee0e2f77
commit 9c4b4c1a0a441dcbef1ca825a7d509d7ee0e2f77
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Sep 26 10:00:51 2022 -0300
linux: Avoid indirection on operand of type 'void *' for gettimeofday
ISO C does not allow and it fixes a clang issue with
-Werror,-Wvoid-ptr-dereference.
Checked on x86_64-linux-gnu.
Diff:
---
sysdeps/unix/sysv/linux/gettimeofday.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/gettimeofday.c b/sysdeps/unix/sysv/linux/gettimeofday.c
index d3afd1a587..0f92b50f82 100644
--- a/sysdeps/unix/sysv/linux/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/gettimeofday.c
@@ -32,7 +32,7 @@ static int
__gettimeofday_syscall (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_SYSCALL_CALL (gettimeofday, tv, tz);
}
@@ -48,7 +48,7 @@ int
__gettimeofday (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* [glibc/azanella/clang] linux: Avoid indirection on operand of type 'void *' for gettimeofday
@ 2022-10-28 17:47 Adhemerval Zanella
0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2022-10-28 17:47 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=460a98231b13e31b888bd8d4d5abd28dad3c44d7
commit 460a98231b13e31b888bd8d4d5abd28dad3c44d7
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Sep 26 10:00:51 2022 -0300
linux: Avoid indirection on operand of type 'void *' for gettimeofday
ISO C does not allow and it fixes a clang issue with
-Werror,-Wvoid-ptr-dereference.
Checked on x86_64-linux-gnu.
Diff:
---
sysdeps/unix/sysv/linux/gettimeofday.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/gettimeofday.c b/sysdeps/unix/sysv/linux/gettimeofday.c
index 494065adfb..9dab97f4ef 100644
--- a/sysdeps/unix/sysv/linux/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/gettimeofday.c
@@ -32,7 +32,7 @@ static int
__gettimeofday_syscall (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_SYSCALL_CALL (gettimeofday, tv, tz);
}
@@ -48,7 +48,7 @@ int
__gettimeofday (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* [glibc/azanella/clang] linux: Avoid indirection on operand of type 'void *' for gettimeofday
@ 2022-10-04 13:05 Adhemerval Zanella
0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2022-10-04 13:05 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fe1ad8d6860717ed0fd554b8473b0c84a8210c77
commit fe1ad8d6860717ed0fd554b8473b0c84a8210c77
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Sep 26 10:00:51 2022 -0300
linux: Avoid indirection on operand of type 'void *' for gettimeofday
ISO C does not allow and it fixes a clang issue with
-Werror,-Wvoid-ptr-dereference.
Checked on x86_64-linux-gnu.
Diff:
---
sysdeps/unix/sysv/linux/gettimeofday.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/gettimeofday.c b/sysdeps/unix/sysv/linux/gettimeofday.c
index 494065adfb..9dab97f4ef 100644
--- a/sysdeps/unix/sysv/linux/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/gettimeofday.c
@@ -32,7 +32,7 @@ static int
__gettimeofday_syscall (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_SYSCALL_CALL (gettimeofday, tv, tz);
}
@@ -48,7 +48,7 @@ int
__gettimeofday (struct timeval *restrict tv, void *restrict tz)
{
if (__glibc_unlikely (tz != 0))
- memset (tz, 0, sizeof *tz);
+ memset (tz, 0, sizeof (struct timezone));
return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
}
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-04-17 20:13 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-28 17:58 [glibc/azanella/clang] linux: Avoid indirection on operand of type 'void *' for gettimeofday Adhemerval Zanella
-- strict thread matches above, loose matches on Subject: below --
2024-04-17 20:13 Adhemerval Zanella
2024-04-02 15:59 Adhemerval Zanella
2024-02-09 17:38 Adhemerval Zanella
2024-02-07 14:13 Adhemerval Zanella
2024-01-29 18:03 Adhemerval Zanella
2023-12-21 19:00 Adhemerval Zanella
2023-08-30 12:42 Adhemerval Zanella
2023-02-09 19:54 Adhemerval Zanella
2022-10-28 17:47 Adhemerval Zanella
2022-10-04 13:05 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).