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

Bug#394926: missing brackets around an if clause



Package: ax25-tools
Version: 0.0.8-11
Tags: upstream

You're missing brackets around an if clause.  This normally doesn't
show up during compilation (with -O1 or higher) because strncmp is a
macro in that case, but you can see the failure with -O0 or -Os.

> Automatic build of ax25-tools_0.0.8-11 on coconut0 by sbuild/ia64 0.49
...
> if gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -Os -Wall -MT dmascc_cfg.o -MD -MP -MF ".deps/dmascc_cfg.Tpo" -c -o dmascc_cfg.o dmascc_cfg.c; \
> 	then mv -f ".deps/dmascc_cfg.Tpo" ".deps/dmascc_cfg.Po"; else rm -f ".deps/dmascc_cfg.Tpo"; exit 1; fi
> dmascc_cfg.c: In function 'main':
> dmascc_cfg.c:102: error: expected '(' before 'strncmp'
> dmascc_cfg.c:102: warning: statement with no effect

-- 
Martin Michlmayr
http://www.cyrius.com/



Reply to: