bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#23640: 25.1.50; Getting rid of compiler warnings


From: Paul Eggert
Subject: bug#23640: 25.1.50; Getting rid of compiler warnings
Date: Mon, 6 Jun 2016 07:45:00 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0

On 06/02/2016 08:35 PM, Richard Stallman wrote:
one single macro UNUSED will work for integers and Lisp_Object

Yes, that works, though UNUSED is a confusing name to attach to a variable, as the variable is actually used. A better name is UNINIT, indicating that the variable is uninitialized. Similarly, NONVOLATILE could indicate that a variable is not volatile, in cases where GCC would otherwise complain. The attached patch would suffice to omit all uses of the IF_LINT macro in the Emacs source, if that's a style you prefer.

Attachment: 0001-Replace-IF_LINT-by-NONVOLATILE-and-UNINIT.patch
Description: Source code patch


reply via email to

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