emacs-devel
[Top][All Lists]
Advanced

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

Re: pdumper on Solaris 10


From: Paul Eggert
Subject: Re: pdumper on Solaris 10
Date: Tue, 17 Dec 2024 13:14:34 -0800
User-agent: Mozilla Thunderbird

On 2024-12-17 12:19, Eli Zaretskii wrote:
why doesn't the cast to mps_addr_t work to avoid the warning?
mps_addr_t is 'void *', a 32-bit pointer.  Is this something specific
to pointers, while casting to a 32-bit integer doesn't trigger the
warnings?

Yes, the idea is for GCC to diagnose casts between pointers and wrong-sized integers.


what is the rationale for warning about pointers,
but not about integers?

Warning about integer conversion is controlled by -Wconversion. However, that GCC option generates far too many false positives for useful code, so I don't recommend it. I just tried -Wconversion on Emacs master and got over 10,000 bogus warnings. Changing Emacs to pacify -Wconversion would cause more trouble than it'd cure.



reply via email to

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