Re: clang dangling else help

2012-09-27 Thread Anton Shterenlikht
From: Dimitry Andric 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] >

Re: clang dangling else help

2012-09-27 Thread Dimitry Andric
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 fat

clang dangling else help

2012-09-27 Thread Anton Shterenlikht
I'm not great with C. 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. I think I understand what's going on, but wanted someb