[Top][All Lists]

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

bug#23771: Eliminating compiler warnings

From: Paul Eggert
Subject: bug#23771: Eliminating compiler warnings
Date: Thu, 16 Jun 2016 08:50:16 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0

Eli Zaretskii wrote:
One way of fixing this is to add those braces.

The accepted way to fix this is to use a do-while. See, e.g., the definition of DEFVAR_LISP in lisp.h.

The warning is helpful to catch stray semicolons, e.g., 'if (n == 0); ...'.

reply via email to

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