GNU bug report logs - #23771
Eliminating compiler warnings

Previous Next

Package: emacs;

Reported by: Ken Brown <kbrown <at> cornell.edu>

Date: Wed, 15 Jun 2016 02:05:01 UTC

Severity: wishlist

Tags: patch

Done: Ken Brown <kbrown <at> cornell.edu>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 23771 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli Zaretskii <eliz <at> gnu.org>, Ken Brown <kbrown <at> cornell.edu>
Cc: 23771 <at> debbugs.gnu.org
Subject: Re: bug#23771: Eliminating compiler warnings
Date: Thu, 16 Jun 2016 08:50:16 -0700
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); ...'.




This bug report was last modified 8 years and 336 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.