emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 37889523278: Add new `swap` macro and use it


From: Gregory Heytings
Subject: Re: master 37889523278: Add new `swap` macro and use it
Date: Sat, 27 Jan 2024 01:27:06 +0000


As regards __typeof__, I recall a comment in a GLib header to the effect that it was unusable under compilers older than GCC 4.8, so we should also avoid it in the PGTK port.

Which GLib header was that?

/usr/include/glib-2.0/glib/glib-typeof.h.


That information is completely irrelevant in the matter at hand. If, instead of throwing it in this discussion, and expecting someone else to debunk it, you had taken the time to check what the words "We can only use __typeof__ on GCC >= 4.8" in that header mean, you would have seen that:

- 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".

Much ado about nothing, again.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]