Date: Thu, 27 Sep 2012 16:21:56 +0100 (BST) From: Anton Shterenlikht <mexas@bristol.ac.uk> To: dimitry@andric.com, mexas@bristol.ac.uk Cc: freebsd-ports@freebsd.org Subject: Re: clang dangling else help Message-ID: <201209271521.q8RFLu7t002608@mech-cluster241.men.bris.ac.uk> In-Reply-To: <50645984.3070208@andric.com>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Dimitry Andric <dimitry@andric.com> On 2012-09-27 14:16, Anton Shterenlikht wrote: > Building my port with clang I get this warning > (gcc doesn't pick this up): > > x11.c:1543:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] > else if (actual_type != None) > ^ > 1 warning generated. If the warning isn't fatal (e.g. you are not using -Werror), and you know the code is right, you could just ignore the warning. Or are you trying to make it warning-free? Yes, would be good to have no warnings. Anyway, this particular one is really worth fixing. Thanks for the clarification. Anton
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209271521.q8RFLu7t002608>