gcc-4.6.3 warned about this one on several occasions: gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" -I./test-tool -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -ggdb3 -O0 -MT test-tool/bin_iscsi_test-0000_testunitready_simple.o -MD -MP -MF test-tool/.deps/bin_iscsi_test-0000_testunitready_simple.Tpo -c -o test-tool/bin_iscsi_test-0000_testunitready_simple.o `test -f 'test-tool/0000_testunitready_simple.c' || echo './'`test-tool/0000_testunitready_simple.c test-tool/0000_testunitready_simple.c: In function 'T0000_testunitready_simple': test-tool/0000_testunitready_simple.c:23:44: warning: declaration of 'initiator' shadows a global declaration [-Wshadow] test-tool/iscsi-test.h:20:20: warning: shadowed declaration is here [-Wshadow] For now the global initiator is renamed to initiatorname1 (and initiator2 is renamed to initiatorname2, respectively), but ultimately the globals should probably go away. While fixing this it also became apparent that initiator-name-2 was parsed into the "initiator" variable as well. Signed-off-by: Arne Redlich <arne.redlich@googlemail.com>
16 KiB
16 KiB