On Wed, Jun 16, 2010 at 3:07 PM, Øyvind Harboe <oyvind.har...@zylin.com> wrote: > I've made -Wshadow default. > > Lots of tiny fixes and, no, I haven't regression tested > them all. >
Now it failed to be built under Cygwin. make[5]: Entering directory `/home/mcuee/mcu/openocd/git/build/src/helper' /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../../openocd/src/helper -I../.. -I../../../openocd/src -I../../src -D PKGDATADIR=\"/usr/local/share/openocd\" -g -O2 -Wall -Wstrict-prototypes -Wfor mat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-a lign -Wredundant-decls -Werror -MT libhelper_la-binarybuffer.lo -MD -MP -MF .dep s/libhelper_la-binarybuffer.Tpo -c -o libhelper_la-binarybuffer.lo `test -f 'bin arybuffer.c' || echo '../../../openocd/src/helper/'`binarybuffer.c libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../../openocd/src/hel per -I../.. -I../../../openocd/src -I../../src -DPKGDATADIR=\"/usr/local/share/o penocd\" -g -O2 -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wn o-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -M T libhelper_la-binarybuffer.lo -MD -MP -MF .deps/libhelper_la-binarybuffer.Tpo - c ../../../openocd/src/helper/binarybuffer.c -o libhelper_la-binarybuffer.o In file included from ../../../openocd/src/helper/command.h:35, from ../../../openocd/src/helper/log.h:29, from ../../../openocd/src/helper/binarybuffer.c:27: ../../../openocd/src/helper/jim.h:812: warning: declaration of 'index' shadows a global declaration /usr/include/string.h:56: warning: shadowed declaration is here ../../../openocd/src/helper/jim.h:820: warning: declaration of 'index' shadows a global declaration /usr/include/string.h:56: warning: shadowed declaration is here make[5]: *** [libhelper_la-binarybuffer.lo] Error 1 In file included from ../../../openocd/src/helper/jim.c:97: ../../../openocd/src/helper/jim.h:812: warning: declaration of 'index' shadows a global declaration /usr/include/string.h:56: warning: shadowed declaration is here ../../../openocd/src/helper/jim.h:820: warning: declaration of 'index' shadows a global declaration /usr/include/string.h:56: warning: shadowed declaration is here ../../../openocd/src/helper/jim.c: In function `Jim_LoadLibrary': ../../../openocd/src/helper/jim.c:7925: warning: declaration of 'interp' shadows a parameter ../../../openocd/src/helper/jim.c:7920: warning: shadowed declaration is here In file included from ../../../openocd/src/helper/command.h:35, from ../../../openocd/src/target/arm.h:29, from ../../../openocd/src/target/etm.c:24: ../../../openocd/src/helper/jim.h:812: warning: declaration of 'index' shadows a global declaration /usr/include/string.h:56: warning: shadowed declaration is here ../../../openocd/src/helper/jim.h:820: warning: declaration of 'index' shadows a global declaration /usr/include/string.h:56: warning: shadowed declaration is here In file included from ../../../openocd/src/target/image.h:29, from ../../../openocd/src/target/etm.c:27: ../../../openocd/src/helper/fileio.h:58: warning: declaration of 'access' shadows a global declaration /usr/include/sys/unistd.h:19: warning: shadowed declaration is here In file included from ../../../openocd/src/target/mips32_pracc.h:26, from ../../../openocd/src/target/mips32.h:27, from ../../../openocd/src/target/mips32_pracc.c:77: ../../../openocd/src/target/mips_ejtag.h:140: warning: declaration of 'write' shadows a global declaration /usr/include/sys/unistd.h:183: warning: shadowed declaration is here In file included from ../../../openocd/src/target/mips32.h:27, from ../../../openocd/src/target/mips32_pracc.c:77: ../../../openocd/src/target/mips32_pracc.h:48: warning: declaration of 'write' shadows a global declaration /usr/include/sys/unistd.h:183: warning: shadowed declaration is here ... -- Xiaofan http://mcuee.blogspot.com _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development