=>> Building net/istgt build started at Wed Apr 3 03:42:52 BST 2024 port directory: /usr/ports/net/istgt package name: istgt-20150713_1 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: ports@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 1231 Feb 25 10:26 /usr/ports/net/istgt/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: ed877b3a43 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.99.20240122_1 Host OSVERSION: 1400097 Jail OSVERSION: 1302001 Job Id: 03 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1302001 UNAME_v=FreeBSD 13.2-RELEASE-p10 UNAME_r=13.2-RELEASE-p10 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.99.20240122_1 MASTERMNT=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/03/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13-amd64-default-dan SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.99.20240122_1 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ===> The following configuration options are available for istgt-20150713_1: DOCS=on: Build and/or install documentation SYMLNKDEV=off: Allow symbolic link for device file VBOXVD=off: VirtualBox VD support (no X11 required) ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- ports@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/net/istgt/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/istgt/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/istgt/work/.cache HOME=/wrkdirs/usr/ports/net/istgt/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/net/istgt/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/istgt/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCACHE_DIR="/root/.ccache" CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=524288 --End CONFIGURE_ENV-- --MAKE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/net/istgt/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/istgt/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/istgt/work/.cache HOME=/wrkdirs/usr/ports/net/istgt/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/net/istgt/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/istgt/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CCACHE_DIR="/root/.ccache" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- PORTDOCS="" OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/istgt" EXAMPLESDIR="share/examples/istgt" DATADIR="share/istgt" WWWDIR="www/istgt" ETCDIR="etc/istgt" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/istgt DOCSDIR=/usr/local/share/doc/istgt EXAMPLESDIR=/usr/local/share/examples/istgt WWWDIR=/usr/local/www/istgt ETCDIR=/usr/local/etc/istgt --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### CCACHE_CPP2=1 WITH_SSP_PORTS=yes WITH_SSP=yes #WITH_LTO=yes DISABLE_LICENSES=yes LICENSES_ACCEPTED=AGPLv3 APACHE10 APACHE11 APACHE20 ART10 ARTPERL10 ART20 BSD BSD2CLAUSE BSD3CLAUSE BSD4CLAUSE BSL CC0-1.0 CDDL ClArtistic EPL GFDL GMGPL GPLv1 GPLv2 GPLv3 GPLv3RLE ISCL LGPL20 LGPL21 LGPL3 LPPL10 LPPL11 LPPL12 LPPL13 LPPL13a LPPL13b LPPL13c MIT MPL OpenSSL OFL10 OFL11 OWL PostgreSQL PHP202 PHP30 PHP301 PSFL RUBY ZLIB ZPL21 SVM-Light EULA ALASIR Microsoft-exFAT SIMIAN UDEVGAME unknown MTA COMMERCIAL teamspeak NO_LICENSES_DIALOGS=yes #### #### NO_IGNORE=yes DEFAULT_VERSIONS+=ssl=openssl mysql=8.0 imagemagick=7 samba=4.13 java=18 WITH_SETID_MODE=force PHP_ZTS=enabled OPTIONS_UNSET+=OPENJPEG OPTIONS_UNSET+=GSSAPI_BASE OPTIONS_SET+=ZTS OPTIONS_SET+=GSSAPI_NONE WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache NO_CCACHE_DEPEND=1 CCACHE_WRAPPER_PATH= /ccache/libexec/ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 DISABLE_MAKE_JOBS=poudriere ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The istgt port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> istgt-20150713_1 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.20.9_1.pkg [pkg-builder.dan.net.uk] Installing pkg-1.20.9_1... [pkg-builder.dan.net.uk] Extracting pkg-1.20.9_1: .......... done ===> istgt-20150713_1 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of istgt-20150713_1 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The istgt port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by istgt-20150713_1 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The istgt port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by istgt-20150713_1 for building => SHA256 Checksum OK for istgt-20150713.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The istgt port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by istgt-20150713_1 for building ===> Extracting for istgt-20150713_1 => SHA256 Checksum OK for istgt-20150713.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for istgt-20150713_1 ===> Applying FreeBSD patches for istgt-20150713_1 from /usr/ports/net/istgt/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for istgt-20150713_1 configure: loading site script /usr/ports/Templates/config.site checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking for ranlib... ranlib checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p checking build system type... amd64-portbld-freebsd13.2 checking host system type... amd64-portbld-freebsd13.2 checking for pthread_create in -lpthread... yes checking for MD5Update in -lmd... yes checking for cam_open_spec_device in -lcam... yes checking how to run the C preprocessor... cpp checking for grep that handles long lines and -e... (cached) /usr/bin/grep checking for egrep... (cached) /usr/bin/egrep checking for ANSI C header files... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking for arpa/inet.h... (cached) yes checking for fcntl.h... (cached) yes checking for inttypes.h... (cached) yes checking for limits.h... (cached) yes checking for netdb.h... (cached) yes checking for netinet/in.h... (cached) yes checking for stddef.h... (cached) yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/ioctl.h... (cached) yes checking for sys/param.h... (cached) yes checking for sys/socket.h... (cached) yes checking for sys/time.h... (cached) yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for unistd.h... (cached) yes checking for inline... inline checking for int32_t... (cached) yes checking for int64_t... (cached) yes checking for off_t... (cached) yes checking for pid_t... (cached) yes checking for size_t... (cached) yes checking for ssize_t... (cached) yes checking for struct stat.st_blocks... yes checking for uint16_t... (cached) yes checking for uint32_t... (cached) yes checking for uint64_t... (cached) yes checking for uint8_t... (cached) yes checking whether lstat correctly handles trailing slash... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for ftruncate... yes checking for memset... (cached) yes checking for realpath... (cached) yes checking for socket... yes checking for strcasecmp... (cached) yes checking for strchr... (cached) yes checking for strncasecmp... (cached) yes checking for strspn... yes checking for strtol... (cached) yes checking for strtoull... (cached) yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking aio.h usability... yes checking aio.h presence... yes checking for aio.h... yes checking for sched.h... (cached) yes checking uuid.h usability... yes checking uuid.h presence... yes checking for uuid.h... yes checking sys/disk.h usability... yes checking sys/disk.h presence... yes checking for sys/disk.h... yes checking sys/disklabel.h usability... yes checking sys/disklabel.h presence... yes checking for sys/disklabel.h... yes checking for pthread.h... (cached) yes checking for pthread_np.h... yes checking for strlcpy... (cached) yes checking for arc4random... (cached) yes checking for srandomdev... yes checking for pthread_yield... yes checking for sched_yield... (cached) yes checking for pthread_set_name_np... yes checking for setproctitle... (cached) yes checking for mkdep... /usr/bin/mkdep checking whether the C compiler accepts -fstack-protector... yes checking whether the C compiler accepts -Wall... yes checking whether the C compiler accepts -Wextra... yes checking whether to use debug mode... no checking whether to use symlink device... no checking which syslog facility to use... "local7" checking which syslog priority to use... "info" checking VirtualBox Virtual Disk support... no checking for PTHREAD_MUTEX_ADAPTIVE_NP... yes checking for sys/types.h... (cached) yes checking for machine/atomic.h... yes checking sys/atomic.h usability... no checking sys/atomic.h presence... no checking for sys/atomic.h... no checking for atomic operations... yes checking for gcc builtin atomic operations... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating etc/Makefile config.status: creating doc/Makefile config.status: creating src/build.h config.status: creating src/config.h =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for istgt-20150713_1 for subdir in src etc doc; do (cd $subdir; /usr/bin/make all) || exit $?; done /usr/bin/make depend if [ "x/usr/bin/mkdep" != "x" ]; then /usr/bin/mkdep -MM -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -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 touch stamp-depend cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt.o istgt.c cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_iscsi.o istgt_iscsi.c 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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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: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_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] 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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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' #define BMASKW(W) (((W) > 0) ? (~((~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_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_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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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:3029:14: warning: variable 'iiqn' set but not used [-Wunused-but-set-variable] const char *iiqn; ^ 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' #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' #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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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' #define BMASKW(W) (((W) > 0) ? (~((~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_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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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: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_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_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' #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_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_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_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_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] 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_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' #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_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: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_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: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] 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_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_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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~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:3943:11: warning: variable 'ExpDataSN' set but not used [-Wunused-but-set-variable] uint32_t ExpDataSN; ^ 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_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' #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_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: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_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: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_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:4458:11: warning: variable 'lun' set but not used [-Wunused-but-set-variable] uint64_t lun; ^ istgt_iscsi.c:4459:11: warning: variable 'current_lun' set but not used [-Wunused-but-set-variable] uint64_t current_lun; ^ istgt_iscsi.c:4493: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: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] 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:4607:11: warning: variable 'current_lun' set but not used [-Wunused-but-set-variable] uint64_t current_lun; ^ istgt_iscsi.c:4627:6: warning: variable 'r2t_offset' set but not used [-Wunused-but-set-variable] int r2t_offset; ^ istgt_iscsi.c:4608:11: warning: variable 'lun' set but not used [-Wunused-but-set-variable] uint64_t lun; ^ istgt_iscsi.c:4623:6: warning: variable 'immediate' set but not used [-Wunused-but-set-variable] int immediate, opcode; ^ 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_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_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_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: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] 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:5031:6: warning: variable 'immediate' set but not used [-Wunused-but-set-variable] int immediate, opcode; ^ 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_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_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) ~~~~ ^ 94 warnings generated. cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_iscsi_param.o istgt_iscsi_param.c cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_lu.o istgt_lu.c cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_lu_disk.o istgt_lu_disk.c istgt_lu_disk.c:456:6: warning: variable 'newfile' set but not used [-Wunused-but-set-variable] int newfile; ^ 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_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_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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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_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: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: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_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_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_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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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_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' #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' #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] 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_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_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_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' #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_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] 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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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_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] 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' #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_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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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_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] 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] 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] 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] 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: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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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' #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: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_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: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: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_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] 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_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' #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: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_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] 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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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_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] 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' #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] 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: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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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' #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: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: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_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] 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: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' #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_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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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: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: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_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_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_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_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_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: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: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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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_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_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: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: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: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: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_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_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: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: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_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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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: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: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' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2140: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_disk.c:2208:6: warning: variable 'ps' set but not used [-Wunused-but-set-variable] int ps, spf, page, subpage; ^ istgt_lu_disk.c:2218: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_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_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_disk.c:2305:11: warning: variable 'cp' set but not used [-Wunused-but-set-variable] uint8_t *cp; ^ istgt_lu_disk.c:2316:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[1], 1, 4); /* PLISTV */ ^~~~~~~~~~~~~~~~~~~~~~ ./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:2316:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[1], 1, 4); /* PLISTV */ ^~~~~~~~~~~~~~~~~~~~~~ ./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: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_disk.c:2337:11: warning: variable 'cp' set but not used [-Wunused-but-set-variable] uint8_t *cp; ^ istgt_lu_disk.c:2348:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[1], 1, 4); /* PLISTV */ ^~~~~~~~~~~~~~~~~~~~~~ ./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:2348:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[1], 1, 4); /* PLISTV */ ^~~~~~~~~~~~~~~~~~~~~~ ./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:2351: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:2351: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:2353: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:2353: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_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_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: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:2494:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], AAS_STANDBY, 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:2494:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], AAS_STANDBY, 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:2497:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], AAS_UNAVAILABLE, 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:2497:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], AAS_UNAVAILABLE, 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:2500:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], AAS_TRANSITIONING, 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:2500:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], AAS_TRANSITIONING, 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: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' #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: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' #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:2512:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 1, 0); /* active/optimized supported */ ^~~~~~~~~~~~~~~~~~~~ ./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:2512:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 1, 0); /* active/optimized supported */ ^~~~~~~~~~~~~~~~~~~~ ./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:2598:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ 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_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:2948:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[21], spec->rsv_scope, 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:2949:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[21], spec->rsv_type, 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:2949:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[21], spec->rsv_type, 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:2968:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 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: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:2968:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 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_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:2969:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[2], 1, 2); /* All Target 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: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:2969:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[2], 1, 2); /* All Target 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_misc.h:39:52: note: expanded from macro 'DSET8' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_disk.c:3005:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[12], 1, 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_disk.c:3005:5: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[12], 1, 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:3011:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[12], 1, 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_disk.c:3011:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[12], 1, 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_disk.c:3012:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[13], spec->rsv_scope & 0x0f, 7, 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:3012:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[13], spec->rsv_scope & 0x0f, 7, 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:3013:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[13], spec->rsv_type & 0x0f, 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:3013:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[13], spec->rsv_type & 0x0f, 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:3074:14: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 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_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:3075:14: warning: shifting a negative signed value is undefined [-Wshift-negative-value] all_tg_pt = BGET8(&data[20], 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: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' #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:3904:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cdb[1], 0x02, 4, 5); /* RELEASE */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:3905: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:3906: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:3906: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_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_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] 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_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' #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:4463: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:4463: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: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_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_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_disk.c:5130:12: warning: variable 'istgt' set but not used [-Wunused-but-set-variable] ISTGT_Ptr istgt; ^ istgt_lu_disk.c:5696:12: warning: variable 'loej' set but not used [-Wunused-but-set-variable] int pc, loej, start; ^ istgt_lu_disk.c:5779:8: warning: variable 'mdlen' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_disk.c:5779:15: warning: variable 'mt' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_disk.c:5779:19: warning: variable 'dsp' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_disk.c:5842:8: warning: variable 'mdlen' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_disk.c:5842:15: warning: variable 'mt' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_disk.c:5842:19: warning: variable 'dsp' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_disk.c:6108:8: warning: variable 'dpo' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6108:13: warning: variable 'fua' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6108:18: warning: variable 'fua_nv' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6144:8: warning: variable 'dpo' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6144:13: warning: variable 'fua' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6144:18: warning: variable 'fua_nv' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6180:8: warning: variable 'dpo' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6180:13: warning: variable 'fua' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6180:18: warning: variable 'fua_nv' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6251:8: warning: variable 'dpo' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6251:13: warning: variable 'fua' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6251:18: warning: variable 'fua_nv' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6288:8: warning: variable 'dpo' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6288:13: warning: variable 'fua' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6288:18: warning: variable 'fua_nv' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6325:8: warning: variable 'dpo' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6325:13: warning: variable 'fua' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6325:18: warning: variable 'fua_nv' set but not used [-Wunused-but-set-variable] int dpo, fua, fua_nv; ^ istgt_lu_disk.c:6361:8: warning: variable 'dpo' set but not used [-Wunused-but-set-variable] int dpo, bytchk; ^ istgt_lu_disk.c:6361:13: warning: variable 'bytchk' set but not used [-Wunused-but-set-variable] int dpo, bytchk; ^ istgt_lu_disk.c:6385:8: warning: variable 'dpo' set but not used [-Wunused-but-set-variable] int dpo, bytchk; ^ istgt_lu_disk.c:6385:13: warning: variable 'bytchk' set but not used [-Wunused-but-set-variable] int dpo, bytchk; ^ istgt_lu_disk.c:6409:8: warning: variable 'dpo' set but not used [-Wunused-but-set-variable] int dpo, bytchk; ^ istgt_lu_disk.c:6409:13: warning: variable 'bytchk' set but not used [-Wunused-but-set-variable] int dpo, bytchk; ^ istgt_lu_disk.c:6433:8: warning: variable 'wprotect' set but not used [-Wunused-but-set-variable] int wprotect, pbdata, lbdata, group_no; ^ istgt_lu_disk.c:6433:34: warning: variable 'group_no' set but not used [-Wunused-but-set-variable] int wprotect, pbdata, lbdata, group_no; ^ istgt_lu_disk.c:6479:8: warning: variable 'wprotect' set but not used [-Wunused-but-set-variable] int wprotect, anchor, unmap, pbdata, lbdata, group_no; ^ istgt_lu_disk.c:6479:26: warning: variable 'unmap' set but not used [-Wunused-but-set-variable] int wprotect, anchor, unmap, pbdata, lbdata, group_no; ^ istgt_lu_disk.c:6479:49: warning: variable 'group_no' set but not used [-Wunused-but-set-variable] int wprotect, anchor, unmap, pbdata, lbdata, group_no; ^ istgt_lu_disk.c:6537:8: warning: variable 'wprotect' set but not used [-Wunused-but-set-variable] int wprotect, dpo, fua, fua_nv, group_no; ^ istgt_lu_disk.c:6537:18: warning: variable 'dpo' set but not used [-Wunused-but-set-variable] int wprotect, dpo, fua, fua_nv, group_no; ^ istgt_lu_disk.c:6537:23: warning: variable 'fua' set but not used [-Wunused-but-set-variable] int wprotect, dpo, fua, fua_nv, group_no; ^ istgt_lu_disk.c:6537:28: warning: variable 'fua_nv' set but not used [-Wunused-but-set-variable] int wprotect, dpo, fua, fua_nv, group_no; ^ istgt_lu_disk.c:6537:36: warning: variable 'group_no' set but not used [-Wunused-but-set-variable] int wprotect, dpo, fua, fua_nv, group_no; ^ istgt_lu_disk.c:6597:8: warning: variable 'sync_nv' set but not used [-Wunused-but-set-variable] int sync_nv, immed; ^ istgt_lu_disk.c:6597:17: warning: variable 'immed' set but not used [-Wunused-but-set-variable] int sync_nv, immed; ^ istgt_lu_disk.c:6631:8: warning: variable 'sync_nv' set but not used [-Wunused-but-set-variable] int sync_nv, immed; ^ istgt_lu_disk.c:6631:17: warning: variable 'immed' set but not used [-Wunused-but-set-variable] int sync_nv, immed; ^ 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' #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' #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_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' #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_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_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: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_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_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_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' #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_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_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:6641: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: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_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: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' #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_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' #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' #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] 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:6824: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' #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: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) ~~~~ ^ 343 warnings generated. cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_lu_disk_vbox.o istgt_lu_disk_vbox.c cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_lu_dvd.o istgt_lu_dvd.c 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_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.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' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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] 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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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_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_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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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_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_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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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_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_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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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_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_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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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_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_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: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:1057: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: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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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_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] 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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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.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] 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' #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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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: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_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_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_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: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: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_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:1598:6: warning: variable 'ps' set but not used [-Wunused-but-set-variable] int ps, spf, page, subpage; ^ 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_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_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_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: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' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ istgt_lu_dvd.c:1699: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: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' #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] BSET8(&cp[2], 0); /* CurrentP(0)=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: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_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] 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_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:1750: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: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)))< 0) ? (~((~0) << (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_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: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_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_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_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' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ 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_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' #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_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_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_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_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_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] 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_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' #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_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_lu_dvd.c:1920:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[2], 0x01, 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: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' #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:1924:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 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' #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_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_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] 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.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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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_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_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_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_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_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' #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] 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' #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' #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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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:2019:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[2], 0x05, 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:2021: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:2023:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 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' #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_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:2024: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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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' #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) ^ 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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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: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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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' #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:2093: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' #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] 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: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:2095:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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] 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' #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' #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:2104:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[0], 0, 0); /* disc not 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: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:2104:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[0], 0, 0); /* disc not 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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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:2107:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[1], 0, 1); /* non Cartridge Write Protection */ ^~~~~~~~~~~~~~~~~~~~ ./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:2108:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 0, 0); /* CWP=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:2108:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[1], 0, 0); /* CWP=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:2366: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_dvd.c:2367:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[2], 0, 4, 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:2367:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[2], 0, 4, 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:2368:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[2], 0x03, 3, 2); /* Complete Session */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2368:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[2], 0x03, 3, 2); /* Complete Session */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2369:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[2], 0x02, 1, 2); /* Finalized Disc */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2369:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[2], 0x02, 1, 2); /* Finalized Disc */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2379:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&data[7], 0, 7); /* Disc ID Valid */ ^~~~~~~~~~~~~~~~~~~~~~ ./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:2380:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 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: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:2380:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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:2381:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[7], 1, 5); /* Unrestricted Use Disc */ ^~~~~~~~~~~~~~~~~~~~~~ ./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:2381:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&data[7], 1, 5); /* Unrestricted Use Disc */ ^~~~~~~~~~~~~~~~~~~~~~ ./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:2382:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 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] 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] 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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_dvd.c:2441: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_dvd.c:2492:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 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] BDADD8W(&cp[0], 0x01, 3, 4); /* part 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:2493:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 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' #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] BDADD8W(&cp[1], 0x0f, 3, 4); /* Not Specified */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2496:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[1], 0x0f, 3, 4); /* Not Specified */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2498:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[2], 0x00, 6, 2); /* one layer */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2499:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[2], 0x00, 4, 1); /* Parallel Track Path */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2499:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[2], 0x00, 4, 1); /* Parallel Track Path */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2500:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[2], 0x00, 3, 4); /* embossed data */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2500:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[2], 0x00, 3, 4); /* embossed data */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2502:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[3], 0x00, 7, 4); /* 0.267 um/bit */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2503:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[3], 0x00, 3, 4); /* 0.74 um/track */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2503:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[3], 0x00, 3, 4); /* 0.74 um/track */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2511:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cp[16], 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:2583:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cp[0], 0x00, 7, 2); /* No Drive region setting */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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: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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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: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: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:2586:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], 5, 2, 3); /* # of user */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./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:2586:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[0], 5, 2, 3); /* # of user */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./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:3082:8: warning: variable 'pc' set but not used [-Wunused-but-set-variable] int pc, fl, loej, start; ^ istgt_lu_dvd.c:3082:12: warning: variable 'fl' set but not used [-Wunused-but-set-variable] int pc, fl, loej, start; ^ istgt_lu_dvd.c:3210:8: warning: variable 'mdlen' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_dvd.c:3210:15: warning: variable 'mt' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_dvd.c:3210:19: warning: variable 'dsp' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_dvd.c:3251:8: warning: variable 'mdlen' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_dvd.c:3251:15: warning: variable 'mt' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_dvd.c:3251:19: warning: variable 'dsp' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_dvd.c:3552:8: warning: variable 'dt' set but not used [-Wunused-but-set-variable] int dt, mnd, type; ^ istgt_lu_dvd.c:3552:12: warning: variable 'mnd' set but not used [-Wunused-but-set-variable] int dt, mnd, type; ^ istgt_lu_dvd.c:3552:17: warning: variable 'type' set but not used [-Wunused-but-set-variable] int dt, mnd, type; ^ istgt_lu_dvd.c:3807:8: warning: variable 'dpo' set but not used [-Wunused-but-set-variable] int dpo, fua; ^ istgt_lu_dvd.c:3807:13: warning: variable 'fua' set but not used [-Wunused-but-set-variable] int dpo, fua; ^ istgt_lu_dvd.c:3841:8: warning: variable 'dpo' set but not used [-Wunused-but-set-variable] int dpo, fua; ^ istgt_lu_dvd.c:3841:13: warning: variable 'fua' set but not used [-Wunused-but-set-variable] int dpo, fua; ^ 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' #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:2948: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_dvd.c:2948: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_dvd.c:3084: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_dvd.c:3085:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fl = BGET8(&cdb[4], 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_dvd.c:3086: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_dvd.c:3087: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_dvd.c:3151: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_dvd.c:3152: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_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:3212: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_dvd.c:3213: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_dvd.c:3254: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_dvd.c:3255: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_dvd.c:3273: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_dvd.c:3308: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: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' #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:3310: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:3348: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_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] rt = BGET8W(&cdb[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_lu_dvd.c:3513:13: warning: shifting a negative signed value is undefined [-Wshift-negative-value] polled = 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:3561:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] dt = 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_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' #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] format = 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_lu_dvd.c:3663:15: warning: shifting a negative signed value is undefined [-Wshift-negative-value] datatype = BGET8W(&cdb[1], 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_dvd.c:3704:16: warning: shifting a negative signed value is undefined [-Wshift-negative-value] mediatype = BGET8W(&cdb[1], 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_lu_dvd.c:3707:11: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 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_misc.h:128:40: note: expanded from macro 'BMASKW' #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] 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_misc.h:128:40: note: expanded from macro 'BMASKW' #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] 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' #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) ~~~~ ^ istgt_lu_dvd.c:3822: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_dvd.c:3823: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_dvd.c:3856: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_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' #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) ~~~~ ^ 318 warnings generated. cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_lu_tape.o istgt_lu_tape.c istgt_lu_tape.c:479:32: warning: variable 'version' set but not used [-Wunused-but-set-variable] uint64_t lbpos, offset, prev, version, marklen; ^ istgt_lu_tape.c:556:32: warning: variable 'version' set but not used [-Wunused-but-set-variable] uint64_t lbpos, offset, prev, version, marklen; ^ istgt_lu_tape.c:619:32: warning: variable 'version' set but not used [-Wunused-but-set-variable] uint64_t lbpos, offset, prev, version, marklen; ^ istgt_lu_tape.c:620:6: warning: variable 'index_i' set but not used [-Wunused-but-set-variable] int index_i; ^ 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_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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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_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: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_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: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_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: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' #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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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:1715: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_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: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: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' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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: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: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_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:1738: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_tape.c:1740: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_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_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:1741: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_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_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:1742: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_tape.c:1760: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:1763: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:1763: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_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' #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:1766: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_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_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:1767: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_tape.c:1767: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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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: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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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] 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: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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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: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] 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_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' #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] 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' #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_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: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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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:2119: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_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_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:2120: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_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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:2122: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_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] 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_tape.c:2123: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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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: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: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:2153: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: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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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: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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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] 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: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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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:2174: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: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' #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:2198: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:2198: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: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' #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: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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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: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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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: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)))< 0) ? (~((~0) << (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:2250: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_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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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:2252: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_tape.c:2257: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_tape.c:2280:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[36], 11, 7, 4); /* 40/80GB */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2281:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&data[36], 1, 3, 4); /* Vxxx firmware */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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:2422:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 7); /* DCE data compression 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:2422:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 7); /* DCE data compression 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:2423:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 6); /* DCC data compression 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: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:2423:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[2], 1, 6); /* DCC data compression 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_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] BDADD8(&cp[3], 1, 7); /* DDE data 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:2424:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cp[3], 1, 7); /* DDE data 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:2425:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[3], 0, 6, 2); /* RED report exception on decompression */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./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:2425:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cp[3], 0, 6, 2); /* RED report exception on decompression */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./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: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' #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: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' #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:2434:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 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: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:2434:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 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' #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) ^~~~~~~~~~~ ./istgt_misc.h:128:40: note: expanded from macro 'BMASKW' #define BMASKW(W) (((W) > 0) ? (~((~0) << (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_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: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_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: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' #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: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' #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:2607:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[2], 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:2607:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&data[2], 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: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:2815:18: warning: variable 'red' set but not used [-Wunused-but-set-variable] int dce, dde, red; ^ istgt_lu_tape.c:2816:23: warning: variable 'decompalgo' set but not used [-Wunused-but-set-variable] uint32_t compalgo, decompalgo; ^ 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_tape.c:2913:11: warning: variable 'marklen' set but not used [-Wunused-but-set-variable] uint64_t marklen; ^ istgt_lu_tape.c:3321:6: warning: variable 'found_bot' set but not used [-Wunused-but-set-variable] int found_bot = 0, found_eom = 0; ^ 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_tape.c:3727:11: warning: variable 'mediasize' set but not used [-Wunused-but-set-variable] uint64_t mediasize; ^ istgt_lu_tape.c:3859:11: warning: variable 'mediasize' set but not used [-Wunused-but-set-variable] uint64_t mediasize; ^ 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_tape.c:4020:11: warning: variable 'mediasize' set but not used [-Wunused-but-set-variable] uint64_t mediasize; ^ istgt_lu_tape.c:4148:11: warning: variable 'mediasize' set but not used [-Wunused-but-set-variable] uint64_t mediasize; ^ istgt_lu_tape.c:4535:14: warning: variable 'eot' set but not used [-Wunused-but-set-variable] int hold, eot, reten, load; ^ istgt_lu_tape.c:4535:19: warning: variable 'reten' set but not used [-Wunused-but-set-variable] int hold, eot, reten, load; ^ istgt_lu_tape.c:4666:8: warning: variable 'mdlen' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_tape.c:4666:15: warning: variable 'mt' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_tape.c:4666:19: warning: variable 'dsp' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_tape.c:4713:8: warning: variable 'mdlen' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_tape.c:4713:15: warning: variable 'mt' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_tape.c:4713:19: warning: variable 'dsp' set but not used [-Wunused-but-set-variable] int mdlen, mt, dsp, bdlen; ^ istgt_lu_tape.c:5176:8: warning: variable 'bt' set but not used [-Wunused-but-set-variable] int bt, cp, partition; ^ istgt_lu_tape.c:5176:16: warning: variable 'partition' set but not used [-Wunused-but-set-variable] int bt, cp, partition; ^ istgt_lu_tape.c:5342:13: warning: variable 'rest' set but not used [-Wunused-but-set-variable] uint64_t rest; ^ istgt_lu_tape.c:4387: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_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' #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_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_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_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_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_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:4784: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_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_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_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_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' #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' #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:5147: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_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' #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) ~~~~ ^ 192 warnings generated. cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_lu_pass.o istgt_lu_pass.c istgt_lu_pass.c:118:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] rsp = BGET8W(&sense_data[0], 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_lu_pass.c:121:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] sk = BGET8W(&sense_data[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_lu_pass.c:126:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] sk = BGET8W(&sense_data[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_lu_pass.c:131:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] sk = BGET8W(&sense_data[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_lu_pass.c:136:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] sk = BGET8W(&sense_data[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_lu_pass.c:267:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cdb[1], 0, 3); /* DBD */ ^~~~~~~~~~~~~~~~~~~~~ ./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.c:267:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cdb[1], 0, 3); /* DBD */ ^~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:268:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cdb[2], 0x00, 7, 2); /* PC */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:270:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cdb[2], 0x3f, 5, 6); /* PAGE CODE */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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.c:270:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cdb[2], 0x3f, 5, 6); /* PAGE CODE */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:373:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8(&cdb[1], 1, 4); /* LLBAA */ ^~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:374:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cdb[1], 0, 3); /* DBD */ ^~~~~~~~~~~~~~~~~~~~~ ./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.c:374:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8(&cdb[1], 0, 3); /* DBD */ ^~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:375:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cdb[2], 0x00, 7, 2); /* PC */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:377:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cdb[2], 0x3f, 5, 6); /* PAGE CODE */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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.c:377:3: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDADD8W(&cdb[2], 0x3f, 5, 6); /* PAGE CODE */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:611:4: warning: shifting a negative signed value is undefined [-Wshift-negative-value] BDSET8W(&cdb[1], SBC_SAI_READ_CAPACITY_16, 4, 5); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:824:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pq = BGET8W(&spec->inq_standard[0], 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_pass.c:825:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] pd = BGET8W(&spec->inq_standard[0], 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_pass.c:827:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] rmb = BGET8W(&spec->inq_standard[1], 7, 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_pass.c:829:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] ver = BGET8W(&spec->inq_standard[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_pass.c:831:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] fmt = BGET8W(&spec->inq_standard[3], 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_lu_pass.c:1169:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] if (BGET8W(&sense_data[2+0], 6, 7) == 0x70 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:1170:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] || BGET8W(&sense_data[2+0], 6, 7) == 0x71) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:1192:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] if (BGET8W(&sense_data[2+0], 6, 7) == 0x70 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:1193:8: warning: shifting a negative signed value is undefined [-Wshift-negative-value] || BGET8W(&sense_data[2+0], 6, 7) == 0x71) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:1247:6: warning: variable 'data_alloc_len' set but not used [-Wunused-but-set-variable] int data_alloc_len; ^ istgt_lu_pass.c:1430:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] if (BGET8W(&sense_data[2+0], 6, 7) == 0x70 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:1431:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] || BGET8W(&sense_data[2+0], 6, 7) == 0x71) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:1453:9: warning: shifting a negative signed value is undefined [-Wshift-negative-value] if (BGET8W(&sense_data[2+0], 6, 7) == 0x70 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:1454:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value] || BGET8W(&sense_data[2+0], 6, 7) == 0x71) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./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_pass.c:1521:17: warning: variable 'spec' set but not used [-Wunused-but-set-variable] ISTGT_LU_PASS *spec; ^ istgt_lu_pass.c:1599: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_pass.c:1600: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_pass.c:1600: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)) ^ 35 warnings generated. cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_lu_ctl.o istgt_lu_ctl.c cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_log.o istgt_log.c cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_conf.o istgt_conf.c cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_sock.o istgt_sock.c cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_misc.o istgt_misc.c cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_queue.o istgt_queue.c cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_crc32c.o istgt_crc32c.c cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgt_md5.o istgt_md5.c cc -fstack-protector-strong -o istgt 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 istgt_lu_tape.o istgt_lu_pass.o istgt_lu_ctl.o istgt_log.o istgt_conf.o istgt_sock.o istgt_misc.o istgt_queue.o istgt_crc32c.o istgt_md5.o -lcam -lmd -lpthread cc -DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector -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.. -I. -c -o istgtcontrol.o istgtcontrol.c cc -fstack-protector-strong -o istgtcontrol istgtcontrol.o istgt_conf.o istgt_log.o istgt_sock.o istgt_misc.o istgt_md5.o -lcam -lmd -lpthread /usr/bin/sed -e 's:%%SYSCONFDIR%%:/usr/local/etc:g' -e 's:%%CONFIGDIR%%:/usr/local/etc/istgt:g' -e 's:%%MEDIADIR%%:/var/istgt:g' < istgt.large.conf.in > istgt.large.conf /usr/bin/sed -e 's:%%SYSCONFDIR%%:/usr/local/etc:g' -e 's:%%CONFIGDIR%%:/usr/local/etc/istgt:g' -e 's:%%MEDIADIR%%:/var/istgt:g' < istgt.conf.in > istgt.conf /usr/bin/sed -e 's:%%SYSCONFDIR%%:/usr/local/etc:g' -e 's:%%CONFIGDIR%%:/usr/local/etc/istgt:g' -e 's:%%MEDIADIR%%:/var/istgt:g' -e 's:%%BINDIR%%:/usr/local/bin:g' -e 's:%%SBINDIR%%:/usr/local/sbin:g' < istgt.sh.in > istgt.sh /usr/bin/sed -e 's:%%PREFIX%%:/usr/local:g' -e 's:%%CONFIGDIR%%:/usr/local/etc/istgt:g' -e 's:%%MEDIADIR%%:/var/istgt:g' < istgt.1.in > istgt.1 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for istgt-20150713_1 ===> Generating temporary packing list for subdir in src etc doc; do (cd $subdir; /usr/bin/make install) || exit $?; done /bin/mkdir -p /wrkdirs/usr/ports/net/istgt/work/stage/usr/local/bin /usr/bin/install -c -s -m 0755 istgt /wrkdirs/usr/ports/net/istgt/work/stage/usr/local/bin /usr/bin/install -c -s -m 0755 istgtcontrol /wrkdirs/usr/ports/net/istgt/work/stage/usr/local/bin /bin/mkdir -p /wrkdirs/usr/ports/net/istgt/work/stage/usr/local/etc/istgt if [ -n "istgt.sh" ] && [ -f "istgt.sh" ]; then if [ -n "/wrkdirs/usr/ports/net/istgt/work/stage/usr/local/etc/rc.d" ] && [ ! -d "/wrkdirs/usr/ports/net/istgt/work/stage/usr/local/etc/rc.d" ]; then /bin/mkdir -p /wrkdirs/usr/ports/net/istgt/work/stage/usr/local/etc/rc.d; fi fi /usr/bin/install -c -m 0644 istgt.conf /wrkdirs/usr/ports/net/istgt/work/stage/usr/local/etc/istgt/istgt.conf.sample /usr/bin/install -c -m 0644 istgt.large.conf /wrkdirs/usr/ports/net/istgt/work/stage/usr/local/etc/istgt/istgt.large.conf.sample /usr/bin/install -c -m 0600 auth.conf /wrkdirs/usr/ports/net/istgt/work/stage/usr/local/etc/istgt/auth.conf.sample /usr/bin/install -c -m 0600 istgtcontrol.conf /wrkdirs/usr/ports/net/istgt/work/stage/usr/local/etc/istgt/istgtcontrol.conf.sample if [ "xistgt.sh" != "x" -a -f "istgt.sh" ]; then /usr/bin/install -c -m 0555 istgt.sh /wrkdirs/usr/ports/net/istgt/work/stage/usr/local/etc/rc.d/istgt; fi /bin/mkdir -p /wrkdirs/usr/ports/net/istgt/work/stage/usr/local/share/man/man1 /usr/bin/install -c -m 0644 istgt.1 /wrkdirs/usr/ports/net/istgt/work/stage/usr/local/share/man/man1/ rm -f /wrkdirs/usr/ports/net/istgt/work/stage/usr/local/share/man/man1/istgt.1.gz gzip -9 /wrkdirs/usr/ports/net/istgt/work/stage/usr/local/share/man/man1/istgt.1 install -m 0644 /wrkdirs/usr/ports/net/istgt/work/istgt-20150713/ChangeLog.jp /wrkdirs/usr/ports/net/istgt/work/istgt-20150713/README /wrkdirs/usr/ports/net/istgt/work/istgt-20150713/doc/QUICKSTART /wrkdirs/usr/ports/net/istgt/work/istgt-20150713/doc/QUICKSTART.jp /wrkdirs/usr/ports/net/istgt/work/stage/usr/local/share/doc/istgt ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2024-04-03T02:42:52+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=ed877b3a43' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.99.20240122_1' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for istgt-20150713_1 ===> Building istgt-20150713_1 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for istgt-20150713_1 build of net/istgt | istgt-20150713_1 ended at Wed Apr 3 03:43:18 BST 2024 build time: 00:00:27