[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 37889523278: Add new `swap` macro and use it
|
From: |
Stefan Kangas |
|
Subject: |
Re: master 37889523278: Add new `swap` macro and use it |
|
Date: |
Sat, 27 Jan 2024 15:56:14 -0800 |
Gregory Heytings <gregory@heytings.org> writes:
> - this is about GCC < 4.8 (ten year old compilers)
>
> - on a specific platform (PowerPC, which is rarely used nowadays)
>
> - on which GCC displays a bogus "value computed is not used" warning (a
> warning, not an error!)
>
> - when __typeof__ is used in a cast operation on the return type of a
> function.
>
> That's a far cry, to say the least, from "__typeof__ is unusable under
> compilers older than GCC 4.8".
This is my conclusion as well. I've spent several hours trying to track
down the actual fix in GCC to get more information about the severity of
the warning, but had to give up because the time I had available ran out.
The reason why GLib introduced their change, AFAICT, was that people
wanted to compile some program depending on it with -Werror.
Based on what I found so far, which honestly wasn't much, I think it's
just a bogus warning, and nothing to worry about. If anyone can provide
more information about this that would point to something more critical,
please do tell.
It also remains to be seen if we will even get that warning in Emacs,
since it might only show up under specific conditions.
- Re: master 37889523278: Add new `swap` macro and use it, (continued)
- Re: master 37889523278: Add new `swap` macro and use it, Po Lu, 2024/01/21
- Re: master 37889523278: Add new `swap` macro and use it, Dmitry Gutov, 2024/01/22
- Re: master 37889523278: Add new `swap` macro and use it, Po Lu, 2024/01/22
- Re: master 37889523278: Add new `swap` macro and use it, Stefan Kangas, 2024/01/25
- Re: master 37889523278: Add new `swap` macro and use it, Po Lu, 2024/01/25
- Re: master 37889523278: Add new `swap` macro and use it, Eli Zaretskii, 2024/01/26
- Re: master 37889523278: Add new `swap` macro and use it, Eli Zaretskii, 2024/01/26
- Re: master 37889523278: Add new `swap` macro and use it, Richard Stallman, 2024/01/18
- Re: master 37889523278: Add new `swap` macro and use it, Po Lu, 2024/01/18
- Re: master 37889523278: Add new `swap` macro and use it, Gregory Heytings, 2024/01/26
- Re: master 37889523278: Add new `swap` macro and use it,
Stefan Kangas <=
- Re: master 37889523278: Add new `swap` macro and use it, Gregory Heytings, 2024/01/27
Re: master 37889523278: Add new `swap` macro and use it, Stefan Kangas, 2024/01/13
Re: master 37889523278: Add new `swap` macro and use it, Stefan Kangas, 2024/01/06