=> Bootstrap dependency digest>=20010302: found digest-20190127 ===> Skipping vulnerability checks. WARNING: No /opt/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for istgt-20150713nb1 --- all --- for subdir in src etc doc; do (cd $subdir; /opt/pkg/bin/bmake all) || exit $?; done --- stamp-depend --- --- istgt.o --- --- istgt_iscsi.o --- --- istgt_iscsi_param.o --- --- istgt_lu.o --- --- istgt_lu_disk.o --- --- istgt_lu_disk_vbox.o --- --- istgt_lu_dvd.o --- --- stamp-depend --- /opt/pkg/bin/bmake depend --- istgt.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt.o istgt.c --- istgt_iscsi.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_iscsi.o istgt_iscsi.c --- istgt_iscsi_param.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_iscsi_param.o istgt_iscsi_param.c --- istgt_lu.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_lu.o istgt_lu.c --- istgt_lu_disk.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_lu_disk.o istgt_lu_disk.c --- istgt_lu_dvd.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_lu_dvd.o istgt_lu_dvd.c --- istgt_lu_disk_vbox.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_lu_disk_vbox.o istgt_lu_disk_vbox.c --- stamp-depend --- --- depend --- if [ "x/usr/bin/mkdep" != "x" ]; then /usr/bin/mkdep -MM -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. istgt.c istgt_iscsi.c istgt_iscsi_param.c istgt_lu.c istgt_lu_disk.c istgt_lu_disk_vbox.c istgt_lu_dvd.c istgt_lu_tape.c istgt_lu_pass.c istgt_lu_ctl.c istgt_log.c istgt_conf.c istgt_sock.c istgt_misc.c istgt_queue.c istgt_crc32c.c istgt_md5.c; fi --- istgt_iscsi.o --- istgt_iscsi.c:840:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] opcode = BGET8W(&rsp[0], 5, 6); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:1192:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] opcode = BGET8W(&cp[0], 5, 6); ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:704:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] evpd = BGET8(&cdb[1], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:710:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:711:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:711:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_iscsi.o --- istgt_iscsi.c:2167:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&rsp[1], 1, 7, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:2167:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&rsp[1], 1, 7, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:735:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:736:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:736:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:758:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:759:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:759:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:771:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:772:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:772:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:774:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 0, 7, 1); /* PIV=0 */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:775:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_LOGICAL_UNIT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:775:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_LOGICAL_UNIT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:776:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_NAA, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:776:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_NAA, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:798:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:799:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:799:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_iscsi.o --- istgt_iscsi.c:2362:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] T_bit = BGET8(&cp[1], 7); ^~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:2363:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] C_bit = BGET8(&cp[1], 6); ^~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:801:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 0, 7, 1); /* PIV=0 */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_iscsi.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:2364:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] CSG = BGET8W(&cp[1], 3, 2); ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:2365:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- istgt_lu_dvd.c:802:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_LOGICAL_UNIT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:802:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- --- istgt.o --- istgt.c:2824:8: warning: 'daemon' is deprecated: first deprecated in macOS 10.5 - Use posix_spawn APIs instead. [-Wdeprecated-declarations] rc = daemon(0, 0); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:292:6: note: 'daemon' has been explicitly marked deprecated here int daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED; ^ --- istgt_iscsi.o --- NSG = BGET8W(&cp[1], 1, 2); ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:2955:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], T_bit, 7); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_LOGICAL_UNIT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:803:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_T10_VENDOR_ID, 3, 4); --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:2955:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], T_bit, 7); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:803:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_T10_VENDOR_ID, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:2956:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], C_bit, 6); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:829:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], SPC_PROTOCOL_IDENTIFIER_ISCSI, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:2956:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], C_bit, 6); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:830:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_iscsi.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:2957:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&rsp[1], CSG, 3, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:830:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_iscsi.o --- istgt_iscsi.c:2957:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&rsp[1], CSG, 3, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:2958:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&rsp[1], NSG, 1, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ^ istgt_lu_dvd.c:832:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 1, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:833:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_DEVICE, 5, 2); --- istgt_iscsi.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:2958:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&rsp[1], NSG, 1, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:833:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_DEVICE, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3047:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] I_bit = BGET8(&cp[0], 7); ^~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:834:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_SCSI_NAME, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_iscsi.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:3048:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] F_bit = BGET8(&cp[1], 7); ^~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:3049:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] C_bit = BGET8(&cp[1], 6); ^~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' --- istgt_lu_disk.o --- istgt_lu_disk.c:1113:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] evpd = BGET8(&cdb[1], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:1119:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:834:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_SCSI_NAME, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_tape.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_lu_tape.o istgt_lu_tape.c --- istgt_iscsi.o --- #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:3151:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], F_bit, 7); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_disk.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1120:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:851:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], SPC_PROTOCOL_IDENTIFIER_ISCSI, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3151:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], F_bit, 7); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1120:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:852:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3152:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], C_bit, 6); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- istgt_lu_disk.c:1150:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1151:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ^ istgt_lu_dvd.c:852:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_iscsi.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3152:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], C_bit, 6); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1151:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- istgt_lu_dvd.c:854:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 1, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:855:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_iscsi.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3221:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] reason = BGET8W(&cp[1], 6, 7); ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:3271:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&rsp[1], 1, 7, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1183:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:855:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_iscsi.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3271:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&rsp[1], 1, 7, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1184:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:856:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_SCSI_NAME, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3437:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], F_bit, 7); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:856:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_SCSI_NAME, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3437:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], F_bit, 7); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:873:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], SPC_PROTOCOL_IDENTIFIER_ISCSI, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3438:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], 0, 6); // A_bit Acknowledge ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:874:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3438:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], 0, 6); // A_bit Acknowledge ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- ^ istgt_lu_dvd.c:874:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3440:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], O_bit, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- istgt_lu_dvd.c:876:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 1, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:877:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3440:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], O_bit, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:877:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3441:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], U_bit, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:878:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_RELATIVE_TARGET_PORT, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3441:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], U_bit, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:878:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_RELATIVE_TARGET_PORT, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3443:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], 0, 2); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:902:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], SPC_PROTOCOL_IDENTIFIER_ISCSI, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3443:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], 0, 2); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:903:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3444:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], 0, 1); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- ^ istgt_lu_dvd.c:903:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3444:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], 0, 1); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:905:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 1, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:906:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3446:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], S_bit, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:906:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3446:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], S_bit, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:907:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_TARGET_PORT_GROUP, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:907:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_TARGET_PORT_GROUP, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:929:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], SPC_PROTOCOL_IDENTIFIER_ISCSI, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) --- istgt_lu_disk.o --- istgt_lu_disk.c:1184:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:930:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:930:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:932:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 1, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:933:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:933:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:934:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_LOGICAL_UNIT_GROUP, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:934:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_LOGICAL_UNIT_GROUP, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:960:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:961:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:961:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:986:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:987:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:987:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1022:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1023:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1023:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1034:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0x3f, 5, 6); /* all page code */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1039:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[2], 0, 7); /* own copy */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1040:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[2], 0x00, 1, 2); /* Shared */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_iscsi.o --- istgt_iscsi.c:3529:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] I_bit = BGET8(&cp[0], 6); ^~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:3530:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] F_bit = BGET8(&cp[1], 7); ^~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1196:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1057:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); --- istgt_iscsi.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:3531:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] R_bit = BGET8(&cp[1], 6); ^~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1197:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1058:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_iscsi.o --- ~~~~ ^ istgt_iscsi.c:3532:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] W_bit = BGET8(&cp[1], 5); ^~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:3533:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] Attr_bit = BGET8W(&cp[1], 2, 3); ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1197:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_lu_dvd.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1058:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_iscsi.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:3766:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], 1, 7); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_lu_disk.o --- ^ istgt_lu_disk.c:1199:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 0, 7, 1); /* PIV=0 */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1200:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_LOGICAL_UNIT, 5, 2); --- istgt_lu_dvd.o --- ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1097:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp2[0], SPC_PROTOCOL_IDENTIFIER_ISCSI, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_iscsi.o --- ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3766:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], 1, 7); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1200:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_LOGICAL_UNIT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- istgt_lu_dvd.c:1098:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp2[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1098:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_iscsi.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3767:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], o_bit, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1201:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_NAA, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- BDADD8W(&cp2[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1100:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp2[1], 1, 7, 1); /* PIV */ --- istgt_iscsi.o --- ^ istgt_iscsi.c:3767:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], o_bit, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1201:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_NAA, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1101:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp2[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_iscsi.o --- istgt_iscsi.c:3768:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], u_bit, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3768:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1223:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1101:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp2[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_iscsi.o --- BDADD8(&rsp[1], u_bit, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3769:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], O_bit, 2); --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1224:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1102:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp2[1], SPC_VPD_IDENTIFIER_TYPE_SCSI_NAME, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_iscsi.o --- ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3769:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], O_bit, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_disk.o --- istgt_lu_disk.c:1224:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1102:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp2[1], SPC_VPD_IDENTIFIER_TYPE_SCSI_NAME, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_iscsi.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3770:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], U_bit, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1139:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_iscsi.o --- ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- istgt_lu_dvd.c:1140:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1140:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1142:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[1], rmb, 7, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1147:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[3], 2, 3, 4); /* format 2 */ ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1148:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[1], 1, 4); /* hierarchical support */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1148:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[1], 1, 4); /* hierarchical support */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1267:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[0], 1, 7); /* PS */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1267:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_iscsi.o --- istgt_iscsi.c:3770:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- BDADD8(&cp[0], 1, 7); /* PS */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1270:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 2); /* WCE */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1270:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 2); /* WCE */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1271:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 0); /* RCD */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1271:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 0); /* RCD */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1275:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 2); /* WCE */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1275:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 2); /* WCE */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_iscsi.o --- BDADD8(&rsp[1], U_bit, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1278:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 2); /* WCE=1 */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1278:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 2); /* WCE=1 */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1280:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 0, 2); /* WCE=0 */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1280:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 0, 2); /* WCE=0 */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1283:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 0); /* RCD=1 */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1283:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 0); /* RCD=1 */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1285:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 0, 0); /* RCD=0 */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1285:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 0, 0); /* RCD=0 */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1362:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 3); /* DVD-ROM read */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1362:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 3); /* DVD-ROM read */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_iscsi.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_iscsi.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1226:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 0, 7, 1); /* PIV=0 */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1227:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_LOGICAL_UNIT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1227:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_LOGICAL_UNIT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1228:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_T10_VENDOR_ID, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1228:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_T10_VENDOR_ID, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- istgt_lu_dvd.c:1430:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[2], 1, 7); /* WP */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_pass.o --- --- istgt_iscsi.o --- istgt_iscsi.c:3890:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], 1, 7); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3890:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1259:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], SPC_PROTOCOL_IDENTIFIER_ISCSI, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1260:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- istgt_lu_dvd.c:1430:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[2], 1, 7); /* WP */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_iscsi.o --- BDADD8(&rsp[1], 1, 7); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3891:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], o_bit, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- BDADD8W(&cp[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1260:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:1507:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[3], 1, 7); /* WP */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_iscsi.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3891:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], o_bit, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1262:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 1, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_iscsi.o --- ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3892:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], u_bit, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1263:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_DEVICE, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_lu_dvd.o --- istgt_lu_dvd.c:1514:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&data[4], 1, 1); /* Long LBA */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1516:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&data[4], 0, 1); /* Short LBA */ --- istgt_iscsi.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3892:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], u_bit, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1263:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_DEVICE, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1608:7: warning: shifting a negative signed value is undefined [-Wshift-negative-value] ps = BGET8(&data[0], 7); ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_iscsi.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3893:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], O_bit, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1264:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_SCSI_NAME, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1609:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] spf = BGET8(&data[0], 6); ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_iscsi.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3893:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], O_bit, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- istgt_lu_disk.c:1264:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_SCSI_NAME, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1281:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- ~~~~ ^ istgt_lu_dvd.c:1647:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] wce = BGET8(&data[2], 2); /* WCE */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1648:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] rcd = BGET8(&data[2], 0); /* RCD */ ^~~~~~~~~~~~~~~~~~ --- istgt_iscsi.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3894:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], U_bit, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- BDSET8W(&cp[0], SPC_PROTOCOL_IDENTIFIER_ISCSI, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1282:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_iscsi.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3894:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], U_bit, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1282:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_iscsi.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:3955:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] I_bit = BGET8(&cp[0], 6); ^~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) --- istgt_lu_disk.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1284:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 1, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:3956:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] function = BGET8W(&cp[1], 6, 7); ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:4077:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], 1, 7); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1285:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:1698:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[2], 0, 5, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_pass.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_lu_pass.o istgt_lu_pass.c --- istgt_iscsi.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:4077:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], 1, 7); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- istgt_lu_disk.c:1285:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1286:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_iscsi.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_SCSI_NAME, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1286:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_SCSI_NAME, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1303:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], SPC_PROTOCOL_IDENTIFIER_ISCSI, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1304:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1304:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:1699:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1306:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 1, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1307:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1307:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1308:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_RELATIVE_TARGET_PORT, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1308:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_RELATIVE_TARGET_PORT, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- BSET8(&data[2], 1); /* Persistent=1 */ ^~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1332:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], SPC_PROTOCOL_IDENTIFIER_ISCSI, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1333:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1333:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1335:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 1, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1336:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' --- istgt_lu_disk.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1336:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1337:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_TARGET_PORT_GROUP, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1337:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_TARGET_PORT_GROUP, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1359:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], SPC_PROTOCOL_IDENTIFIER_ISCSI, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1360:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1360:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1362:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 1, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1363:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1363:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1364:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_LOGICAL_UNIT_GROUP, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1364:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_LOGICAL_UNIT_GROUP, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1390:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:1700:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[2], 0); /* Current=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1708:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&cp[2], 0); /* CurrentP(0)=1 */ ^~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' --- istgt_iscsi.o --- istgt_iscsi.c:4137:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] I_bit = BGET8(&cp[0], 6); ^~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:4219:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], 1, 7); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1391:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1717:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_iscsi.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- istgt_lu_disk.c:1391:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1405:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- BSET8(&cp[2], 0); /* CurrentP(0)=1 */ ^~~~~~~~~~~~~~~~ --- istgt_iscsi.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- BDADD8(&data[5], 1, 2); /* HEADSUP */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1405:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[5], 1, 2); /* HEADSUP */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1407:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_iscsi.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- BDADD8(&data[5], 1, 0); /* SIMPSUP */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1407:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_iscsi.o --- istgt_iscsi.c:4219:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- BDADD8(&data[5], 1, 0); /* SIMPSUP */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1421:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_iscsi.o --- BDADD8(&rsp[1], 1, 7); ^~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_iscsi.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1422:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1730:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[2], 0x01, 5, 4); /* MMC4 */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1422:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1731:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[2], 1); /* Persistent=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1732:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[2], 0); /* Current=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1738:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[8], 0); /* DBE=0*/ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:58: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1738:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[8], 0); /* DBE=0*/ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:71: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ~~~~~~~~~~~~~~ ^ istgt_lu_dvd.c:1748:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- BDSET8W(&data[2], 0x01, 5, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1749:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[2], 1); /* Persistent=1 */ ^~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1457:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_dvd.o --- ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:1750:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1458:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- BSET8(&data[2], 0); /* Current=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1754:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[4], 0x01, 7, 3); /* Tray type loading mechanism */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))<> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- istgt_lu_disk.c:1458:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1755:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[4], 3); /* eject via START/STOP YES */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_iscsi.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1469:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0x3f, 5, 6); /* all page code */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_lu_dvd.o --- #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1756:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[4], 0); /* locking YES */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ^ istgt_lu_disk.c:1474:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[2], 0, 7); /* own copy */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1475:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- istgt_lu_dvd.c:1766:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[2], 0x00, 5, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1767:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[2], 1); /* Persistent=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) --- istgt_lu_disk.o --- BDADD8W(&cp[2], 0x00, 1, 2); /* Shared */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1475:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[2], 0x00, 1, 2); /* Shared */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1768:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[2], 0); /* Current=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1776:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[10], 0); /* PP=0 */ ^~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:58: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1776:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[10], 0); /* PP=0 */ ^~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1492:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:133:71: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ~~~~~~~~~~~~~~ ^ istgt_lu_dvd.c:1786:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[2], 0x00, 5, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_iscsi.o --- istgt_iscsi.c:4569:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], 1, 7); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:4569:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1493:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:1787:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[2], 1); /* Persistent=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1788:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[2], 0); /* Current=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) --- istgt_iscsi.o --- BDADD8(&rsp[1], 1, 7); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- istgt_lu_disk.c:1493:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1532:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1799:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[2], 0x02, 5, 4); /* MMC4 */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- BDSET8W(&cp2[0], SPC_PROTOCOL_IDENTIFIER_ISCSI, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1533:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp2[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1800:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[2], 1); /* Persistent=0 */ ^~~~~~~~~~~~~~~~~~ --- istgt_iscsi.o --- istgt_iscsi.c:4767:16: warning: shifting a negative signed value is undefined [-Wshift-negative-value] immediate = BGET8W(&data_pdu.bhs.opcode, 6, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:4768:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] opcode = BGET8W(&data_pdu.bhs.opcode, 5, 6); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1533:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp2[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:58: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1800:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[2], 1); /* Persistent=0 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:71: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) --- istgt_iscsi.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:4771:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] F_bit = BGET8(&cp[1], 7); ^~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1535:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp2[1], 1, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ~~~~~~~~~~~~~~ ^ istgt_lu_dvd.c:1802:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[2], 0); /* Current=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1804:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[2], 0); /* Current=0 */ ^~~~~~~~~~~~~~~~~~ --- istgt_iscsi.o --- istgt_iscsi.c:4942:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] F_bit = BGET8(&cp[1], 7); ^~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:4949:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] F_bit = BGET8(&cp[1], 7); ^~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1536:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp2[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_lu_dvd.o --- ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:58: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1804:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[2], 0); /* Current=0 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:71: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) --- istgt_iscsi.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ^ --- istgt_lu_dvd.o --- ~~~~~~~~~~~~~~ ^ istgt_lu_dvd.c:1809:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[4], 7); /* not support DAP */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:58: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1809:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[4], 7); /* not support DAP */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:71: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ~~~~~~~~~~~~~~ ^ istgt_lu_dvd.c:1810:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[4], 1); /* not support C2 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:58: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1810:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[4], 1); /* not support C2 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:71: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ~~~~~~~~~~~~~~ ^ istgt_lu_dvd.c:1811:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[4], 0); /* not support CD-Text */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:58: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1811:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[4], 0); /* not support CD-Text */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:71: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ~~~~~~~~~~~~~~ ^ istgt_lu_dvd.c:1821:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[2], 0x00, 5, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1822:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[2], 1); /* Persistent=0 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:58: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- istgt_lu_disk.c:1536:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp2[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1537:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1822:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- BDADD8W(&cp2[1], SPC_VPD_IDENTIFIER_TYPE_SCSI_NAME, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1537:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp2[1], SPC_VPD_IDENTIFIER_TYPE_SCSI_NAME, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1565:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_dvd.o --- BCLR8(&data[2], 1); /* Persistent=0 */ ^~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1566:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1566:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:71: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ~~~~~~~~~~~~~~ ^ istgt_lu_dvd.c:1824:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[2], 0); /* Current=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1826:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[2], 0); /* Current=0 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:58: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:1826:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BCLR8(&data[2], 0); /* Current=0 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:139:21: note: expanded from macro 'BCLR8' #define BCLR8(B,N) (BCLR8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:133:71: note: expanded from macro 'BCLR8W' #define BCLR8W(B,N,W) (*((uint8_t *)(B)) &= (uint8_t) (~(BMASKW((W))) << BSHIFTNW((N),(W)))) ~~~~~~~~~~~~~~ ^ --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_iscsi.o --- istgt_iscsi.c:5001:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&rsp[1], 1, 7); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:5001:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1574:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&data[4], 0, 0); /* support zero length in WRITE SAME */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:1872:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] if (BGET8(&cp[2], 0) == 1) { ^~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_iscsi.o --- BDADD8(&rsp[1], 1, 7); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_iscsi.c:5037:14: warning: shifting a negative signed value is undefined [-Wshift-negative-value] immediate = BGET8W(&conn->pdu.bhs.opcode, 6, 1); --- istgt_lu_disk.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1622:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[32], 0, 7); /* not valid ALIGNMENT */ ^~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_iscsi.o --- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_iscsi.c:5038:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] opcode = BGET8W(&conn->pdu.bhs.opcode, 5, 6); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1622:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[32], 0, 7); /* not valid ALIGNMENT */ ^~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1635:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1636:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1636:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_iscsi.o --- istgt_iscsi.c:5706:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] opcode = BGET8W(&conn->pdu.bhs.opcode, 5, 6); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1660:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[7], spec->lu->lun[spec->lun].formfactor, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1922:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0x00, 3, 4); /* NoChg */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_disk.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1675:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1676:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1686:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&data[5], 0, 0); ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1711:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1712:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- BDSET8(&cp[1], 0, 7); /* not prevented */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' --- istgt_lu_disk.o --- BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1712:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1925:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], 0, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1714:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[1], rmb, 7, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1719:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[3], 2, 3, 4); /* format 2 */ ^~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1925:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], 0, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1720:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[1], 1, 4); /* hierarchical support */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1720:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[1], 1, 4); /* hierarchical support */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1728:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[5], 0x00, 5, 2); /* Not support TPGS */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1728:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[5], 0x00, 5, 2); /* Not support TPGS */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1933:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[2], 0x02, 2, 3); /* Notification Class */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1935:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1734:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[6], 1, 4, 1); /* MULTIP */ ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_lu_dvd.o --- BDSET8W(&cp[0], 0x00, 3, 4); /* NoChg */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1947:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[2], 0x03, 2, 3); /* Notification Class */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_lu_dvd.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- ^ istgt_lu_disk.c:1738:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[7], 1, 1); /* CMDQUE */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1738:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[7], 1, 1); /* CMDQUE */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- istgt_lu_disk.c:1869:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[0], 1, 7); /* PS */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1949:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0x00, 3, 4); /* NoChg */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1951:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[1], 0, 7); /* not prevented */ --- istgt_lu_disk.o --- istgt_lu_disk.c:1869:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[0], 1, 7); /* PS */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1952:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], 0, 3, 4); /* Ready */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- istgt_lu_disk.c:1872:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 2); /* WCE */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1952:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], 0, 3, 4); /* Ready */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_disk.o --- istgt_lu_disk.c:1872:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 2); /* WCE */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1960:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[2], 0x04, 2, 3); /* Notification Class */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1873:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 0); /* RCD */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- istgt_lu_disk.c:1877:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 2); /* WCE */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1877:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 2); /* WCE */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- istgt_lu_dvd.c:1970:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0x02, 3, 4); /* NewMedia */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1973:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[1], 1, 1); /* media present */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1884:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 2); /* WCE=1 */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_lu_dvd.o --- ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1974:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 0, 0); /* tray close */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) --- istgt_lu_disk.o --- ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1884:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 2); /* WCE=1 */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_lu_dvd.o --- ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1974:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 0, 0); /* tray close */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1886:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 0, 2); /* WCE=0 */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1977:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0x03, 3, 4); /* MediaRemoval */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1980:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[1], 0, 1); /* media absent */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1890:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 0); /* RCD=1 */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:1892:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 0, 0); /* RCD=0 */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- ^ istgt_lu_disk.c:1892:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 0, 0); /* RCD=0 */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1981:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 1, 0); /* tray open */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1981:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 1, 0); /* tray open */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1987:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0x01, 3, 4); /* EjectRequest */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1990:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[1], 0, 1); /* media absent */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' --- istgt_lu_disk.o --- istgt_lu_disk.c:2080:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[2], 1, 7); /* WP */ ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1991:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 1, 0); /* tray open */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1991:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 1, 0); /* tray open */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1995:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_dvd.o --- BDSET8W(&cp[0], 0x00, 3, 4); /* NoChg */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1998:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[1], 1, 1); /* media present */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_disk.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1999:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 0, 0); /* tray close */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1999:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 0, 0); /* tray close */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2002:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0x00, 3, 4); /* NoChg */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2005:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[1], 0, 1); /* media absent */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2006:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 0, 0); /* tray close */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2006:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 0, 0); /* tray close */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2080:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[2], 1, 7); /* WP */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- istgt_lu_disk.c:2135:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[3], 1, 7); /* WP */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2019:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[2], 0x05, 2, 3); /* Notification Class */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- BDADD8(&data[3], 1, 7); /* WP */ ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2021:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0x00, 3, 4); /* NoChg */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2138:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&data[4], 1, 1); /* Long LBA */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2023:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- istgt_lu_disk.c:2140:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- BDSET8(&cp[1], 0, 7); /* not prevented */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_disk.o --- BDSET8(&data[4], 0, 1); /* Short LBA */ ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2024:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], 0, 3, 4); /* Ready */ ^~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' --- istgt_lu_dvd.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2024:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_lu_dvd.o --- BDADD8W(&cp[1], 0, 3, 4); /* Ready */ ^~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2032:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[2], 0x06, 2, 3); /* Notification Class */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2034:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0x00, 3, 4); /* NoChg */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2050:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&data[2], 0, 7); /* NEA=1 */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:2219:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] spf = BGET8(&data[0], 6); ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:2257:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] wce = BGET8(&data[2], 2); /* WCE */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:2258:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] rcd = BGET8(&data[2], 0); /* RCD */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2069:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&data[0], 0, 7); ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2070:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], 0x00, 6, 2); /* Ready */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- istgt_lu_disk.c:2316:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[1], 1, 4); /* PLISTV */ ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2070:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], 0x00, 6, 2); /* Ready */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2071:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], (selected_slot & 0x1f), 4, 5); /* slot low bits */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2071:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], (selected_slot & 0x1f), 4, 5); /* slot low bits */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2073:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[1], 0x00, 7, 3); /* Idle */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2074:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[1], (selected_slot & 0xe0) >> 5, 2, 3); /* slot high bits */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2074:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[1], (selected_slot & 0xe0) >> 5, 2, 3); /* slot high bits */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- istgt_lu_disk.c:2316:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- BDADD8(&data[1], 1, 4); /* PLISTV */ ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2090:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[0], 1, 7); /* disc in slot */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_dvd.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2093:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[0], 0, 7); /* no disc in slot */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2319:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[1], 1, 3); /* GLISTV */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2319:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[1], 1, 3); /* GLISTV */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2321:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[1], list_format, 2, 3); /* DEFECT LIST FORMAT */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2321:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[1], list_format, 2, 3); /* DEFECT LIST FORMAT */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2095:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- istgt_lu_disk.c:2348:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- BDADD8(&cp[0], 1, 0); /* disc changed */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- BDADD8(&data[1], 1, 4); /* PLISTV */ ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2095:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- BDADD8(&cp[0], 1, 0); /* disc changed */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2099:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- BDSET8(&cp[0], 1, 7); /* disc in slot */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2348:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[1], 1, 4); /* PLISTV */ ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2102:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[0], 0, 7); /* no disc in slot */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_dvd.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2104:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- BDADD8(&cp[0], 0, 0); /* disc not changed */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_disk.o --- istgt_lu_disk.c:2351:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- BDADD8(&data[1], 1, 3); /* GLISTV */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2104:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- BDADD8(&cp[0], 0, 0); /* disc not changed */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- istgt_lu_disk.c:2351:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- BDADD8(&data[1], 1, 3); /* GLISTV */ ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2107:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_dvd.o --- BDSET8(&cp[1], 0, 1); /* non Cartridge Write Protection */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- istgt_lu_disk.c:2353:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2108:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- BDADD8W(&data[1], list_format, 2, 3); /* DEFECT LIST FORMAT */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- BDADD8(&cp[1], 0, 0); /* CWP=0 */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_disk.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- istgt_lu_disk.c:2353:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2108:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- BDADD8W(&data[1], list_format, 2, 3); /* DEFECT LIST FORMAT */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- BDADD8(&cp[1], 0, 0); /* CWP=0 */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- istgt_lu_disk.c:2485:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[0], 1, 7); /* PREF */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2488:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], AAS_ACTIVE_OPTIMIZED, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2488:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], AAS_ACTIVE_OPTIMIZED, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2491:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], AAS_ACTIVE_NON_OPTIMIZED, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2366:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[2], datatype, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- istgt_lu_disk.c:2491:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2367:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- BDADD8W(&cp[0], AAS_ACTIVE_NON_OPTIMIZED, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- BDADD8W(&data[2], 0, 4, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2367:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- BDADD8W(&data[2], 0, 4, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- istgt_lu_disk.c:2494:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- BDADD8W(&cp[0], AAS_STANDBY, 3, 4); --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2368:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- BDADD8W(&data[2], 0x03, 3, 2); /* Complete Session */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2368:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- BDADD8W(&data[2], 0x03, 3, 2); /* Complete Session */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- istgt_lu_disk.c:2494:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- BDADD8W(&cp[0], AAS_STANDBY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2369:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- BDADD8W(&data[2], 0x02, 1, 2); /* Finalized Disc */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2497:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- BDADD8W(&cp[0], AAS_UNAVAILABLE, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2369:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- BDADD8W(&data[2], 0x02, 1, 2); /* Finalized Disc */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2497:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- BDADD8W(&cp[0], AAS_UNAVAILABLE, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2379:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- BDSET8(&data[7], 0, 7); /* Disc ID Valid */ ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_disk.o --- istgt_lu_disk.c:2500:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], AAS_TRANSITIONING, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2500:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], AAS_TRANSITIONING, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2380:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[7], 0, 6); /* Disc Bar Code Valid */ ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- istgt_lu_disk.c:2511:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- BDADD8(&cp[1], 1, 1); /* active/non-optimized supported */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2380:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- BDADD8(&data[7], 0, 6); /* Disc Bar Code Valid */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2511:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 1, 1); /* active/non-optimized supported */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2381:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- istgt_lu_disk.c:2512:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 1, 0); /* active/optimized supported */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- BDADD8(&data[7], 1, 5); /* Unrestricted Use Disc */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- istgt_lu_disk.c:2512:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- BDADD8(&cp[1], 1, 0); /* active/optimized supported */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2381:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- BDADD8(&data[7], 1, 5); /* Unrestricted Use Disc */ ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2382:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- istgt_lu_tape.c:1596:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] evpd = BGET8(&cdb[1], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:1602:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1603:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- BDADD8(&data[7], 0, 4); /* Disc Application Code Valid */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2382:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1603:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- BDADD8(&data[7], 0, 4); /* Disc Application Code Valid */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2383:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- istgt_lu_tape.c:1646:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1647:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- BDADD8W(&data[7], 0, 1, 2); /* BG Format Status */ ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2383:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[7], 0, 1, 2); /* BG Format Status */ ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1647:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2418:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[2], datatype, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1669:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1670:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1670:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1682:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1683:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_ASCII, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1683:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_ASCII, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1685:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 0, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1686:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_LOGICAL_UNIT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1686:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_LOGICAL_UNIT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- istgt_lu_disk.c:2598:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- aas = BGET8W(&data[0], 3, 4); ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1687:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_T10_VENDOR_ID, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2441:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- BDSET8W(&data[2], datatype, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1687:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_T10_VENDOR_ID, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- istgt_lu_disk.c:2857:7: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fc = BGET8W(&data[0], 7, 2); ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:2858:7: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pi = BGET8W(&data[0], 3, 4); ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1710:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_ctl.o --- --- istgt_lu_tape.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1713:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1713:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_ctl.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_lu_ctl.o istgt_lu_ctl.c --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2492:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_lu_dvd.o --- BDSET8W(&cp[0], 0x00, 7, 4); /* DVD-ROM */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2493:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1715:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 1, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- BDADD8W(&cp[0], 0x01, 3, 4); /* part 1 */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- istgt_lu_tape.c:1716:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2493:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_LOGICAL_UNIT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- BDADD8W(&cp[0], 0x01, 3, 4); /* part 1 */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2495:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 0x00, 7, 4); /* 120mm */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2496:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- BDADD8W(&cp[1], 0x0f, 3, 4); /* Not Specified */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1716:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_LOGICAL_UNIT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1717:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_NAA, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2496:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- BDADD8W(&cp[1], 0x0f, 3, 4); /* Not Specified */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1717:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_NAA, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2498:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1735:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1738:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_tape.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- istgt_lu_disk.c:2948:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))<rsv_scope, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2499:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- BDADD8W(&cp[2], 0x00, 4, 1); /* Parallel Track Path */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- istgt_lu_tape.c:1738:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2499:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[2], 0x00, 4, 1); /* Parallel Track Path */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- ^~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2500:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[2], 0x00, 3, 4); /* embossed data */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1740:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 1, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_tape.o --- istgt_lu_tape.c:1741:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2500:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[2], 0x00, 3, 4); /* embossed data */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1741:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2502:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1742:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_NAA, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- BDSET8W(&cp[3], 0x00, 7, 4); /* 0.267 um/bit */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_tape.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2503:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[3], 0x00, 3, 4); /* 0.74 um/track */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2949:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- BDADD8W(&data[21], spec->rsv_type, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2503:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- BDADD8W(&cp[3], 0x00, 3, 4); /* 0.74 um/track */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- istgt_lu_tape.c:1760:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- BDSET8W(&cp[0], 0, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- istgt_lu_disk.c:2949:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[21], spec->rsv_type, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- istgt_lu_tape.c:1763:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_lu_tape.o --- BDADD8W(&cp[0], SPC_VPD_CODE_SET_BINARY, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ^ istgt_lu_disk.c:2968:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- BDADD8(&data[2], 1, 3); /* Specify Initiator Ports Capable */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1765:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[1], 1, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2583:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2585:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], 4, 5, 3); /* # of vendor */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- istgt_lu_tape.c:1766:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- istgt_lu_disk.c:2969:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2585:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], 4, 5, 3); /* # of vendor */ ^~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- BDADD8(&data[2], 1, 2); /* All Target Ports Capable */ ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- istgt_lu_tape.c:1766:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:2586:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], 5, 2, 3); /* # of user */ ^~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1767:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_RELATIVE_TARGET_PORT, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2586:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- BDADD8W(&cp[0], 5, 2, 3); /* # of user */ ^~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- istgt_lu_tape.c:1767:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- BDADD8W(&cp[1], SPC_VPD_IDENTIFIER_TYPE_RELATIVE_TARGET_PORT, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1982:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1983:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_tape.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ^~~~~~~~~~~ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:1983:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2008:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_lu_tape.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2009:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ~~~~ ^ --- istgt_lu_tape.o --- BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2009:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2044:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2045:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- BDADD8(&data[2], 1, 2); /* All Target Ports Capable */ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2045:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2056:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_tape.o --- BDSET8W(&cp[0], 0x3f, 5, 6); /* all page code */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2061:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[2], 0, 7); /* own copy */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' --- istgt_lu_disk.o --- ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2062:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- BDADD8W(&cp[2], 0x00, 1, 2); /* Shared */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2062:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[2], 0x00, 1, 2); /* Shared */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2079:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2080:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2080:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- istgt_lu_disk.c:3005:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- BDADD8(&cp[12], 1, 1); ^~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2119:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_tape.o --- BDSET8W(&cp2[0], SPC_PROTOCOL_IDENTIFIER_ISCSI, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2120:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- BDADD8W(&cp2[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- istgt_lu_disk.c:3005:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- istgt_lu_tape.c:2120:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp2[0], SPC_VPD_CODE_SET_UTF8, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- BDADD8(&cp[12], 1, 1); ^~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2122:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:3011:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- BDSET8W(&cp2[1], 1, 7, 1); /* PIV */ ^~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- BDADD8(&cp[12], 1, 0); ^~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2123:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- BDADD8W(&cp2[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- istgt_lu_tape.c:2123:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- istgt_lu_disk.c:3011:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- BDADD8W(&cp2[1], SPC_VPD_ASSOCIATION_TARGET_PORT, 5, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- BDADD8(&cp[12], 1, 0); ^~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- istgt_lu_tape.c:2124:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp2[1], SPC_VPD_IDENTIFIER_TYPE_SCSI_NAME, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2124:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2947:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], 0x03, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_tape.o --- BDADD8W(&cp2[1], SPC_VPD_IDENTIFIER_TYPE_SCSI_NAME, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- istgt_lu_disk.c:3012:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- istgt_lu_tape.c:2153:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- BDADD8W(&cp[13], spec->rsv_scope & 0x0f, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- BDADD8W(&data[0], 0x1f, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- istgt_lu_tape.c:2154:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- istgt_lu_tape.c:2154:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- istgt_lu_dvd.c:2948:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], 0x1f, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ^~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2173:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_dvd.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:3084:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- istgt_lu_tape.c:2174:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:3012:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:3085:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fl = BGET8(&cdb[4], 2); ^~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- BDADD8W(&cp[13], spec->rsv_scope & 0x0f, 7, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2174:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3086:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- loej = BGET8(&cdb[4], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_lu_dvd.o --- istgt_lu_dvd.c:3087:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ^ --- istgt_lu_dvd.o --- start = BGET8(&cdb[4], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' --- istgt_lu_tape.o --- istgt_lu_tape.c:2197:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_dvd.o --- #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3151:17: warning: shifting a negative signed value is undefined [-Wshift-negative-value] persistent = BGET8(&cdb[4], 1); ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- istgt_lu_tape.c:2198:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2198:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- istgt_lu_dvd.c:3152:14: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- prevent = BGET8(&cdb[4], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- istgt_lu_tape.c:2216:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) --- istgt_lu_tape.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- istgt_lu_tape.c:2217:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3212:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- pf = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2217:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- istgt_lu_tape.c:2249:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], pq, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))<> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2250:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- istgt_lu_dvd.c:3213:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- sp = BGET8(&cdb[1], 0); ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2250:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], pd, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2252:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- BDSET8W(&data[1], rmb, 7, 1); --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- istgt_lu_dvd.c:3254:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pf = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2257:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- BDSET8W(&data[3], 2, 3, 4); /* format 2 */ ^~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))<> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2280:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[36], 11, 7, 4); /* 40/80GB */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_lu_dvd.o --- sp = BGET8(&cdb[1], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- istgt_lu_tape.c:2281:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- BDSET8W(&data[36], 1, 3, 4); /* Vxxx firmware */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- ~~~~ ^ --- istgt_lu_tape.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- llba = BGET8(&data[4], 0); /* Long LBA */ ^~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- istgt_lu_disk.c:3013:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[13], spec->rsv_type & 0x0f, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3308:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- dbd = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_disk.o --- ~~~~ ^ --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- istgt_lu_dvd.c:3309:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pc = BGET8W(&cdb[2], 7, 2); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- istgt_lu_disk.c:3013:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3310:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- BDADD8W(&cp[13], spec->rsv_type & 0x0f, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- page = BGET8W(&cdb[2], 5, 6); ^~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:3348:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- llbaa = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3349:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dbd = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3350:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pc = BGET8W(&cdb[2], 7, 2); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3351:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] page = BGET8W(&cdb[2], 5, 6); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3397:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] desc = BGET8(&cdb[1], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3470:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- istgt_lu_tape.c:2422:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- rt = BGET8W(&cdb[1], 1, 2); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- BDADD8(&cp[2], 1, 7); /* DCE data compression enable */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3513:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- polled = BGET8(&cdb[1], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3561:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dt = BGET8W(&cdb[1], 4, 5); ^~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2422:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 7); /* DCE data compression enable */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3620:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] msf = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3621:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ^~~~~~~~~~~ --- istgt_lu_dvd.o --- format = BGET8W(&cdb[2], 3, 4); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3663:15: warning: shifting a negative signed value is undefined [-Wshift-negative-value] datatype = BGET8W(&cdb[1], 2, 3); ^~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3704:16: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- mediatype = BGET8W(&cdb[1], 3, 4); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- istgt_lu_tape.c:2423:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- istgt_lu_disk.c:3074:14: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- BDADD8(&cp[2], 1, 6); /* DCC data compression capable */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- spec_i_pt = BGET8(&data[20], 3); ^~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:3707:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- agid = BGET8W(&cdb[10], 7, 2); ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3765:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- agid = BGET8W(&cdb[10], 7, 2); ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3766:16: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- istgt_lu_tape.c:2423:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ~~~~ ^ --- istgt_lu_dvd.o --- keyformat = BGET8W(&cdb[10], 5, 6); ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- BDADD8(&cp[2], 1, 6); /* DCC data compression capable */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- istgt_lu_disk.c:3075:14: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_disk.o --- all_tg_pt = BGET8(&data[20], 2); ^~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:3822:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- dpo = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' --- istgt_lu_tape.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:3076:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] aptpl = BGET8(&data[20], 0); ^~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- istgt_lu_tape.c:2424:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[3], 1, 7); /* DDE data decompression enable */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:3823:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2424:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- fua = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- BDADD8(&cp[3], 1, 7); /* DDE data decompression enable */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_dvd.o --- ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' --- istgt_lu_tape.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- ^~~~~~~~~~~ --- istgt_lu_tape.o --- istgt_lu_tape.c:2425:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- BDADD8W(&cp[3], 0, 6, 2); /* RED report exception on decompression */ ^~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- istgt_lu_disk.c:3904:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- BDSET8W(&cdb[1], 0x02, 4, 5); /* RELEASE */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3856:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dpo = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_dvd.o --- ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_lu_dvd.o --- ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2425:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- BDADD8W(&cp[3], 0, 6, 2); /* RED report exception on decompression */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ^ --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_dvd.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- ^~~~~~~~~~~ --- istgt_lu_dvd.o --- istgt_lu_dvd.c:3857:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fua = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_dvd.o --- #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- istgt_lu_tape.c:2432:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 7); /* DCE=1 compression enable */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_dvd.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_dvd.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- istgt_lu_disk.c:3905:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- BDSET8W(&cdb[2], 0x00, 7, 4); /* LU_SCOPE */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_tape.o --- istgt_lu_tape.c:2432:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 7); /* DCE=1 compression enable */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_disk.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- istgt_lu_tape.c:2434:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 0, 7); /* DCE=0 compression disable */ ^~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- istgt_lu_disk.c:3906:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- BDADD8W(&cdb[2], 0x03, 3, 4); /* ISTGT_LU_PR_TYPE_EXCLUSIVE_ACCESS */ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2434:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- BDADD8(&cp[2], 0, 7); /* DCE=0 compression disable */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2437:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 6); /* DCC=1 support compression */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) --- istgt_lu_tape.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2437:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 6); /* DCC=1 support compression */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_disk.o --- istgt_lu_disk.c:3906:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- BDADD8W(&cdb[2], 0x03, 3, 4); /* ISTGT_LU_PR_TYPE_EXCLUSIVE_ACCESS */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:3933:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cdb[1], 0x06, 4, 5); /* REGISTER AND IGNORE EXISTING KEY */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- ^ istgt_lu_tape.c:2438:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[3], 1, 7); /* DDE=1 decompression enable */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2438:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[3], 1, 7); /* DDE=1 decompression enable */ ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2439:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[3], 0, 6, 2); /* RED=0 not support */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2439:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[3], 0, 6, 2); /* RED=0 not support */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2463:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[8], 0, 5); /* report setmarks not support */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2463:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[8], 0, 5); /* report setmarks not support */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- istgt_lu_disk.c:3991:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cdb[1], 0x06, 4, 5); /* REGISTER AND IGNORE EXISTING KEY */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:4019:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2465:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[8], 1, 6); --- istgt_lu_disk.o --- BDSET8W(&cdb[1], 0x01, 4, 5); /* RESERVE */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:4020:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cdb[2], 0x00, 7, 4); /* LU_SCOPE */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:4021:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cdb[2], 0x03, 3, 4); /* ISTGT_LU_PR_TYPE_EXCLUSIVE_ACCESS */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:4021:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cdb[2], 0x03, 3, 4); /* ISTGT_LU_PR_TYPE_EXCLUSIVE_ACCESS */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2465:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[8], 1, 6); ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2467:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[10], 1, 4); ^~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2467:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[10], 1, 4); ^~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2468:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[10], 1, 3); ^~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2468:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[10], 1, 3); ^~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2601:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[2], 1, 7); /* WP */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2601:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[2], 1, 7); /* WP */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' --- istgt_lu_disk.o --- istgt_lu_disk.c:4462:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[0], 1, 7); ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' --- istgt_lu_tape.o --- #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- istgt_lu_disk.c:4463:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- istgt_lu_tape.c:2607:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- BDADD8W(&cp[0], resp_code, 6, 7); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- BDADD8W(&data[2], 1, 6, 3); /* Buffed Mode=1 */ ^~~~~~~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:4463:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2607:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- BDADD8W(&cp[0], resp_code, 6, 7); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_tape.o --- BDADD8W(&data[2], 1, 6, 3); /* Buffed Mode=1 */ ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' --- istgt_lu_disk.o --- #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:4467:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[2], sk, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_disk.o --- istgt_lu_disk.c:4531:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[0], 1, 7); ^~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:4532:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], resp_code, 6, 7); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:4532:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], resp_code, 6, 7); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:4536:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[2], sk, 3, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- istgt_lu_tape.c:2681:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[3], 1, 7); /* WP */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2681:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[3], 1, 7); /* WP */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:137:24: note: expanded from macro 'BDADD8' #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2687:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[3], 1, 6, 3); /* Buffed Mode=1 */ ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2687:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[3], 1, 6, 3); /* Buffed Mode=1 */ ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2689:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&data[4], 1, 1); /* Long LBA */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2691:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&data[4], 0, 1); /* Short LBA */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:136:24: note: expanded from macro 'BDSET8' #define BDSET8(B,D,N) (BDSET8W((B),(D),(N),1)) ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:2783:7: warning: shifting a negative signed value is undefined [-Wshift-negative-value] ps = BGET8(&data[0], 7); ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:2784:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] spf = BGET8(&data[0], 6); ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:2825:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dce = BGET8(&data[2], 7); /* DCE */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:2826:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dde = BGET8(&data[3], 7); /* DDE */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:2827:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] red = BGET8W(&data[3], 6, 2); /* RED */ ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- istgt_lu_disk.c:4967:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], 0x03, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:4968:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], 0x1f, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:4968:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], 0x1f, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ --- istgt_lu_tape.o --- istgt_lu_tape.c:3565:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[0], 7); /* BOP=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:3568:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[0], 6); /* EOP=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:3571:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[0], 5); /* LOCU=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:3573:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[0], 4); /* BYCU=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:3577:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[0], 0); /* PERR=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:3600:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[0], 7); /* BOP=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:3603:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[0], 6); /* EOP=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:3607:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&data[0], 3); /* MPU=1 */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:3656:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&cp[2], 7); /* FILEMARK=1 */ ^~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:3659:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&cp[2], 6); /* EOM=1 */ ^~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- istgt_lu_disk.c:5546:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[0], 0x03, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:5547:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], 0x1f, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:5547:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], 0x1f, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:5698:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pc = BGET8W(&cdb[4], 7, 4); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:5699:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] loej = BGET8(&cdb[4], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:5700:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] start = BGET8(&cdb[4], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:5740:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] switch (BGET8W(&cdb[1], 4, 5)) { /* SERVICE ACTION */ ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:5789:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pf = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:5790:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] sp = BGET8(&cdb[1], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:5853:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pf = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- istgt_lu_tape.c:3966:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BSET8(&lu_cmd->sense_data[2+2], 5); /* ILI=1 */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:138:21: note: expanded from macro 'BSET8' #define BSET8(B,N) (BSET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:132:56: note: expanded from macro 'BSET8W' #define BSET8W(B,N,W) (*((uint8_t *)(B)) |= (uint8_t) (BMASKW((W))) << BSHIFTNW((N),(W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:5854:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] sp = BGET8(&cdb[1], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:5883:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] llba = BGET8(&data[4], 0); /* Long LBA */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:5929:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dbd = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:5930:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pc = BGET8W(&cdb[2], 7, 2); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:5931:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] page = BGET8W(&cdb[2], 5, 6); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:5980:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] llbaa = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:5981:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dbd = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:5982:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pc = BGET8W(&cdb[2], 7, 2); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:5983:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] page = BGET8W(&cdb[2], 5, 6); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6028:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] desc = BGET8(&cdb[1], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6124:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dpo = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6125:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fua = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6126:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fua_nv = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6160:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dpo = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6161:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fua = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6162:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fua_nv = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6196:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dpo = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6197:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fua = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6198:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fua_nv = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6267:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dpo = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- istgt_lu_tape.c:4387:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6268:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fua = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6269:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fua_nv = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- BDSET8W(&data[0], 0x03, 7, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:130:42: note: expanded from macro 'BDSET8W' --- istgt_lu_disk.o --- ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6304:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dpo = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- #define BDSET8W(B,D,N,W) DSET8((B),(((D)&BMASKW((W)))< 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6305:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fua = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6306:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fua_nv = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:4388:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], 0x1f, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:53: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:4388:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[0], 0x1f, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:131:108: note: expanded from macro 'BDADD8W' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_misc.h:39:52: note: expanded from macro 'DSET8' --- istgt_lu_disk.o --- ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6341:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dpo = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6342:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fua = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_tape.c:4537:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] hold = BGET8(&cdb[4], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4538:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] eot = BGET8(&cdb[4], 2); ^~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' --- istgt_lu_tape.o --- ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4539:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] reten = BGET8(&cdb[4], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) --- istgt_lu_disk.o --- #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6343:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fua_nv = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4540:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] load = BGET8(&cdb[4], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6371:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dpo = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6372:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] bytchk = BGET8(&cdb[1], 1); --- istgt_lu_tape.o --- istgt_lu_tape.c:4604:17: warning: shifting a negative signed value is undefined [-Wshift-negative-value] persistent = BGET8(&cdb[4], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4605:14: warning: shifting a negative signed value is undefined [-Wshift-negative-value] prevent = BGET8(&cdb[4], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) --- istgt_lu_disk.o --- ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6395:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dpo = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4668:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pf = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4669:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] sp = BGET8(&cdb[1], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4716:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pf = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4717:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] sp = BGET8(&cdb[1], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4735:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] llba = BGET8(&data[4], 0); /* Long LBA */ ^~~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4782:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dbd = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4783:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pc = BGET8W(&cdb[2], 7, 2); ^~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6396:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] bytchk = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6419:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dpo = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6420:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] bytchk = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6449:15: warning: shifting a negative signed value is undefined [-Wshift-negative-value] wprotect = BGET8W(&cdb[1], 7, 3); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6450:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pbdata = BGET8(&cdb[1], 2); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6451:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] lbdata = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6454:15: warning: shifting a negative signed value is undefined [-Wshift-negative-value] group_no = BGET8W(&cdb[6], 4, 5); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6498:15: warning: shifting a negative signed value is undefined [-Wshift-negative-value] wprotect = BGET8W(&cdb[1], 7, 3); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6499:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] anchor = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6500:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] unmap = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6501:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pbdata = BGET8(&cdb[1], 2); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6502:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] lbdata = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6505:15: warning: shifting a negative signed value is undefined [-Wshift-negative-value] group_no = BGET8W(&cdb[14], 4, 5); ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6562:15: warning: shifting a negative signed value is undefined [-Wshift-negative-value] wprotect = BGET8W(&cdb[1], 7, 3); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_disk.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6563:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dpo = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6564:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fua = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6565:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fua_nv = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6568:15: warning: shifting a negative signed value is undefined [-Wshift-negative-value] group_no = BGET8W(&cdb[14], 4, 5); ^~~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- istgt_lu_disk.c:6607:14: warning: shifting a negative signed value is undefined [-Wshift-negative-value] sync_nv = BGET8(&cdb[1], 2); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6608:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] immed = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_disk.o --- ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- istgt_lu_tape.c:4784:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- istgt_lu_disk.c:6641:14: warning: shifting a negative signed value is undefined [-Wshift-negative-value] sync_nv = BGET8(&cdb[1], 2); ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- page = BGET8W(&cdb[2], 5, 6); ^~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6642:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] immed = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6673:16: warning: shifting a negative signed value is undefined [-Wshift-negative-value] req_plist = BGET8(&cdb[2], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6674:16: warning: shifting a negative signed value is undefined [-Wshift-negative-value] req_glist = BGET8(&cdb[2], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_disk.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4822:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] llbaa = BGET8(&cdb[1], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4823:10: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dbd = BGET8(&cdb[1], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6675:18: warning: shifting a negative signed value is undefined [-Wshift-negative-value] list_format = BGET8W(&cdb[2], 2, 3); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6707:16: warning: shifting a negative signed value is undefined [-Wshift-negative-value] req_plist = BGET8(&cdb[2], 4); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' --- istgt_lu_tape.o --- istgt_lu_tape.c:4824:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pc = BGET8W(&cdb[2], 7, 2); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4825:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] page = BGET8W(&cdb[2], 5, 6); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6708:16: warning: shifting a negative signed value is undefined [-Wshift-negative-value] req_glist = BGET8(&cdb[2], 3); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4886:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] desc = BGET8(&cdb[1], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:4960:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] xlong = BGET8(&cdb[1], 0); --- istgt_lu_disk.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6709:18: warning: shifting a negative signed value is undefined [-Wshift-negative-value] list_format = BGET8W(&cdb[2], 2, 3); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6733:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] switch (BGET8W(&cdb[1], 4, 5)) { /* SERVICE ACTION */ ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:5008:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] code = BGET8W(&cdb[1], 3, 4); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_disk.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6761:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BGET8W(&cdb[1], 4, 5)); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:5040:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] wsmk = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' --- istgt_lu_disk.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ ./istgt_log.h:71:8: note: expanded from macro 'ISTGT_TRACELOG' __VA_ARGS__); \ ^~~~~~~~~~~ istgt_lu_disk.c:6771:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_disk.o --- switch (BGET8W(&cdb[1], 4, 5)) { /* SERVICE ACTION */ ^~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' --- istgt_lu_tape.o --- istgt_lu_tape.c:5147:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_disk.o --- #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- sa = BGET8W(&cdb[1], 4, 5); ^~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_disk.o --- istgt_lu_disk.c:6824:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] --- istgt_lu_tape.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_disk.o --- BGET8W(&cdb[1], 4, 5)); ^~~~~~~~~~~~~~~~~~~~~ --- istgt_lu_tape.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ --- istgt_lu_disk.o --- ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' --- istgt_lu_tape.o --- ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:5185:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] bt = BGET8(&cdb[1], 2); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:5186:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] cp = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' --- istgt_lu_disk.o --- #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_tape.o --- #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:5231:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] sili = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:5232:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fixed = BGET8(&cdb[1], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:5351:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] sili = BGET8(&cdb[1], 1); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_tape.c:5352:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fixed = BGET8(&cdb[1], 0); ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:140:21: note: expanded from macro 'BGET8' #define BGET8(B,N) (BGET8W((B),(N),1)) ^~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_lu_disk.o --- ./istgt_log.h:71:8: note: expanded from macro 'ISTGT_TRACELOG' __VA_ARGS__); \ ^~~~~~~~~~~ istgt_lu_disk.c:6843:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] sa = BGET8W(&cdb[1], 4, 5); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6876:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] sa = BGET8W(&cdb[1], 4, 5); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6877:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] scope = BGET8W(&cdb[2], 7, 4); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_disk.c:6878:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] type = BGET8W(&cdb[2], 3, 4); ^~~~~~~~~~~~~~~~~~~~~ ./istgt_misc.h:134:67: note: expanded from macro 'BGET8W' #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ --- istgt_log.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_log.o istgt_log.c --- istgt_lu_dvd.o --- 302 warnings generated. --- istgt_conf.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_conf.o istgt_conf.c --- istgt_sock.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_sock.o istgt_sock.c --- istgt_misc.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_misc.o istgt_misc.c --- istgt_queue.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_queue.o istgt_queue.c --- istgt_crc32c.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_crc32c.o istgt_crc32c.c --- istgt.o --- 1 warning generated. --- istgt_md5.o --- clang -DHAVE_CONFIG_H -O2 -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -I/opt/pkg/include -I.. -I. -c -o istgt_md5.o istgt_md5.c --- stamp-depend --- mkdep: error: Failed to locate 'mkdep'. xcode-select: Failed to locate 'mkdep', requesting installation of command line developer tools. *** [depend] Error code 72 bmake[2]: stopped in /opt/work/net/istgt/work/istgt-20150713/src 1 error bmake[2]: stopped in /opt/work/net/istgt/work/istgt-20150713/src *** [stamp-depend] Error code 2 bmake[1]: stopped in /opt/work/net/istgt/work/istgt-20150713/src --- istgt_lu_tape.o --- 169 warnings generated. --- istgt_lu_disk.o --- 293 warnings generated. --- istgt_iscsi.o --- 85 warnings generated. 1 error bmake[1]: stopped in /opt/work/net/istgt/work/istgt-20150713/src *** [all] Error code 2 bmake: stopped in /opt/work/net/istgt/work/istgt-20150713 1 error bmake: stopped in /opt/work/net/istgt/work/istgt-20150713 *** Error code 2 Stop. bmake[1]: stopped in /opt/pkgsrc/net/istgt *** Error code 1 Stop. bmake: stopped in /opt/pkgsrc/net/istgt