Diff of the two buildlogs: -- --- b1/build.log 2023-06-06 15:07:46.950305506 +0000 +++ b2/build.log 2023-06-06 15:11:54.491465804 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Jun 6 03:00:06 -12 2023 -I: pbuilder-time-stamp: 1686063606 +I: Current time: Tue Jul 9 11:31:01 +14 2024 +I: pbuilder-time-stamp: 1720474261 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -16,7 +16,7 @@ I: copying [./plink_1.07+dfsg.orig.tar.xz] I: copying [./plink_1.07+dfsg-4.debian.tar.xz] I: Extracting source -gpgv: Signature made Sun Oct 31 03:36:45 2021 -12 +gpgv: Signature made Mon Nov 1 05:36:45 2021 +14 gpgv: using RSA key 3E99A526F5DCC0CBBF1CEEA600BAE74B343369F1 gpgv: issuer "nilesh@debian.org" gpgv: Can't check signature: No public key @@ -31,135 +31,167 @@ dpkg-source: info: applying gcc11.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/3538489/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/120132/tmp/hooks/D01_modify_environment starting +debug: Running on ionos5-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jul 9 11:31 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/120132/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/120132/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=15 ' - DISTRIBUTION='bookworm' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="15" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.15(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=16 ' + DIRSTACK=() + DISTRIBUTION=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='715acf252bdf4143a83459f3bb80b3fc' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='3538489' - PS1='# ' - PS2='> ' + INVOCATION_ID=6b31b9ca10da4130a7da75b52b48160d + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=120132 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.OHaFc1qs/pbuilderrc_QEeR --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.OHaFc1qs/b1 --logfile b1/build.log plink_1.07+dfsg-4.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://78.137.99.97:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.OHaFc1qs/pbuilderrc_ftgL --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.OHaFc1qs/b2 --logfile b2/build.log --extrapackages usrmerge plink_1.07+dfsg-4.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://85.184.249.68:3128 I: uname -a - Linux ionos1-amd64 5.10.0-23-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-0.deb11.7-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.20-2~bpo11+1 (2023-04-23) x86_64 GNU/Linux I: ls -l /bin total 5632 - -rwxr-xr-x 1 root root 1265648 Apr 23 09:23 bash - -rwxr-xr-x 3 root root 39224 Sep 18 2022 bunzip2 - -rwxr-xr-x 3 root root 39224 Sep 18 2022 bzcat - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Sep 18 2022 bzdiff - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4893 Nov 27 2021 bzexe - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Sep 18 2022 bzgrep - -rwxr-xr-x 3 root root 39224 Sep 18 2022 bzip2 - -rwxr-xr-x 1 root root 14568 Sep 18 2022 bzip2recover - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Sep 18 2022 bzmore - -rwxr-xr-x 1 root root 44016 Sep 20 2022 cat - -rwxr-xr-x 1 root root 68656 Sep 20 2022 chgrp - -rwxr-xr-x 1 root root 64496 Sep 20 2022 chmod - -rwxr-xr-x 1 root root 72752 Sep 20 2022 chown - -rwxr-xr-x 1 root root 151152 Sep 20 2022 cp - -rwxr-xr-x 1 root root 125640 Jan 5 01:20 dash - -rwxr-xr-x 1 root root 121904 Sep 20 2022 date - -rwxr-xr-x 1 root root 89240 Sep 20 2022 dd - -rwxr-xr-x 1 root root 102200 Sep 20 2022 df - -rwxr-xr-x 1 root root 151344 Sep 20 2022 dir - -rwxr-xr-x 1 root root 88656 Mar 22 22:02 dmesg - lrwxrwxrwx 1 root root 8 Dec 19 01:33 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Dec 19 01:33 domainname -> hostname - -rwxr-xr-x 1 root root 43856 Sep 20 2022 echo - -rwxr-xr-x 1 root root 41 Jan 24 02:43 egrep - -rwxr-xr-x 1 root root 35664 Sep 20 2022 false - -rwxr-xr-x 1 root root 41 Jan 24 02:43 fgrep - -rwxr-xr-x 1 root root 85600 Mar 22 22:02 findmnt - -rwsr-xr-x 1 root root 35128 Mar 22 20:35 fusermount - -rwxr-xr-x 1 root root 203152 Jan 24 02:43 grep - -rwxr-xr-x 2 root root 2346 Apr 9 2022 gunzip - -rwxr-xr-x 1 root root 6447 Apr 9 2022 gzexe - -rwxr-xr-x 1 root root 98136 Apr 9 2022 gzip - -rwxr-xr-x 1 root root 22680 Dec 19 01:33 hostname - -rwxr-xr-x 1 root root 72824 Sep 20 2022 ln - -rwxr-xr-x 1 root root 53024 Mar 23 00:40 login - -rwxr-xr-x 1 root root 151344 Sep 20 2022 ls - -rwxr-xr-x 1 root root 207168 Mar 22 22:02 lsblk - -rwxr-xr-x 1 root root 97552 Sep 20 2022 mkdir - -rwxr-xr-x 1 root root 72912 Sep 20 2022 mknod - -rwxr-xr-x 1 root root 43952 Sep 20 2022 mktemp - -rwxr-xr-x 1 root root 59712 Mar 22 22:02 more - -rwsr-xr-x 1 root root 59704 Mar 22 22:02 mount - -rwxr-xr-x 1 root root 18744 Mar 22 22:02 mountpoint - -rwxr-xr-x 1 root root 142968 Sep 20 2022 mv - lrwxrwxrwx 1 root root 8 Dec 19 01:33 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 2 18:25 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 43952 Sep 20 2022 pwd - lrwxrwxrwx 1 root root 4 Apr 23 09:23 rbash -> bash - -rwxr-xr-x 1 root root 52112 Sep 20 2022 readlink - -rwxr-xr-x 1 root root 72752 Sep 20 2022 rm - -rwxr-xr-x 1 root root 56240 Sep 20 2022 rmdir - -rwxr-xr-x 1 root root 27560 Nov 2 2022 run-parts - -rwxr-xr-x 1 root root 126424 Jan 5 07:55 sed - lrwxrwxrwx 1 root root 4 Jan 5 01:20 sh -> dash - -rwxr-xr-x 1 root root 43888 Sep 20 2022 sleep - -rwxr-xr-x 1 root root 85008 Sep 20 2022 stty - -rwsr-xr-x 1 root root 72000 Mar 22 22:02 su - -rwxr-xr-x 1 root root 39824 Sep 20 2022 sync - -rwxr-xr-x 1 root root 531984 Apr 6 02:25 tar - -rwxr-xr-x 1 root root 14520 Nov 2 2022 tempfile - -rwxr-xr-x 1 root root 109616 Sep 20 2022 touch - -rwxr-xr-x 1 root root 35664 Sep 20 2022 true - -rwxr-xr-x 1 root root 14568 Mar 22 20:35 ulockmgr_server - -rwsr-xr-x 1 root root 35128 Mar 22 22:02 umount - -rwxr-xr-x 1 root root 43888 Sep 20 2022 uname - -rwxr-xr-x 2 root root 2346 Apr 9 2022 uncompress - -rwxr-xr-x 1 root root 151344 Sep 20 2022 vdir - -rwxr-xr-x 1 root root 72024 Mar 22 22:02 wdctl - lrwxrwxrwx 1 root root 8 Dec 19 01:33 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Apr 9 2022 zcat - -rwxr-xr-x 1 root root 1678 Apr 9 2022 zcmp - -rwxr-xr-x 1 root root 6460 Apr 9 2022 zdiff - -rwxr-xr-x 1 root root 29 Apr 9 2022 zegrep - -rwxr-xr-x 1 root root 29 Apr 9 2022 zfgrep - -rwxr-xr-x 1 root root 2081 Apr 9 2022 zforce - -rwxr-xr-x 1 root root 8103 Apr 9 2022 zgrep - -rwxr-xr-x 1 root root 2206 Apr 9 2022 zless - -rwxr-xr-x 1 root root 1842 Apr 9 2022 zmore - -rwxr-xr-x 1 root root 4577 Apr 9 2022 znew -I: user script /srv/workspace/pbuilder/3538489/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1265648 Apr 24 2023 bash + -rwxr-xr-x 3 root root 39224 Sep 19 2022 bunzip2 + -rwxr-xr-x 3 root root 39224 Sep 19 2022 bzcat + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Sep 19 2022 bzdiff + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4893 Nov 28 2021 bzexe + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Sep 19 2022 bzgrep + -rwxr-xr-x 3 root root 39224 Sep 19 2022 bzip2 + -rwxr-xr-x 1 root root 14568 Sep 19 2022 bzip2recover + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Sep 19 2022 bzmore + -rwxr-xr-x 1 root root 44016 Sep 21 2022 cat + -rwxr-xr-x 1 root root 68656 Sep 21 2022 chgrp + -rwxr-xr-x 1 root root 64496 Sep 21 2022 chmod + -rwxr-xr-x 1 root root 72752 Sep 21 2022 chown + -rwxr-xr-x 1 root root 151152 Sep 21 2022 cp + -rwxr-xr-x 1 root root 125640 Jan 6 2023 dash + -rwxr-xr-x 1 root root 121904 Sep 21 2022 date + -rwxr-xr-x 1 root root 89240 Sep 21 2022 dd + -rwxr-xr-x 1 root root 102200 Sep 21 2022 df + -rwxr-xr-x 1 root root 151344 Sep 21 2022 dir + -rwxr-xr-x 1 root root 88656 Mar 24 2023 dmesg + lrwxrwxrwx 1 root root 8 Dec 20 2022 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Dec 20 2022 domainname -> hostname + -rwxr-xr-x 1 root root 43856 Sep 21 2022 echo + -rwxr-xr-x 1 root root 41 Jan 25 2023 egrep + -rwxr-xr-x 1 root root 35664 Sep 21 2022 false + -rwxr-xr-x 1 root root 41 Jan 25 2023 fgrep + -rwxr-xr-x 1 root root 85600 Mar 24 2023 findmnt + -rwsr-xr-x 1 root root 35128 Mar 23 2023 fusermount + -rwxr-xr-x 1 root root 203152 Jan 25 2023 grep + -rwxr-xr-x 2 root root 2346 Apr 10 2022 gunzip + -rwxr-xr-x 1 root root 6447 Apr 10 2022 gzexe + -rwxr-xr-x 1 root root 98136 Apr 10 2022 gzip + -rwxr-xr-x 1 root root 22680 Dec 20 2022 hostname + -rwxr-xr-x 1 root root 72824 Sep 21 2022 ln + -rwxr-xr-x 1 root root 53024 Mar 24 2023 login + -rwxr-xr-x 1 root root 151344 Sep 21 2022 ls + -rwxr-xr-x 1 root root 207168 Mar 24 2023 lsblk + -rwxr-xr-x 1 root root 97552 Sep 21 2022 mkdir + -rwxr-xr-x 1 root root 72912 Sep 21 2022 mknod + -rwxr-xr-x 1 root root 43952 Sep 21 2022 mktemp + -rwxr-xr-x 1 root root 59712 Mar 24 2023 more + -rwsr-xr-x 1 root root 59704 Mar 24 2023 mount + -rwxr-xr-x 1 root root 18744 Mar 24 2023 mountpoint + -rwxr-xr-x 1 root root 142968 Sep 21 2022 mv + lrwxrwxrwx 1 root root 8 Dec 20 2022 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 3 2023 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 43952 Sep 21 2022 pwd + lrwxrwxrwx 1 root root 4 Apr 24 2023 rbash -> bash + -rwxr-xr-x 1 root root 52112 Sep 21 2022 readlink + -rwxr-xr-x 1 root root 72752 Sep 21 2022 rm + -rwxr-xr-x 1 root root 56240 Sep 21 2022 rmdir + -rwxr-xr-x 1 root root 27560 Nov 3 2022 run-parts + -rwxr-xr-x 1 root root 126424 Jan 6 2023 sed + lrwxrwxrwx 1 root root 9 Jul 9 11:31 sh -> /bin/bash + -rwxr-xr-x 1 root root 43888 Sep 21 2022 sleep + -rwxr-xr-x 1 root root 85008 Sep 21 2022 stty + -rwsr-xr-x 1 root root 72000 Mar 24 2023 su + -rwxr-xr-x 1 root root 39824 Sep 21 2022 sync + -rwxr-xr-x 1 root root 531984 Apr 7 2023 tar + -rwxr-xr-x 1 root root 14520 Nov 3 2022 tempfile + -rwxr-xr-x 1 root root 109616 Sep 21 2022 touch + -rwxr-xr-x 1 root root 35664 Sep 21 2022 true + -rwxr-xr-x 1 root root 14568 Mar 23 2023 ulockmgr_server + -rwsr-xr-x 1 root root 35128 Mar 24 2023 umount + -rwxr-xr-x 1 root root 43888 Sep 21 2022 uname + -rwxr-xr-x 2 root root 2346 Apr 10 2022 uncompress + -rwxr-xr-x 1 root root 151344 Sep 21 2022 vdir + -rwxr-xr-x 1 root root 72024 Mar 24 2023 wdctl + lrwxrwxrwx 1 root root 8 Dec 20 2022 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Apr 10 2022 zcat + -rwxr-xr-x 1 root root 1678 Apr 10 2022 zcmp + -rwxr-xr-x 1 root root 6460 Apr 10 2022 zdiff + -rwxr-xr-x 1 root root 29 Apr 10 2022 zegrep + -rwxr-xr-x 1 root root 29 Apr 10 2022 zfgrep + -rwxr-xr-x 1 root root 2081 Apr 10 2022 zforce + -rwxr-xr-x 1 root root 8103 Apr 10 2022 zgrep + -rwxr-xr-x 1 root root 2206 Apr 10 2022 zless + -rwxr-xr-x 1 root root 1842 Apr 10 2022 zmore + -rwxr-xr-x 1 root root 4577 Apr 10 2022 znew +I: user script /srv/workspace/pbuilder/120132/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -228,7 +260,7 @@ Get: 29 http://deb.debian.org/debian bookworm/main amd64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 30 http://deb.debian.org/debian bookworm/main amd64 debhelper all 13.11.4 [942 kB] Get: 31 http://deb.debian.org/debian bookworm/main amd64 zlib1g-dev amd64 1:1.2.13.dfsg-1 [916 kB] -Fetched 19.6 MB in 0s (40.1 MB/s) +Fetched 19.6 MB in 0s (68.2 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19591 files and directories currently installed.) @@ -366,8 +398,19 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +usrmerge is already the newest version (35). +0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/plink-1.07+dfsg/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../plink_1.07+dfsg-4_source.changes +I: user script /srv/workspace/pbuilder/120132/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +removed '/etc/unsupported-skip-usrmerge-conversion' +The system has been successfully converted. +I: user script /srv/workspace/pbuilder/120132/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/plink-1.07+dfsg/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../plink_1.07+dfsg-4_source.changes dpkg-buildpackage: info: source package plink dpkg-buildpackage: info: source version 1.07+dfsg-4 dpkg-buildpackage: info: source distribution unstable @@ -379,7 +422,7 @@ debian/rules override_dh_auto_clean make[1]: Entering directory '/build/plink-1.07+dfsg' dh_auto_clean - make -j15 clean + make -j16 clean make[2]: Entering directory '/build/plink-1.07+dfsg' rm -f *.o *~ make[2]: Leaving directory '/build/plink-1.07+dfsg' @@ -394,7 +437,7 @@ debian/rules override_dh_auto_build make[1]: Entering directory '/build/plink-1.07+dfsg' dh_auto_build -- CXXFLAGS='-Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3' FORCE_DYNAMIC=1 - make -j15 "INSTALL=install --strip-program=true" "CXXFLAGS=-Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3" FORCE_DYNAMIC=1 + make -j16 "INSTALL=install --strip-program=true" "CXXFLAGS=-Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3" FORCE_DYNAMIC=1 make[2]: Entering directory '/build/plink-1.07+dfsg' g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c plink.cpp g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c options.cpp @@ -412,341 +455,53 @@ g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c mds.cpp g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c output.cpp g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c informative.cpp -In file included from helper.h:24, - from helper.cpp:24: +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c assoc.cpp +In file included from options.cpp:16: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -helper.cpp: In function 'std::string display(std::vector >&)': -helper.cpp:58:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 58 | for (int i=0; i >&)': -helper.cpp:66:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 66 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 76 | for (int i=0; i< m.size(); i++) - | ~^~~~~~~~~~ -helper.cpp:79:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 79 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 90 | for (int i=0; i< m.size(); i++) - | ~^~~~~~~~~~ -helper.cpp: In function 'void display(std::vector&)': -helper.cpp:100:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 100 | for (int i=0; i< m.size(); i++) - | ~^~~~~~~~~~ -helper.cpp: In member function 'void CArgs::fromPriorLog(std::string)': -helper.cpp:193:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 193 | for (int t=0; t > CArgs::value(std::string, int)': -helper.cpp:267:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 267 | if ( (i+j) < a.size() ) - | ~~~~~~^~~~~~~~~~ -helper.cpp:277:16: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 277 | if (r.size() != c) error("Not enough arguments given for option: "+s+" "); - | ~~~~~~~~~^~~~ -helper.cpp: In function 'std::vector > parse2str(std::string)': -helper.cpp:306:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 306 | for (int i=0 ; i < s.length() ; i++) - | ~~^~~~~~~~~~~~ -helper.cpp:307:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 307 | if (s[i] == ',' || i == s.length()-1 ) - | ~~^~~~~~~~~~~~~~~ -helper.cpp:309:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 309 | if (i == s.length()-1) t += s[i]; - | ~~^~~~~~~~~~~~~~~ -helper.cpp: In function 'std::vector parse2int(std::string)': -helper.cpp:323:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 323 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 461 | for (int i=1; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 595 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 611 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 659 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 664 | for (int i=0;i > listPossibleHaplotypes(Plink&, std::vector)': -helper.cpp:709:10: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] - 709 | while(h >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 729 | for (int h=0; h::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 775 | for (int i=0; i&, matrix_t&, boolmatrix_t&, bool)': -helper.cpp:795:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 795 | for (int s = 0 ; s < snps.size() ; s++) - | ~~^~~~~~~~~~~~~ -helper.cpp: In function 'std::string chromosomeName(int)': -helper.cpp:952:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 952 | if ( c < 0 || c >= par::chr_code.size() ) - | ~~^~~~~~~~~~~~~~~~~~~~~~~ -helper.cpp: In function 'int getMarkerChromosome(Plink&, std::string)': -helper.cpp:959:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 959 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 966 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 973 | for (int l=0;l getChromosomeMarkerRange(Plink&, int)': -helper.cpp:989:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 989 | for (int i=0;i getChromosomeRange(Plink&)': -helper.cpp:1040:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1040 | for (int i=0;i >)': -helper.cpp:1172:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1172 | for (int k=0; k::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 1264 | if (sample[i]->fid.length() > par::pp_maxfid) - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -helper.cpp:1267:35: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 1267 | if (sample[i]->iid.length() > par::pp_maxiid) - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -helper.cpp:1273:33: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 1273 | if (locus[l]->name.length() > par::pp_maxsnp) - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -helper.cpp: In function 'std::vector vif_prune(std::vector >, double, std::vector&)': -helper.cpp:1389:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1389 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1391 | for (int j=0; j&)': -helper.cpp:2204:12: warning: unused variable 'i' [-Wunused-variable] - 2204 | int i = 0; - | ^ -helper.cpp: In member function 'void Plink::filterOnCovariate()': -helper.cpp:2455:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2455 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2462 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2491 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2510 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2530 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2549 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2568 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2587 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2606 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2638 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -helper.cpp:2671:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2671 | for (int j=1; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2722 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2756 | for (int j=1; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -helper.cpp: In function 'void makePersonMap(Plink&, std::map, Individual*>&)': -helper.cpp:2935:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2935 | for (int i=0; i&)': -helper.cpp:2959:21: warning: comparison of integer expressions of different signedness: 'std::vector::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 2959 | if ( input.size() != P.nl_all ) - | ~~~~~~~~~~~~~^~~~~~~~~~~ -filters.cpp: In member function 'void Plink::filterSNPs()': -filters.cpp:95:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 95 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 123 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 132 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 155 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 163 | for (int l=0; l, std::set > readRange(std::string)': -helper.cpp:3097:20: warning: unused variable 's' [-Wunused-variable] - 3097 | set * s; - | ^ -filters.cpp:198:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 198 | for (int i=0;i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 273 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 591 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 611 | for (int i=0; ichr; - | ^~~~~~~~~~~~~~ -helper.cpp:3329:9: warning: unused variable 'nextChromosome' [-Wunused-variable] - 3329 | int nextChromosome; - | ^~~~~~~~~~~~~~ -filters.cpp:739:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 739 | for ( int l = 0 ; l < locus.size() ; l++ ) - | ~~^~~~~~~~~~~~~~ -filters.cpp:762:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 762 | for ( int i = 0 ; i < sample.size() ; i++ ) - | ~~^~~~~~~~~~~~~~~ -filters.cpp:1078:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1078 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1091 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1143 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1165 | for ( int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -filters.cpp: In member function 'void Plink::thinSNPs()': -filters.cpp:1277:7: warning: unused variable 'x' [-Wunused-variable] - 1277 | int x = 0; - | ^ -In file included from output.cpp:23: +In file included from multi.cpp:16: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -In file included from multi.cpp:16: +In file included from tinput.cpp:24: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -In file included from binput.cpp:23: +In file included from input.cpp:24: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -In file included from mds.cpp:21: +In file included from filters.cpp:24: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -output.cpp: In member function 'void Plink::displayGenomePV()': -output.cpp:84:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 84 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 86 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 89 | for (int k=0; k >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -multi.cpp: In member function 'std::vector Plink::calcMultiPoint(std::vector&, Z, std::ofstream&)': -multi.cpp:295:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 295 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 304 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 357 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 372 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 126 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 398 | for(int l=0; l < locus.size(); l++) | ~~^~~~~~~~~~~~~~ -output.cpp: In member function 'void Plink::display_twolocus()': -output.cpp:402:28: warning: variable 'loc1' set but not used [-Wunused-but-set-variable] - 402 | vector::iterator loc1 = locus.begin()+m1; - | ^~~~ -output.cpp:403:28: warning: variable 'loc2' set but not used [-Wunused-but-set-variable] - 403 | vector::iterator loc2 = locus.begin()+m2; - | ^~~~ -In file included from plink.cpp:28: +In file included from genome.cpp:24: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -mds.cpp: In member function 'void Plink::generateMDS()': -mds.cpp:190:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 190 | for (int i1=0; i1::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 191 | for (int i2=0; i2 >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 520 | for (int s=0; s Plink::calcMultiPoint(std::vector&, Z, std::ofstream&)': +multi.cpp:295:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 295 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 304 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 357 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 372 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 161 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 218 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 526 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 553 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 246 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 256 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 261 | if ( (!par::plink) && (!par::run_chr==0) && nl_actual < locus.size() ) + | ~~~~~~~~~~^~~~~~~~~~~~~~ +output.cpp: In member function 'void Plink::displayGenomePV()': +output.cpp:84:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 84 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 86 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 271 | for(int l=0; l < locus.size(); l++) + | ~~^~~~~~~~~~~~~~ +output.cpp:89:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 89 | for (int k=0; k::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 309 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 95 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 591 | if ( c > sample.size()) + | ~~^~~~~~~~~~~~~~~ +filters.cpp:123:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 123 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 132 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 155 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 163 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 603 | if ( gn != 2 * sample.size() ) + | ~~~^~~~~~~~~~~~~~~~~~~~ +filters.cpp:198:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 198 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 516 | if ( i == include.size() ) + | ~~^~~~~~~~~~~~~~~~~ +input.cpp:521:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 521 | if ( i > include.size()) + | ~~^~~~~~~~~~~~~~~~ +input.cpp:545:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 545 | if ( gn != 2 * include.size() ) + | ~~~^~~~~~~~~~~~~~~~~~~~~ +input.cpp:579:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 579 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 595 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 611 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 631 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 273 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ +genome.cpp: In member function 'void Plink::calcStratifiedAlleleFreqs()': +genome.cpp:99:15: warning: unused variable 'geno_nm' [-Wunused-variable] + 99 | int geno_nm = 0; + | ^~~~~~~ +genome.cpp:81:14: warning: unused variable 'tothet' [-Wunused-variable] + 81 | double tothet = 0; + | ^~~~~~ +filters.cpp:249:14: warning: unused variable 'freq' [-Wunused-variable] + 249 | double freq; + | ^~~~ +filters.cpp:250:11: warning: unused variable 'nm' [-Wunused-variable] + 250 | int nm; + | ^~ +input.cpp: In member function 'void Plink::readSet()': +input.cpp:695:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 695 | for (int i=0; i&, std::vector&, std::vector >&)': stats.cpp:458:18: warning: unused variable 'k' [-Wunused-variable] 458 | int m,l,iter,i,k; | ^ +filters.cpp:591:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 591 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 611 | for (int i=0; i::iterator loc1 = locus.begin()+m1; + | ^~~~ +output.cpp:403:28: warning: variable 'loc2' set but not used [-Wunused-but-set-variable] + 403 | vector::iterator loc2 = locus.begin()+m2; + | ^~~~ stats.cpp: In function 'std::vector > msqrt(std::vector >&)': stats.cpp:906:16: warning: unused variable 'eps' [-Wunused-variable] 906 | const double eps = 1e-12; | ^~~ -mds.cpp:279:21: warning: comparison of integer expressions of different signedness: 'std::vector::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 279 | if ( elist.size() != par::cluster_mds_dim ) - | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -In file included from input.cpp:24: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -mds.cpp:242:8: warning: unused variable 'flag' [-Wunused-variable] - 242 | bool flag = svd(D,eigenvalue,eigenvector); - | ^~~~ -In file included from tinput.cpp:24: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ +genome.cpp: In member function 'void Plink::calcFst()': +genome.cpp:391:14: warning: unused variable 'ht' [-Wunused-variable] + 391 | double ht = 2 * locus[l]->freq * ( 1 - locus[l]->freq ); + | ^~ +filters.cpp:739:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 739 | for ( int l = 0 ; l < locus.size() ; l++ ) + | ~~^~~~~~~~~~~~~~ +filters.cpp:762:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 762 | for ( int i = 0 ; i < sample.size() ; i++ ) + | ~~^~~~~~~~~~~~~~~ +input.cpp: In member function 'bool Plink::readClusterFile(bool)': +input.cpp:787:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 787 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 520 | for (int s=0; s::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 526 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 553 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1477 | for (int c = 0 ; c < keep.size(); c++) @@ -855,11 +725,94 @@ stats.cpp:1531:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1531 | for (int i = 0; i < v.size(); i++) | ~~^~~~~~~~~~ -output.cpp: In member function 'void Plink::keep2SetsForGenome()': -output.cpp:788:7: warning: unused variable 'n_removed' [-Wunused-variable] - 788 | int n_removed = deleteIndividuals(del); - | ^~~~~~~~~ -In file included from genome.cpp:24: +genome.cpp: In member function 'Z Plink::calcGenomeIBD(Individual*, Individual*, Z)': +genome.cpp:843:10: warning: unused variable 'e10' [-Wunused-variable] + 843 | double e10 = E10*S; + | ^~~ +genome.cpp:844:10: warning: unused variable 'e20' [-Wunused-variable] + 844 | double e20 = E20*S; + | ^~~ +genome.cpp:848:10: warning: unused variable 'e21' [-Wunused-variable] + 848 | double e21 = E21*S; + | ^~~ +input.cpp:817:25: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 817 | if (tokens.size() < 2+par::mult_clst) + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ +input.cpp:821:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 821 | for (int i0=0; i0::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 897 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1078 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1091 | for (int l=0; l >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 927 | for ( int i=2; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 961 | else if ( ccount != tokens.size() ) + | ~~~~~~~^~~~~~~~~~~~~~~~ +input.cpp:965:25: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 965 | if (tokens.size() < 2+par::mult_pheno) + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ +filters.cpp:1143:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1143 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1037 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1043 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1165 | for ( int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1064 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1208 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1232 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1227 | for (int i=0;i >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 1256 | if (tokens.size() < 2+par::mult_covar) + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ +input.cpp:1261:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1261 | for (int i0=0; i0::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1335 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) @@ -868,76 +821,32 @@ cluster.cpp:272:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 272 | for (int z=1; z<=qt.size(); z++) | ~^~~~~~~~~~~ -input.cpp: In member function 'void Plink::readData()': -input.cpp:516:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 516 | if ( i == include.size() ) - | ~~^~~~~~~~~~~~~~~~~ -input.cpp:521:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 521 | if ( i > include.size()) - | ~~^~~~~~~~~~~~~~~~ -input.cpp:545:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 545 | if ( gn != 2 * include.size() ) - | ~~~^~~~~~~~~~~~~~~~~~~~~ -input.cpp:579:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 579 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 595 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 161 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 611 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 218 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 246 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 256 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 261 | if ( (!par::plink) && (!par::run_chr==0) && nl_actual < locus.size() ) - | ~~~~~~~~~~^~~~~~~~~~~~~~ -tinput.cpp:271:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 271 | for(int l=0; l < locus.size(); l++) - | ~~^~~~~~~~~~~~~~ -tinput.cpp:309:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 309 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 631 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 591 | if ( c > sample.size()) - | ~~^~~~~~~~~~~~~~~ -tinput.cpp:603:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 603 | if ( gn != 2 * sample.size() ) - | ~~~^~~~~~~~~~~~~~~~~~~~ -input.cpp: In member function 'void Plink::readSet()': -input.cpp:695:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 695 | for (int i=0; i >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 1374 | else if (tokens.size() != par::clist_number + 2 ) + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ +output.cpp: In member function 'void Plink::keep2SetsForGenome()': +output.cpp:788:7: warning: unused variable 'n_removed' [-Wunused-variable] + 788 | int n_removed = deleteIndividuals(del); + | ^~~~~~~~~ +In file included from informative.cpp:18: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ cluster.cpp:452:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 452 | for (int i=0;i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 511 | for (int i=0;i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ cluster.cpp:626:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 626 | for ( int i = 4; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 651 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1519 | for (int c=0; c::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1538 | for (int c=0; c >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 784 | for (int i=0;i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 786 | for (int j=0;j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 787 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1572 | for (int i=0; i >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 1599 | else if (tokens.size() != par::plist_number + 2 ) + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ +input.cpp:1602:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1602 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1745 | for (int c=0; c::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1764 | for (int c=0; c::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1792 | for (int i=0; ifreq * ( 1 - locus[l]->freq ); - | ^~ -In file included from plink.cpp:35: -phase.h: In member function 'void HaploPhase::reset()': -phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 252 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 919 | for (int k=0;k >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 817 | if (tokens.size() < 2+par::mult_clst) - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -input.cpp:821:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 821 | for (int i0=0; i0 >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 954 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1038 | for(int j=0;j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 897 | for (int i=0; i >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 1041 | if (cl.size()==1 || cl.size()==par::max_cluster_N) done=true; | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ @@ -1012,72 +924,63 @@ cluster.cpp:1061:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1061 | for (int j2=0; j2 >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2200 | for (int i=0; i&, std::vector&, int&)': +input.cpp:2116:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2116 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1107 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1110 | for (int j=0; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 927 | for ( int i=2; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -input.cpp:961:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 961 | else if ( ccount != tokens.size() ) - | ~~~~~~~^~~~~~~~~~~~~~~~ +helper.cpp: In function 'std::string display(std::vector >&)': +helper.cpp:58:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 58 | for (int i=0; i >&)': +helper.cpp:66:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 66 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 76 | for (int i=0; i< m.size(); i++) + | ~^~~~~~~~~~ cluster.cpp:1133:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1133 | for (int j=0; j >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 965 | if (tokens.size() < 2+par::mult_pheno) - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ +helper.cpp:79:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 79 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 90 | for (int i=0; i< m.size(); i++) + | ~^~~~~~~~~~ cluster.cpp:1163:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1163 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2172 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2200 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2210 | for (int j=0; j&)': +helper.cpp:100:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 100 | for (int i=0; i< m.size(); i++) + | ~^~~~~~~~~~ +input.cpp:2215:57: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2215 | if ( (!par::plink) && (!par::run_chr==0) && nl_actual < locus.size() ) + | ~~~~~~~~~~^~~~~~~~~~~~~~ cluster.cpp:1169:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1169 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2322 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1037 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1043 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1064 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2367 | for (int i=0; i < setname.size();i++) - | ~~^~~~~~~~~~~~~~~~ -output.cpp:2380:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2380 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2225 | for(int l=0; l < locus.size(); l++) + | ~~^~~~~~~~~~~~~~ cluster.cpp: In function 'double cldist(std::vector >&, std::vector&, std::vector&)': cluster.cpp:1203:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1203 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1229 | for (int j=0; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2409 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2412 | for (int l=0; l&, std::vector&)': cluster.cpp:1254:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1254 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1291 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1208 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2389 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2397 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2419 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1232 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2453 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2471 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1227 | for (int i=0;i >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 1256 | if (tokens.size() < 2+par::mult_covar) - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ -input.cpp:1261:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1261 | for (int i0=0; i0 >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1643 | for ( int i = 4; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1664 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1335 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 196 | for (int k=0; k >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 1374 | else if (tokens.size() != par::clist_number + 2 ) - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -helper.cpp: In function 'int getInt(std::string, std::string)': -helper.cpp:378:58: warning: control reaches end of non-void function [-Wreturn-type] - 378 | error("Not valid integer argument for : "+a+" [ "+s+" ]"); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -helper.cpp: In function 'long unsigned int getLongUnsignedInt(std::string, std::string)': -helper.cpp:391:58: warning: control reaches end of non-void function [-Wreturn-type] - 391 | error("Not valid integer argument for : "+a+" [ "+s+" ]"); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -helper.cpp: In function 'double getDouble(std::string, std::string)': -helper.cpp:404:58: warning: control reaches end of non-void function [-Wreturn-type] - 404 | error("Not valid numeric argument for : "+a+" [ "+s+" ]"); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -input.cpp:1519:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1519 | for (int c=0; c::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1538 | for (int c=0; c::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1572 | for (int i=0; i >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 1599 | else if (tokens.size() != par::plist_number + 2 ) - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -input.cpp:1602:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1602 | for (int i=0;i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 80 | for ( int i = 4; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 105 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1745 | for (int c=0; c::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1764 | for (int c=0; c >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +helper.cpp: In member function 'void CArgs::fromPriorLog(std::string)': +helper.cpp:193:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 193 | for (int t=0; t > CArgs::value(std::string, int)': +helper.cpp:267:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 267 | if ( (i+j) < a.size() ) + | ~~~~~~^~~~~~~~~~ +helper.cpp:277:16: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 277 | if (r.size() != c) error("Not enough arguments given for option: "+s+" "); + | ~~~~~~~~~^~~~ +helper.cpp: In function 'std::vector > parse2str(std::string)': +helper.cpp:306:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 306 | for (int i=0 ; i < s.length() ; i++) + | ~~^~~~~~~~~~~~ +helper.cpp:307:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 307 | if (s[i] == ',' || i == s.length()-1 ) + | ~~^~~~~~~~~~~~~~~ +helper.cpp:309:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 309 | if (i == s.length()-1) t += s[i]; + | ~~^~~~~~~~~~~~~~~ +helper.cpp: In function 'std::vector parse2int(std::string)': +helper.cpp:323:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 323 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 461 | for (int i=1; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 595 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 611 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 659 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 664 | for (int i=0;i > listPossibleHaplotypes(Plink&, std::vector)': +helper.cpp:709:10: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] + 709 | while(h >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 729 | for (int h=0; h::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 775 | for (int i=0; i&, matrix_t&, boolmatrix_t&, bool)': +helper.cpp:795:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 795 | for (int s = 0 ; s < snps.size() ; s++) + | ~~^~~~~~~~~~~~~ +output.cpp: In member function 'void Plink::outputSetFile()': +output.cpp:2200:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2200 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 952 | if ( c < 0 || c >= par::chr_code.size() ) + | ~~^~~~~~~~~~~~~~~~~~~~~~~ +helper.cpp: In function 'int getMarkerChromosome(Plink&, std::string)': +helper.cpp:959:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 959 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 966 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 973 | for (int l=0;l getChromosomeMarkerRange(Plink&, int)': +helper.cpp:989:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 989 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 190 | for (int i1=0; i1::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 191 | for (int i2=0; i2 getChromosomeRange(Plink&)': +helper.cpp:1040:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1040 | for (int i=0;i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2322 | for (int j=0; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2367 | for (int i=0; i < setname.size();i++) + | ~~^~~~~~~~~~~~~~~~ +helper.cpp: In function 'void checkFileExists(std::vector >)': +helper.cpp:1172:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1172 | for (int k=0; k >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2380 | for (int i=0;i::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 1264 | if (sample[i]->fid.length() > par::pp_maxfid) + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ +helper.cpp:1267:35: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 1267 | if (sample[i]->iid.length() > par::pp_maxiid) + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ +helper.cpp:1273:33: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 1273 | if (locus[l]->name.length() > par::pp_maxsnp) + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ +output.cpp: In member function 'void Plink::writeSetFile()': +output.cpp:2409:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2409 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2412 | for (int l=0; l vif_prune(std::vector >, double, std::vector&)': +helper.cpp:1389:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1389 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1391 | for (int j=0; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 252 | for (int i=0; i::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 279 | if ( elist.size() != par::cluster_mds_dim ) + | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ +mds.cpp:242:8: warning: unused variable 'flag' [-Wunused-variable] + 242 | bool flag = svd(D,eigenvalue,eigenvector); + | ^~~~ +In file included from plink.cpp:40: +idhelp.h: In member function 'void IDGroup::display()': +idhelp.h:196:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 196 | for (int k=0; k&)': +helper.cpp:2204:12: warning: unused variable 'i' [-Wunused-variable] + 2204 | int i = 0; + | ^ +helper.cpp: In member function 'void Plink::filterOnCovariate()': +helper.cpp:2455:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2455 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2462 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1792 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2491 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2510 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2530 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2549 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2568 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2587 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2606 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2638 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2671 | for (int j=1; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2722 | for (int i=0; i&, std::vector&, int&)': -input.cpp:2116:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2116 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2172 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2200 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2210 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2215 | if ( (!par::plink) && (!par::run_chr==0) && nl_actual < locus.size() ) - | ~~~~~~~~~~^~~~~~~~~~~~~~ -input.cpp:2225:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2225 | for(int l=0; l < locus.size(); l++) - | ~~^~~~~~~~~~~~~~ -input.cpp: In member function 'void Plink::readFamFile(std::string)': -input.cpp:2389:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2389 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2397 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2419 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2453 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2471 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +helper.cpp:2756:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2756 | for (int j=1; j, Individual*>&)': +helper.cpp:2935:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2935 | for (int i=0; i&)': +helper.cpp:2959:21: warning: comparison of integer expressions of different signedness: 'std::vector::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 2959 | if ( input.size() != P.nl_all ) + | ~~~~~~~~~~~~~^~~~~~~~~~~ plink.cpp:2106:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 2106 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 2366 | for (int l=0; l, std::set > readRange(std::string)': +helper.cpp:3097:20: warning: unused variable 's' [-Wunused-variable] + 3097 | set * s; + | ^ +helper.cpp: In function 'void makeScaffold(Plink&)': +helper.cpp:3324:9: warning: unused variable 'last' [-Wunused-variable] + 3324 | int last = -1; + | ^~~~ +helper.cpp:3328:9: warning: unused variable 'thisChromosome' [-Wunused-variable] + 3328 | int thisChromosome = P.locus[0]->chr; + | ^~~~~~~~~~~~~~ +helper.cpp:3329:9: warning: unused variable 'nextChromosome' [-Wunused-variable] + 3329 | int nextChromosome; + | ^~~~~~~~~~~~~~ g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c epi.cpp -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c prephap.cpp -In file included from helper.h:24, - from assoc.cpp:24: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -stats.cpp: In function 'bool svdcmp(std::vector >&, std::vector&, std::vector >&)': -stats.cpp:1150:22: warning: 'nm' may be used uninitialized [-Wmaybe-uninitialized] - 1150 | y=a[j][nm]; - | ^ -stats.cpp:1035:22: note: 'nm' was declared here - 1035 | int i,its,j,jj,k,l,nm; - | ^~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c phase.cpp In file included from assoc.cpp:29: phase.h: In member function 'void HaploPhase::reset()': phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -1312,11 +1318,6 @@ assoc.cpp:395:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 395 | for (int i=0; iprofileSNPs.size(); i++) | ~^~~~~~~~~~~~~~~~~~~~~~~ -In file included from epi.cpp:23: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ assoc.cpp:741:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 741 | for (int j=0; jselectedSNPs[l].size(); j++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1329,6 +1330,52 @@ assoc.cpp:788:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 788 | for (int j=0;jpv_set[i].size();j++) | ~^~~~~~~~~~~~~~~~~~~~~ +assoc.cpp: In member function 'std::vector Plink::fullModelAssoc(bool, Perm&)': +assoc.cpp:1536:11: warning: unused variable 'best' [-Wunused-variable] + 1536 | int best = 0 ; + | ^~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c prephap.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c phase.cpp +helper.cpp: In member function 'std::string CArgs::value(std::string)': +helper.cpp:218:35: warning: control reaches end of non-void function [-Wreturn-type] + 218 | error("Missing an argument for "+s); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ +helper.cpp: In member function 'int CArgs::value_int(std::string)': +helper.cpp:231:35: warning: control reaches end of non-void function [-Wreturn-type] + 231 | error("Missing an argument for "+s); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ +helper.cpp: In member function 'long unsigned int CArgs::value_lui(std::string)': +helper.cpp:243:35: warning: control reaches end of non-void function [-Wreturn-type] + 243 | error("Missing an argument for "+s); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ +helper.cpp: In member function 'double CArgs::value_double(std::string)': +helper.cpp:255:35: warning: control reaches end of non-void function [-Wreturn-type] + 255 | error("Missing an argument for "+s); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ +helper.cpp: In function 'int getInt(std::string, std::string)': +helper.cpp:378:58: warning: control reaches end of non-void function [-Wreturn-type] + 378 | error("Not valid integer argument for : "+a+" [ "+s+" ]"); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ +helper.cpp: In function 'long unsigned int getLongUnsignedInt(std::string, std::string)': +helper.cpp:391:58: warning: control reaches end of non-void function [-Wreturn-type] + 391 | error("Not valid integer argument for : "+a+" [ "+s+" ]"); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ +helper.cpp: In function 'double getDouble(std::string, std::string)': +helper.cpp:404:58: warning: control reaches end of non-void function [-Wreturn-type] + 404 | error("Not valid numeric argument for : "+a+" [ "+s+" ]"); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ +In file included from epi.cpp:23: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +stats.cpp: In function 'bool svdcmp(std::vector >&, std::vector&, std::vector >&)': +stats.cpp:1150:22: warning: 'nm' may be used uninitialized [-Wmaybe-uninitialized] + 1150 | y=a[j][nm]; + | ^ +stats.cpp:1035:22: note: 'nm' was declared here + 1035 | int i,its,j,jj,k,l,nm; + | ^~ epi.cpp: In member function 'void Plink::calcEpistasis()': epi.cpp:146:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 146 | for (int e=0;e Plink::fullModelAssoc(bool, Perm&)': -assoc.cpp:1536:11: warning: unused variable 'best' [-Wunused-variable] - 1536 | int best = 0 ; - | ^~~~ In file included from prephap.cpp:24: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -1359,19 +1403,6 @@ phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 252 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 226 | if (len != tokens.size() - offset ) @@ -1379,7 +1410,6 @@ prephap.cpp:283:44: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 283 | for ( int i = allele ; i < tokens.size() ; i++ ) | ~~^~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c trio.cpp prephap.cpp:412:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 412 | while ( index < tokens.size() ) | ~~~~~~^~~~~~~~~~~~~~~ @@ -1405,6 +1435,19 @@ options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ +output.cpp: In member function 'void Plink::display_pairList()': +output.cpp:145:61: warning: 'i2' may be used uninitialized [-Wmaybe-uninitialized] + 145 | << setw(par::pp_maxfid+par::pp_maxiid) << genotype(*this,i2,l) << " " + | ~~~~~~~~^~~~~~~~~~~~ +output.cpp:116:11: note: 'i2' was declared here + 116 | int i1, i2; + | ^~ +output.cpp:144:61: warning: 'i1' may be used uninitialized [-Wmaybe-uninitialized] + 144 | << setw(par::pp_maxfid+par::pp_maxiid) << genotype(*this,i1,l) << " " + | ~~~~~~~~^~~~~~~~~~~~ +output.cpp:116:7: note: 'i1' was declared here + 116 | int i1, i2; + | ^~ In file included from phase.cpp:27: genogroup.h: In member function 'bool MultiLocusGenotype::operator<(const MultiLocusGenotype&) const': genogroup.h:27:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -1457,7 +1500,6 @@ phase.cpp:1888:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1888 | for (int z = 0; z < h1.size(); z++) | ~~^~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c sharing.cpp In file included from trio.cpp:23: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -1467,7 +1509,6 @@ trio.cpp:91:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 91 | for (int c=0; ckid.size(); c++) | ~^~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c genepi.cpp trio.cpp: In member function 'void Plink::parseTrios()': trio.cpp:258:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 258 | for (int k=0; kkid.size(); k++) @@ -1518,11 +1559,6 @@ trio.cpp:962:13: warning: unused variable 'tmp' [-Wunused-variable] 962 | int tmp = deleteIndividuals(indel); | ^~~ -In file included from tdt.cpp:23: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ trio.cpp: In member function 'void Plink::pseudoCaseControl()': trio.cpp:1038:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1038 | for (int f=0; f::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1245 | for ( int k=0; kpp->kids.size(); k++) | ~^~~~~~~~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c sharing.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c genepi.cpp +In file included from tdt.cpp:23: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ tdt.cpp: In member function 'void Plink::perm_testTDT(Perm&)': tdt.cpp:81:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 81 | for (int i=0; iperson.size(); i++) @@ -1581,6 +1624,13 @@ tdt.cpp:776:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 776 | for (int f=0; f Plink::testAssoc(int&, int&, std::vector&, std::vector&, std::vector&, std::vector&, std::vector&, std::vector&, std::vector&, std::vector&, Perm&, bool)': +assoc.cpp:1109:68: warning: 'pvalue' may be used uninitialized [-Wmaybe-uninitialized] + 1109 | pS->profileTestSNPInformation( l, log(odds[l]) * -log10( pvalue ) ); + | ~~~~~^~~~~~~~~~ +assoc.cpp:1019:14: note: 'pvalue' was declared here + 1019 | double pvalue; + | ^~~~~~ output.cpp: In member function 'void Plink::display_indivReport()': output.cpp:69:32: warning: 'i1' may be used uninitialized [-Wmaybe-uninitialized] 69 | << setw(6) << genotype(*this,i1,l) << "\n"; @@ -1588,6 +1638,7 @@ output.cpp:46:7: note: 'i1' was declared here 46 | int i1; | ^~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c sets.cpp In file included from perm.h:17, from sharing.cpp:19: options.h: In member function 'void OptionSet::display()': @@ -1648,27 +1699,7 @@ genepi.cpp:1198:8: warning: unused variable 'casewise_deletion' [-Wunused-variable] 1198 | bool casewise_deletion = false; | ^~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c sets.cpp -assoc.cpp: In member function 'std::vector Plink::testAssoc(int&, int&, std::vector&, std::vector&, std::vector&, std::vector&, std::vector&, std::vector&, std::vector&, std::vector&, Perm&, bool)': -assoc.cpp:1109:68: warning: 'pvalue' may be used uninitialized [-Wmaybe-uninitialized] - 1109 | pS->profileTestSNPInformation( l, log(odds[l]) * -log10( pvalue ) ); - | ~~~~~^~~~~~~~~~ -assoc.cpp:1019:14: note: 'pvalue' was declared here - 1019 | double pvalue; - | ^~~~~~ g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c perm.cpp -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c mh.cpp -tdt.cpp:937:55: warning: 'zt' may be used uninitialized [-Wmaybe-uninitialized] - 937 | double OR_upper = exp( log(OR) + zt * sqrt(1/t1+1/t2)) ; - | ~~~^~~~~~~~~~~~~~~~~ -tdt.cpp:460:10: note: 'zt' was declared here - 460 | double zt; - | ^~ -In file included from sets.cpp:20: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/iostream:39, from assoc.cpp:14: In member function 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits]', @@ -1707,6 +1738,18 @@ assoc.cpp:1385:22: note: 'mult_chisq' was declared here 1385 | double mult_p, mult_chisq; | ^~~~~~~~~~ +tdt.cpp:937:55: warning: 'zt' may be used uninitialized [-Wmaybe-uninitialized] + 937 | double OR_upper = exp( log(OR) + zt * sqrt(1/t1+1/t2)) ; + | ~~~^~~~~~~~~~~~~~~~~ +tdt.cpp:460:10: note: 'zt' was declared here + 460 | double zt; + | ^~ +In file included from sets.cpp:20: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c mh.cpp g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c genedrop.cpp In file included from sets.cpp:24: phase.h: In member function 'void HaploPhase::reset()': @@ -1819,12 +1862,6 @@ options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -In file included from perm.h:17, - from mh.cpp:20: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ perm.cpp: In member function 'void Perm::permuteInCluster()': perm.cpp:144:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 144 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] 273 | for (int j=0;j< P.pS->snpset[l].size();j++) | ~^~~~~~~~~~~~~~~~~~~~~~~~ +In file included from perm.h:17, + from mh.cpp:20: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ mh.cpp: In member function 'std::vector Plink::calcMantelHaenszel_IxJxK(std::vector&, std::vector&, std::vector&)': mh.cpp:747:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 747 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ mh.cpp: In member function 'std::vector Plink::calcMantelHaenszel_ORD(std::vector&, std::vector&, std::vector&)': mh.cpp:1249:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1249 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ genedrop.cpp: In member function 'void Perm::preGeneDrop()': genedrop.cpp:64:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 64 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ genepi.cpp: In function 'void CCA_logit(bool, std::vector >&, Set&, Plink&)': genepi.cpp:805:103: warning: 'cancor1_pos' may be used uninitialized [-Wmaybe-uninitialized] 805 | gene1[i] += (-1 - mean[j]) * coeff_gene1[order_eigenvalues_gene1[cancor1_pos]][j]; @@ -1878,18 +1928,11 @@ genepi.cpp:614:17: note: 'cancor1_pos' was declared here 614 | int cancor1_pos; | ^~~~~~~~~~~ -In file included from helper.h:24, - from gxe.cpp:20: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ In file included from merge.cpp:22: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c multiple.cpp merge.cpp: In member function 'void Plink::mergeData()': merge.cpp:333:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 333 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c poo.cpp multiple.cpp: In member function 'void Plink::multcomp(std::vector&, std::string)': multiple.cpp:85:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 85 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] 131 | for (int i=0; i vif_prune(std::vector >, double, std::vector&)': -helper.cpp:1405:11: warning: 'maxI' may be used uninitialized [-Wmaybe-uninitialized] - 1405 | int maxI; - | ^~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c poo.cpp g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c webcheck.cpp g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c qfam.cpp -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c linear.cpp -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c bmerge.cpp -In file included from haploTDT.cpp:24: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -In file included from haploTDT.cpp:25: -phase.h: In member function 'void HaploPhase::reset()': -phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 252 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -1993,6 +2020,11 @@ haploCC.cpp:268:14: warning: unused variable 'p' [-Wunused-variable] 268 | double p = ( n1 * p1 + n2 * p2 ) / ( n1 + n2 ); | ^ +In file included from haploTDT.cpp:24: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ haploCC.cpp: In member function 'void HaploPhase::haplotypicWeightedCC()': haploCC.cpp:340:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 340 | for (int z = 0 ; z < hap1[i].size(); z++) @@ -2006,23 +2038,30 @@ haploCC.cpp:392:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 392 | if ( ! ( haploid || X && person->sex ) ) | ~~^~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c parse.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c linear.cpp +In file included from haploTDT.cpp:25: +phase.h: In member function 'void HaploPhase::reset()': +phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 252 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c mishap.cpp In file included from helper.h:24, from webcheck.cpp:19: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c parse.cpp poo.cpp: In member function 'void Plink::perm_testTDT_POO(Perm&)': poo.cpp:93:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 93 | for (int f=0; f > >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 195 | for (int i=0;ipv_set.size();i++) | ~^~~~~~~~~~~~~~~~~~ @@ -2042,13 +2081,13 @@ webcheck.cpp:180:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 180 | if ( i < tokens.size() - 1) | ~~^~~~~~~~~~~~~~~~~~~ +webcheck.cpp:218:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 218 | for (int i=0; i Plink::testTDT_POO(bool, bool, Perm&, std::vector&, std::vector&)': poo.cpp:293:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 293 | for (int f=0; f >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 218 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 328 | for (int c=0; c >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -In file included from helper.h:24, - from linear.cpp:19: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ qfam.cpp: In function 'void scoreBetween(Plink&, int)': qfam.cpp:82:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 82 | for (int k=0; k < (*f)->kid.size() ;k++) @@ -2082,18 +2116,9 @@ qfam.cpp:267:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 267 | for (int i=0; i < family.size(); i++) | ~~^~~~~~~~~~~~~~~ -linear.cpp: In member function 'virtual void LinearModel::pruneY()': -linear.cpp:50:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 50 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 315 | for (int f = 0 ; f < family.size() ; f++) | ~~^~~~~~~~~~~~~~~ -linear.cpp: In member function 'double LinearModel::getPValue()': -linear.cpp:734:8: warning: unused variable 'okay' [-Wunused-variable] - 734 | bool okay = var[testParameter] < 1e-20 || !realnum(var[testParameter]) ? false : all_valid; - | ^~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c homozyg.cpp qfam.cpp: In member function 'vector_t Plink::calcQTDT(std::vector&, std::ofstream&, bool, Perm&, std::vector&, std::vector&)': qfam.cpp:505:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 505 | for ( int k = 0 ; k < (*f)->kid.size() ; k++) @@ -2107,17 +2132,66 @@ qfam.cpp:639:10: warning: unused variable 'tc' [-Wunused-variable] 639 | int tc = 0; | ^~ +In file included from helper.h:24, + from linear.cpp:19: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +linear.cpp: In member function 'virtual void LinearModel::pruneY()': +linear.cpp:50:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 50 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c model.cpp In file included from bmerge.cpp:22: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -In file included from mishap.cpp:17: +helper.cpp: In function 'std::vector vif_prune(std::vector >, double, std::vector&)': +helper.cpp:1405:11: warning: 'maxI' may be used uninitialized [-Wmaybe-uninitialized] + 1405 | int maxI; + | ^~~~ +In file included from mishap.cpp:20: +phase.h: In member function 'void HaploPhase::reset()': +phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 252 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ +mishap.cpp: In member function 'void Plink::performMisHapTests()': +mishap.cpp:209:42: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 209 | for (int z = 0 ; z < haplo->hap1[i].size(); z++) + | ~~^~~~~~~~~~~~~~~~~~~~~~~ +merge.cpp: In member function 'bool Plink::reconcileMerge(int, int, std::string, std::string, bool, bool, std::ofstream&, std::map, int>&)': +merge.cpp:1103:3: warning: 'write' may be used uninitialized [-Wmaybe-uninitialized] + 1103 | if (write) + | ^~ +merge.cpp:943:8: note: 'write' was declared here + 943 | bool write; + | ^~~~~ +mishap.cpp:236:42: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 236 | for (int z = 0 ; z < haplo->hap1[i].size(); z++) + | ~~^~~~~~~~~~~~~~~~~~~~~~~ +mishap.cpp:349:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 349 | for (int z = 0 ; z < haplo->hap1[i].size(); z++) + | ~~^~~~~~~~~~~~~~~~~~~~~~~ +mishap.cpp:373:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 373 | for (int z = 0 ; z < haplo->hap1[i].size(); z++) + | ~~^~~~~~~~~~~~~~~~~~~~~~~ bmerge.cpp: In member function 'void Plink::mergeBinaryData()': bmerge.cpp:90:16: warning: variable 'inc' set but not used [-Wunused-but-set-variable] 90 | long int inc; @@ -2155,52 +2229,7 @@ bmerge.cpp:883:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 883 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 252 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 209 | for (int z = 0 ; z < haplo->hap1[i].size(); z++) - | ~~^~~~~~~~~~~~~~~~~~~~~~~ -mishap.cpp:236:42: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 236 | for (int z = 0 ; z < haplo->hap1[i].size(); z++) - | ~~^~~~~~~~~~~~~~~~~~~~~~~ -mishap.cpp:349:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 349 | for (int z = 0 ; z < haplo->hap1[i].size(); z++) - | ~~^~~~~~~~~~~~~~~~~~~~~~~ -mishap.cpp:373:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 373 | for (int z = 0 ; z < haplo->hap1[i].size(); z++) - | ~~^~~~~~~~~~~~~~~~~~~~~~~ -merge.cpp: In member function 'bool Plink::reconcileMerge(int, int, std::string, std::string, bool, bool, std::ofstream&, std::map, int>&)': -merge.cpp:1103:3: warning: 'write' may be used uninitialized [-Wmaybe-uninitialized] - 1103 | if (write) - | ^~ -merge.cpp:943:8: note: 'write' was declared here - 943 | bool write; - | ^~~~~ -In file included from parse.cpp:20: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c model.cpp g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c logistic.cpp -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c glm.cpp -input.cpp: In member function 'void Plink::readData()': -input.cpp:91:20: warning: 'PED' may be used uninitialized [-Wmaybe-uninitialized] - 91 | if ( feof(PED) ) - | ~~~~^~~~~ -input.cpp:60:10: note: 'PED' was declared here - 60 | FILE * PED; - | ^~~ -In file included from helper.h:24, - from homozyg.cpp:23: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ In file included from helper.h:24, from legacy.cpp:22: options.h: In member function 'void OptionSet::display()': @@ -2214,18 +2243,6 @@ legacy.cpp:377:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 377 | for (int i=0;i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 381 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 480 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ homozyg.cpp: In function 'void displayPoolVerbose(Plink&, Pool*, std::ofstream&)': homozyg.cpp:673:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 673 | for (int i=0; i < plist.size(); i++) @@ -2278,12 +2301,6 @@ homozyg.cpp:861:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 861 | for (int i=0; i < plist.size(); i++) | ~~^~~~~~~~~~~~~~ -In file included from helper.h:24, - from segment.cpp:20: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ homozyg.cpp: In member function 'void Plink::summariseHomoRuns()': homozyg.cpp:1134:34: warning: comparison of integer expressions of different signedness: 'std::set >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 1134 | if ( thispool->segs.size() >= par::pool_size_min ) @@ -2291,6 +2308,8 @@ homozyg.cpp:1178:38: warning: comparison of integer expressions of different signedness: 'std::set >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 1178 | if ( thispool->segs.size() >= par::pool_size_min ) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c glm.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c dcdflib.cpp homozyg.cpp:1331:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::set >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1331 | for (int i=0; i< (*pA)->segs.size(); i++) | ~^~~~~~~~~~~~~~~~~~~~ @@ -2306,7 +2325,89 @@ homozyg.cpp: In member function 'void Plink::findHomoWindow(Individual*, std::ofstream&)': homozyg.cpp:2155:27: warning: value computed is not used [-Wunused-value] 2155 | homozygWindows[l] == 0; -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c dcdflib.cpp +In file included from model.cpp:15: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +linear.cpp: In function 'void gaussj(matrix_t&, matrix_t&)': +linear.cpp:100:13: warning: 'irow' may be used uninitialized [-Wmaybe-uninitialized] + 100 | indxr[i]=irow; +linear.cpp:75:14: note: 'irow' was declared here + 75 | int i,icol,irow,j,k,l,ll; + | ^~~~ +linear.cpp:108:7: warning: 'icol' may be used uninitialized [-Wmaybe-uninitialized] + 108 | if (ll != icol) { + | ^~ +linear.cpp:75:9: note: 'icol' was declared here + 75 | int i,icol,irow,j,k,l,ll; + | ^~~~ +dcdflib.cpp: In function 'void cdfbin(int*, double*, double*, double*, double*, double*, double*, int*, double*)': +dcdflib.cpp:1882:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 1882 | if(!(*s < 0.0e0 || *which != 3 && *s > *xn)) goto S160; + | ~~~~~~~~~~~~^~~~~~~~~~~ +In file included from model.cpp:17: +phase.h: In member function 'void HaploPhase::reset()': +phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 252 | for (int i=0; i 1.5e0 || !qporq && ccum > 1.5e0)) goto S280; + | ~~~~~~^~~~~~~~~~~~~~ +dcdflib.cpp: In function 'void E0000(int, int*, double*, double*, long unsigned int*, long unsigned int*, double*, double*, double*, double*, double*, double*, double*)': +dcdflib.cpp:6025:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6025 | if(qcond) ftnstop(" SMALL, X, BIG not monotone in INVR"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +dcdflib.cpp:6088:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 6088 | qup = qincr && yy < 0.0e0 || !qincr && yy > 0.0e0; + | ~~~~~~^~~~~~~~~~~~~ +dcdflib.cpp:6112:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 6112 | qbdd = qincr && yy >= 0.0e0 || !qincr && yy <= 0.0e0; + | ~~~~~~^~~~~~~~~~~~~~ +dcdflib.cpp:6153:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 6153 | qbdd = qincr && yy <= 0.0e0 || !qincr && yy >= 0.0e0; + | ~~~~~~^~~~~~~~~~~~~~ +dcdflib.cpp:6020:56: warning: variable 'qok' set but not used [-Wunused-but-set-variable] + 6020 | static unsigned long qbdd,qcond,qdum1,qdum2,qincr,qlim,qok,qup; + | ^~~ +dcdflib.cpp: In function 'double dlanor(double*)': +dcdflib.cpp:6401:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6401 | if(xx < 5.0e0) ftnstop(" Argument too small in DLANOR"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +dcdflib.cpp: In function 'double dstrem(double*)': +dcdflib.cpp:6782:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6782 | if(*z <= 0.0e0) ftnstop("Zero or negative argument in DSTREM"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +dcdflib.cpp: In function 'void E0001(int, int*, double*, double*, double*, double*, long unsigned int*, long unsigned int*, double*, double*, double*, double*)': +dcdflib.cpp:6996:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 6996 | qrzero = fc >= 0.0e0 && fb <= 0.0e0 || fc < 0.0e0 && fb >= 0.0e0; + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +model.cpp: In member function 'void Model::setMissing(std::vector&)': +model.cpp:132:23: warning: comparison of integer expressions of different signedness: 'std::vector::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 132 | if ( include.size() != P->n ) + | ~~~~~~~~~~~~~~~^~~~~~~ +model.cpp: In member function 'void Model::buildDesignMatrix()': +model.cpp:354:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 354 | for (int i=0; i< par::parameter_list.size(); i++) + | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +model.cpp:367:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 367 | for ( int i = 0 ; i < X.size() ; i++) + | ~~^~~~~~~~~~ +model.cpp:374:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 374 | for ( int j = 0 ; j < par::parameter_list.size() ; j++) + | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +model.cpp: In member function 'bool Model::checkVIF()': +model.cpp:613:10: warning: unused variable 'maxVIF' [-Wunused-variable] + 613 | double maxVIF = 0; + | ^~~~~~ +In file included from helper.h:24, + from segment.cpp:20: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c elf.cpp segment.cpp: In member function 'void Plink::segmentPermutationTest(Perm&, bool, std::string, std::vector&, std::vector&, std::vector&)': segment.cpp:871:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 871 | if (!ibd) @@ -2334,10 +2435,24 @@ segment.cpp:1529:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1529 | for (int i=0;i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ segment.cpp: In member function 'void Plink::indivSegmentSummary()': segment.cpp:1855:21: warning: variable 'p' set but not used [-Wunused-but-set-variable] 1855 | indivPair p = ic->first; | ^ +logistic.cpp: In member function 'virtual void LogisticModel::pruneY()': +logistic.cpp:66:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 66 | for (int i=0; i *xn)) goto S160; - | ~~~~~~~~~~~~^~~~~~~~~~~ -dcdflib.cpp: In function 'void cdfgam(int*, double*, double*, double*, double*, double*, int*, double*)': -dcdflib.cpp:3544:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses] - 3544 | if(!(qporq && cum > 1.5e0 || !qporq && ccum > 1.5e0)) goto S280; - | ~~~~~~^~~~~~~~~~~~~~ -dcdflib.cpp: In function 'void E0000(int, int*, double*, double*, long unsigned int*, long unsigned int*, double*, double*, double*, double*, double*, double*, double*)': -dcdflib.cpp:6025:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6025 | if(qcond) ftnstop(" SMALL, X, BIG not monotone in INVR"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -dcdflib.cpp:6088:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] - 6088 | qup = qincr && yy < 0.0e0 || !qincr && yy > 0.0e0; - | ~~~~~~^~~~~~~~~~~~~ -dcdflib.cpp:6112:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses] - 6112 | qbdd = qincr && yy >= 0.0e0 || !qincr && yy <= 0.0e0; - | ~~~~~~^~~~~~~~~~~~~~ -dcdflib.cpp:6153:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses] - 6153 | qbdd = qincr && yy <= 0.0e0 || !qincr && yy >= 0.0e0; - | ~~~~~~^~~~~~~~~~~~~~ -dcdflib.cpp:6020:56: warning: variable 'qok' set but not used [-Wunused-but-set-variable] - 6020 | static unsigned long qbdd,qcond,qdum1,qdum2,qincr,qlim,qok,qup; - | ^~~ -dcdflib.cpp: In function 'double dlanor(double*)': -dcdflib.cpp:6401:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6401 | if(xx < 5.0e0) ftnstop(" Argument too small in DLANOR"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -dcdflib.cpp: In function 'double dstrem(double*)': -dcdflib.cpp:6782:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6782 | if(*z <= 0.0e0) ftnstop("Zero or negative argument in DSTREM"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -dcdflib.cpp: In function 'void E0001(int, int*, double*, double*, double*, double*, long unsigned int*, long unsigned int*, double*, double*, double*, double*)': -dcdflib.cpp:6996:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses] - 6996 | qrzero = fc >= 0.0e0 && fb <= 0.0e0 || fc < 0.0e0 && fb >= 0.0e0; - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from model.cpp:15: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c elf.cpp -In file included from helper.h:24, - from logistic.cpp:20: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -In file included from model.cpp:17: -phase.h: In member function 'void HaploPhase::reset()': -phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 252 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 66 | for (int i=0; i&)': -model.cpp:132:23: warning: comparison of integer expressions of different signedness: 'std::vector::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 132 | if ( include.size() != P->n ) - | ~~~~~~~~~~~~~~~^~~~~~~ -model.cpp: In member function 'void Model::buildDesignMatrix()': -model.cpp:354:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 354 | for (int i=0; i< par::parameter_list.size(); i++) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -model.cpp:367:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 367 | for ( int i = 0 ; i < X.size() ; i++) - | ~~^~~~~~~~~~ -model.cpp:374:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 374 | for ( int j = 0 ; j < par::parameter_list.size() ; j++) - | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -model.cpp: In member function 'bool Model::checkVIF()': -model.cpp:613:10: warning: unused variable 'maxVIF' [-Wunused-variable] - 613 | double maxVIF = 0; - | ^~~~~~ +input.cpp: In member function 'void Plink::readData()': +input.cpp:91:20: warning: 'PED' may be used uninitialized [-Wmaybe-uninitialized] + 91 | if ( feof(PED) ) + | ~~~~^~~~~ +input.cpp:60:10: note: 'PED' was declared here + 60 | FILE * PED; + | ^~~ +model.cpp: In member function 'double Model::buildQFAM(Individual*)': +model.cpp:849:10: warning: control reaches end of non-void function [-Wreturn-type] + 849 | error("Internal problem with QFAM model specification"); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +legacy.cpp: In member function 'void Plink::findIBSRuns(Individual*, Individual*, std::ofstream&)': +legacy.cpp:206:65: warning: 'last' may be used uninitialized [-Wmaybe-uninitialized] + 206 | << (double)( locus[start]->bp - locus[last]->bp ) / 1000.0 + | ^ +legacy.cpp:35:7: note: 'last' was declared here + 35 | int last; + | ^~~~ In file included from helper.h:24, from glm.cpp:19: options.h: In member function 'void OptionSet::display()': @@ -2483,18 +2536,7 @@ glm.cpp:423:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 423 | for (int c=0; cbp - locus[last]->bp ) / 1000.0 - | ^ -legacy.cpp:35:7: note: 'last' was declared here - 35 | int last; - | ^~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c dfam.cpp In file included from helper.h:24, from elf.cpp:19: options.h: In member function 'void OptionSet::display()': @@ -2509,11 +2551,6 @@ elf.cpp:609:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 609 | for (int l=0; l< original.size(); l++) | ~^~~~~~~~~~~~~~~~~ -In file included from dfam.cpp:23: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ elf.cpp: In member function 'vector_t Plink::testRareDistribution(Perm&, bool, std::map&)': elf.cpp:654:16: warning: unused variable 'pthresh' [-Wunused-variable] 654 | const double pthresh = 0.01; @@ -2534,6 +2571,29 @@ elf.cpp:939:26: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 939 | if ( tokens.size() != ncol ) | ~~~~~~~~~~~~~~^~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c fisher.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c linput.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c sockets.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c lookup.cpp +In file included from dfam.cpp:23: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c proxy.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c pdriver.cpp +In file included from helper.h:24, + from fisher.cpp:17: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +glm.cpp:610:35: warning: 'df' may be used uninitialized [-Wmaybe-uninitialized] + 610 | double pvalue = chiprobP(chisq,df); + | ~~~~~~~~^~~~~~~~~~ +glm.cpp:556:15: note: 'df' was declared here + 556 | int df; + | ^~ dfam.cpp: In member function 'std::vector Plink::testSibTDT(bool, bool, Perm&, std::vector&, std::vector&)': dfam.cpp:76:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 76 | for (int f=0; f >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c sockets.cpp fisher.cpp: In function 'void fexact(int*, int*, double*, int*, double*, double*, double*, double*, double*, int*)': fisher.cpp:261:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 261 | prterr(1, "NROW must be less than or equal to LDTABL."); @@ -2625,7 +2677,6 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 751 | "Try increasing the size of the workspace."); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c lookup.cpp fisher.cpp: In function 'void f5xact(double*, const double*, int*, int*, int*, int*, double*, int*, int*, int*, int*, int*, int*, int*, int*)': fisher.cpp:1538:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1538 | prterr(6, "LDKEY is too small for this problem.\n" @@ -2650,20 +2701,24 @@ fisher.cpp:2078:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2078 | prterr(20, "This should never occur."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c proxy.cpp -glm.cpp:610:35: warning: 'df' may be used uninitialized [-Wmaybe-uninitialized] - 610 | double pvalue = chiprobP(chisq,df); - | ~~~~~~~~^~~~~~~~~~ -glm.cpp:556:15: note: 'df' was declared here - 556 | int df; - | ^~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c pdriver.cpp g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c haploQTL.cpp In file included from linput.cpp:25: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ +In file included from helper.h:24, + from lookup.cpp:18: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +In file included from helper.h:24, + from sockets.cpp:18: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ linput.cpp: In member function 'void Plink::readDataLongFormat()': linput.cpp:68:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 68 | for (int l=0; l< locus.size(); l++) @@ -2686,32 +2741,6 @@ linput.cpp:209:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 209 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -sockets.cpp: In function 'std::vector > socketConnection(Plink*, std::string, int, std::string)': -sockets.cpp:78:24: warning: unused variable 'out_buf' [-Wunused-variable] - 78 | char out_buf[BUF_SIZE+1]; // Output buffer for GET request - | ^~~~~~~ -sockets.cpp:79:24: warning: unused variable 'in_buf' [-Wunused-variable] - 79 | char in_buf[BUF_SIZE+1]; // Input buffer for response - | ^~~~~~ -sockets.cpp:81:24: warning: unused variable 'i' [-Wunused-variable] - 81 | unsigned int i; // Loop counter - | ^ -sockets.cpp:119:7: warning: unused variable 'echoStringLen' [-Wunused-variable] - 119 | int echoStringLen = 100; - | ^~~~~~~~~~~~~ -In file included from helper.h:24, - from lookup.cpp:18: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c haplohelper.cpp lookup.cpp: In member function 'void Plink::lookup()': lookup.cpp:206:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 206 | for (int i=25; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 289 | for (int i=25; i > socketConnection(Plink*, std::string, int, std::string)': +sockets.cpp:78:24: warning: unused variable 'out_buf' [-Wunused-variable] + 78 | char out_buf[BUF_SIZE+1]; // Output buffer for GET request + | ^~~~~~~ +sockets.cpp:79:24: warning: unused variable 'in_buf' [-Wunused-variable] + 79 | char in_buf[BUF_SIZE+1]; // Input buffer for response + | ^~~~~~ +sockets.cpp:81:24: warning: unused variable 'i' [-Wunused-variable] + 81 | unsigned int i; // Loop counter + | ^ +sockets.cpp:119:7: warning: unused variable 'echoStringLen' [-Wunused-variable] + 119 | int echoStringLen = 100; + | ^~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c haplohelper.cpp +In file included from pdriver.cpp:16: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) @@ -2739,33 +2781,20 @@ options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -In file included from pdriver.cpp:16: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -In file included from haploQTL.cpp:25: +In file included from pdriver.cpp:18: phase.h: In member function 'void HaploPhase::reset()': phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 252 | for (int i=0; i&, int, bool)': -haploQTL.cpp:83:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 83 | for (int z = 0 ; z < hap1[i].size(); z++) - | ~~^~~~~~~~~~~~~~~~ -haploQTL.cpp:145:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 145 | for (int z = 0 ; z < hap1[i].size(); z++) - | ~~^~~~~~~~~~~~~~~~ In file included from proxy.cpp:24: phase.h: In member function 'void HaploPhase::reset()': phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 252 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 252 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 314 | for (int i=1; i::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 332 | if ( added.size() >= par::proxy_snp_filter ) | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c genogroup.cpp -pdriver.cpp: In member function 'void Plink::proxyWrapper()': -pdriver.cpp:266:11: warning: unused variable 'similar' [-Wunused-variable] - 266 | int similar = 0; - | ^~~~~~~ proxy.cpp:854:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 854 | for (int l0=0; l0< proxyHaplotypePlusSNP.size(); l0++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2793,18 +2817,36 @@ proxy.cpp:169:10: warning: unused variable 's' [-Wunused-variable] 169 | CSNP * s = SNP[l]; | ^ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c nonfounderphasing.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c haplowindow.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c genogroup.cpp elf.cpp: In member function 'bool RCount::addSNP(int)': elf.cpp:374:10: warning: 'wt' may be used uninitialized [-Wmaybe-uninitialized] 374 | double wt; | ^~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c nonfounderphasing.cpp g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c clumpld.cpp +In file included from haploQTL.cpp:24: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +In file included from haploQTL.cpp:25: +phase.h: In member function 'void HaploPhase::reset()': +phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 252 | for (int i=0; i&, int, bool)': +haploQTL.cpp:83:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 83 | for (int z = 0 ; z < hap1[i].size(); z++) + | ~~^~~~~~~~~~~~~~~~ +haploQTL.cpp:145:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 145 | for (int z = 0 ; z < hap1[i].size(); z++) + | ~~^~~~~~~~~~~~~~~~ In file included from haplohelper.cpp:24: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c genoerr.cpp In file included from haplohelper.cpp:25: phase.h: In member function 'void HaploPhase::reset()': phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -2828,6 +2870,11 @@ haplohelper.cpp:104:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 104 | for (int l=0; l >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ haplohelper.cpp:134:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 134 | for (int l=0; l < actual_map.size(); l++) | ~~^~~~~~~~~~~~~~~~~~~ @@ -2850,6 +2897,28 @@ haplohelper.cpp:487:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 487 | for (int z = 0; z < hap1[i].size(); z++) | ~~^~~~~~~~~~~~~~~~ +In file included from haplowindow.cpp:27: +phase.h: In member function 'void HaploPhase::reset()': +phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 252 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 27 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 34 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 48 | for (int z = 0; z < haplo->windows[w]->hap1[r].size(); z++) + | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +haplowindow.cpp: In member function 'void HaploWindow::enumerateHaplotypes(intvec_t&)': +haplowindow.cpp:183:11: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] + 183 | while (h::size_type' {aka 'long unsigned int'} [-Wsign-compare] 655 | for (int z=0; z::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 851 | ||alleles2.size() != ns ) | ~~~~~~~~~~~~~~~~^~~~~ +In file included from helper.h:24, + from clumpld.h:21, + from clumpld.cpp:20: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ haplohelper.cpp: In member function 'double HaploPhase::freq(boolvec_t&, boolvec_t&)': haplohelper.cpp:957:20: warning: comparison of integer expressions of different signedness: 'std::vector::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 957 | if (mask1.size() != ns ||alleles1.size() != ns ) @@ -2881,6 +2957,18 @@ haplohelper.cpp:957:44: warning: comparison of integer expressions of different signedness: 'std::vector::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 957 | if (mask1.size() != ns ||alleles1.size() != ns ) | ~~~~~~~~~~~~~~~~^~~~~ +In file included from genogroup.cpp:24: +phase.h: In member function 'void HaploPhase::reset()': +phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 252 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 558 | for (int z=0; z < hap1[i].size(); z++) + | ~~^~~~~~~~~~~~~~~~ +haplowindow.cpp:574:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 574 | for (int z=0; z < new_pp.size(); z++) + | ~~^~~~~~~~~~~~~~~ haplohelper.cpp: In member function 'void HaploPhase::trackThisSegment()': haplohelper.cpp:1225:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1225 | for (int z = 0; z < hap1[p1].size(); z++) @@ -2894,46 +2982,6 @@ haplohelper.cpp:1250:11: warning: unused variable 'j' [-Wunused-variable] 1250 | int j=0; | ^ -haplohelper.cpp: In member function 'void HaploPhase::calculateEmpiricalVariance(std::set&)': -haplohelper.cpp:1419:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1419 | for( int z = 0; z < pp[i].size(); z++ ) - | ~~^~~~~~~~~~~~~~ -haplohelper.cpp:1477:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1477 | for( int z = 0; z < pp[i].size(); z++ ) - | ~~^~~~~~~~~~~~~~ -haplohelper.cpp: In member function 'void HaploPhase::verboseDisplayWindows(int, bool)': -haplohelper.cpp:1666:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1666 | for (int z = 0; z < windows[w]->hap1[r].size(); z++) - | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from haplowindow.cpp:27: -phase.h: In member function 'void HaploPhase::reset()': -phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 252 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 27 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 34 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 48 | for (int z = 0; z < haplo->windows[w]->hap1[r].size(); z++) - | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -haplowindow.cpp: In member function 'void HaploWindow::enumerateHaplotypes(intvec_t&)': -haplowindow.cpp:183:11: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] - 183 | while (h::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 558 | for (int z=0; z < hap1[i].size(); z++) - | ~~^~~~~~~~~~~~~~~~ -haplowindow.cpp:574:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 574 | for (int z=0; z < new_pp.size(); z++) - | ~~^~~~~~~~~~~~~~~ haplowindow.cpp: In member function 'void HaploWindow::performEM()': haplowindow.cpp:683:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 683 | for (int z=0; z::size_type' {aka 'long unsigned int'} [-Wsign-compare] 872 | for (int z=0; z&)': +haplohelper.cpp:1419:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1419 | for( int z = 0; z < pp[i].size(); z++ ) + | ~~^~~~~~~~~~~~~~ +haplohelper.cpp:1477:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1477 | for( int z = 0; z < pp[i].size(); z++ ) + | ~~^~~~~~~~~~~~~~ +In file included from genogroup.cpp:28: +genogroup.h: In member function 'bool MultiLocusGenotype::operator<(const MultiLocusGenotype&) const': +genogroup.h:27:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 27 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 34 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ haplowindow.cpp: In member function 'void HaploWindow::reportPhase()': haplowindow.cpp:949:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 949 | for (int z = 0; z < hap1[i].size(); z++) @@ -2963,17 +3032,10 @@ haplowindow.cpp:966:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 966 | for (int z2=0; z2 >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c em.cpp -In file included from genogroup.cpp:23: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ +haplohelper.cpp: In member function 'void HaploPhase::verboseDisplayWindows(int, bool)': +haplohelper.cpp:1666:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1666 | for (int z = 0; z < windows[w]->hap1[r].size(); z++) + | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from nonfounderphasing.cpp:27: genogroup.h: In member function 'bool MultiLocusGenotype::operator<(const MultiLocusGenotype&) const': genogroup.h:27:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -2988,20 +3050,6 @@ phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 252 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 252 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 27 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 34 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 668 | for (int z=0; z < pp[i].size(); z++) @@ -3013,20 +3061,6 @@ nonfounderphasing.cpp:715:14: warning: unused variable 'posterior' [-Wunused-variable] 715 | double posterior = ip->second; | ^~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c impute.cpp -In file included from helper.h:24, - from clumpld.h:21, - from clumpld.cpp:20: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c metaem.cpp -In file included from genoerr.cpp:24: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ In file included from clumpld.cpp:21: phase.h: In member function 'void HaploPhase::reset()': phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -3042,6 +3076,7 @@ clumpld.cpp:137:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 137 | for ( int f=0; f >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 173 | if ( tokens.size() <= snp_column || | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ @@ -3054,6 +3089,45 @@ clumpld.cpp:204:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 204 | if ( f < annot_field.size() - 1 ) | ~~^~~~~~~~~~~~~~~~~~~~~~~~ +clumpld.cpp: In member function 'void clump_LD::clump()': +clumpld.cpp:368:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 368 | for (int i = 0; i < sp.size(); i++) + | ~~^~~~~~~~~~~ +clumpld.cpp:480:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 480 | if( l1 < P->locus.size()-1 ) + | ~~~^~~~~~~~~~~~~~~~~~~ +clumpld.cpp:520:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 520 | for (int f=1; f<=filename.size(); f++) + | ~^~~~~~~~~~~~~~~~~ +clumpld.cpp:611:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 611 | for (int f=1; f<=filename.size(); f++) + | ~^~~~~~~~~~~~~~~~~ +clumpld.cpp:1097:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::map::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1097 | if( j < grouped_snps.size()-1) + | ~~^~~~~~~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c em.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c impute.cpp +elf.cpp: In member function 'void Plink::elfBaseline()': +elf.cpp:1142:18: warning: 'p_gcnt' may be used uninitialized [-Wmaybe-uninitialized] + 1142 | ++(*p_gcnt); + | ~^~~~~~~~ +elf.cpp:1112:13: note: 'p_gcnt' was declared here + 1112 | int * p_gcnt; + | ^~~~~~ +elf.cpp:1147:22: warning: 'p_cnt' may be used uninitialized [-Wmaybe-uninitialized] + 1147 | ++(*p_cnt); + | ~^~~~~~~ +elf.cpp:1111:13: note: 'p_cnt' was declared here + 1111 | int * p_cnt; + | ^~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c metaem.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c profile.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c nlist.cpp +In file included from genoerr.cpp:24: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ In file included from genoerr.cpp:27: genogroup.h: In member function 'bool MultiLocusGenotype::operator<(const MultiLocusGenotype&) const': genogroup.h:27:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -3068,10 +3142,6 @@ phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 252 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 368 | for (int i = 0; i < sp.size(); i++) - | ~~^~~~~~~~~~~ genoerr.cpp: In member function 'void HaploPhase::queryThisGenotype(int, int, int, vector_t&)': genoerr.cpp:157:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 157 | for (int z=0; z::size_type' {aka 'long unsigned int'} [-Wsign-compare] 347 | for (int z = 0; z < new_hap1.size(); z++) | ~~^~~~~~~~~~~~~~~~~ -clumpld.cpp:480:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 480 | if( l1 < P->locus.size()-1 ) - | ~~~^~~~~~~~~~~~~~~~~~~ genoerr.cpp:358:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 358 | for (int z2=0; z2 >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 520 | for (int f=1; f<=filename.size(); f++) - | ~^~~~~~~~~~~~~~~~~ -clumpld.cpp:611:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 611 | for (int f=1; f<=filename.size(); f++) - | ~^~~~~~~~~~~~~~~~~ -clumpld.cpp:1097:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::map::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1097 | if( j < grouped_snps.size()-1) - | ~~^~~~~~~~~~~~~~~~~~~~~~~ -elf.cpp: In member function 'void Plink::elfBaseline()': -elf.cpp:1142:18: warning: 'p_gcnt' may be used uninitialized [-Wmaybe-uninitialized] - 1142 | ++(*p_gcnt); - | ~^~~~~~~~ -elf.cpp:1112:13: note: 'p_gcnt' was declared here - 1112 | int * p_gcnt; - | ^~~~~~ -elf.cpp:1147:22: warning: 'p_cnt' may be used uninitialized [-Wmaybe-uninitialized] - 1147 | ++(*p_cnt); - | ~^~~~~~~ -elf.cpp:1111:13: note: 'p_cnt' was declared here - 1111 | int * p_cnt; - | ^~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c whap.cpp In file included from em.cpp:24: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c profile.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c simul.cpp In file included from em.cpp:27: genogroup.h: In member function 'bool MultiLocusGenotype::operator<(const MultiLocusGenotype&) const': genogroup.h:27:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -3164,30 +3210,11 @@ em.cpp:166:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 166 | for (int z=0; z >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ In file included from impute.cpp:24: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -In file included from metaem.cpp:27: -genogroup.h: In member function 'bool MultiLocusGenotype::operator<(const MultiLocusGenotype&) const': -genogroup.h:27:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 27 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 34 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 252 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -3197,11 +3224,6 @@ genogroup.h:34:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 34 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -3221,6 +3243,13 @@ impute.cpp:161:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 161 | for (int z=0; z< currentWindow->pp[i].size(); z++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from helper.h:24, + from nlist.h:21, + from nlist.cpp:17: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ impute.cpp: In member function 'void HaploPhase::mainImputation()': impute.cpp:263:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 263 | for ( int z = 0 ; z < currentWindow->hap1[i].size(); z++) @@ -3228,13 +3257,47 @@ impute.cpp:313:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 313 | for (int s=0; s < g.size(); s++) | ~~^~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c whap.cpp -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c simul.cpp +nlist.cpp: In member function 'std::vector NList::deparseNumberList(std::string)': +nlist.cpp:38:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 38 | for (int i=0; i NList::deparseStringList(std::string, std::map, int>*)': +nlist.cpp:83:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 83 | for (int i=0; i NList::expandNumberList(std::vector&)': +nlist.cpp:107:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 107 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 124 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 151 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 160 | for (int i=0; i > NList::tokenize(std::string)': +nlist.cpp:189:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 189 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 239 | if ( s[i]== range_char && i == s.length()-1 ) + | ~~^~~~~~~~~~~~~~~ +nlist.cpp:253:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 253 | else if ( i == s.length()-1 ) + | ~~^~~~~~~~~~~~~~~ In file included from profile.cpp:23: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ +In file included from metaem.cpp:24: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c gvar.cpp profile.cpp: In member function 'void Plink::scoreIndividuals()': profile.cpp:303:12: warning: unused variable 'OLD_assoc_glm_without_main_snp' [-Wunused-variable] @@ -3261,7 +3324,15 @@ profile.cpp:421:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 421 | if ( qcnt == qlabel.size() ) | ~~~~~^~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c cnv.cpp +In file included from metaem.cpp:27: +genogroup.h: In member function 'bool MultiLocusGenotype::operator<(const MultiLocusGenotype&) const': +genogroup.h:27:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 27 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 34 | for (int i=0; i&, std::map&, vector_t&, matrix_t&, std::vector&, std::vector&)': profile.cpp:480:16: warning: unused variable 'a1' [-Wunused-variable] 480 | bool a1 = i2->second; @@ -3277,84 +3348,27 @@ 667 | for (int l=0; l >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -nlist.cpp: In member function 'std::vector NList::deparseNumberList(std::string)': -nlist.cpp:38:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 38 | for (int i=0; i NList::deparseStringList(std::string, std::map, int>*)': -nlist.cpp:83:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 83 | for (int i=0; i NList::expandNumberList(std::vector&)': -nlist.cpp:107:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 107 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 124 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 151 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 160 | for (int i=0; i > NList::tokenize(std::string)': -nlist.cpp:189:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 189 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 239 | if ( s[i]== range_char && i == s.length()-1 ) - | ~~^~~~~~~~~~~~~~~ -nlist.cpp:253:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 253 | else if ( i == s.length()-1 ) - | ~~^~~~~~~~~~~~~~~ -In file included from helper.h:24, - from simul.cpp:16: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -simul.cpp: In function 'vector_t instanceSNP(SimParameters&)': -simul.cpp:172:10: warning: unused variable 'gh_11_12' [-Wunused-variable] - 172 | double gh_11_12 = h11*h12; - | ^~~~~~~~ -simul.cpp: In member function 'void Plink::simulateSNPs()': -simul.cpp:635:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 635 | for (int s=0; s::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 679 | for (int s=0; s::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1146 | for (int s=0; s::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1211 | for (int s=0; s >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ +In file included from metaem.cpp:28: +phase.h: In member function 'void HaploPhase::reset()': +phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 252 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 252 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 334 | for (int g = 0; g < nullModel.group.size(); g++) @@ -3399,6 +3413,9 @@ whap.cpp:1048:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1048 | for ( int i = 0 ; i < tok.size() ; i++ ) | ~~^~~~~~~~~~~~ +proxy.cpp:422:7: warning: 'ref' may be used uninitialized [-Wmaybe-uninitialized] + 422 | int ref; + | ^~~ whap.cpp:1118:27: warning: comparison of integer expressions of different signedness: 'std::map, int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 1118 | if ( mapping.size() != H->ns + H->nh ) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ @@ -3421,7 +3438,7 @@ 1290 | for (int g=0; g< model.group.size(); g++) | ~^~~~~~~~~~~~~~~~~~~~ In file included from helper.h:24, - from gvar.cpp:15: + from simul.cpp:16: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) @@ -3443,11 +3460,37 @@ whap.cpp:1434:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::set::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1434 | if ( cnt>0 && cnt2 < m.group[h].size() ) | ~~~~~^~~~~~~~~~~~~~~~~~~ +simul.cpp: In function 'vector_t instanceSNP(SimParameters&)': +simul.cpp:172:10: warning: unused variable 'gh_11_12' [-Wunused-variable] + 172 | double gh_11_12 = h11*h12; + | ^~~~~~~~ +simul.cpp: In member function 'void Plink::simulateSNPs()': +simul.cpp:635:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 635 | for (int s=0; s::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 679 | for (int s=0; s::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1146 | for (int s=0; s::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1211 | for (int s=0; s >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ gvar.cpp: In member function 'void Plink::readGenericVariantData()': gvar.cpp:125:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 125 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] 192 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] 556 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ In file included from helper.h:24, from cnv.cpp:23: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c greport.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c flip.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c qualscores.cpp cnv.cpp: In member function 'void Plink::readCNVList()': cnv.cpp:247:15: warning: unused variable 'p1' [-Wunused-variable] 247 | int p1,p2; @@ -3501,7 +3552,6 @@ cnv.cpp:332:22: warning: unused variable 'p2' [-Wunused-variable] 332 | int p1,p2; | ^~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c flip.cpp cnv.cpp:678:43: warning: variable 'is' set but not used [-Wunused-but-set-variable] 678 | map::iterator is = idescription.find(*ir); | ^~ @@ -3523,6 +3573,7 @@ cnv.cpp:1103:43: warning: variable 'il' set but not used [-Wunused-but-set-variable] 1103 | map::iterator il = segmentLength.find(t); | ^~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c cnvqt.cpp cnv.cpp:1414:11: warning: unused variable 'nseg' [-Wunused-variable] 1414 | int nseg = 1; | ^~~~ @@ -3553,15 +3604,8 @@ cnv.cpp:2290:10: warning: unused variable 'beta' [-Wunused-variable] 2290 | double beta = b[ b.size()-1 ]; | ^~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c qualscores.cpp -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c cnvqt.cpp -In file included from helper.h:24, - from step.cpp:18: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c cfamily.cpp +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c setscreen.cpp In file included from greport.cpp:20: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -3590,18 +3634,17 @@ 125 | int cnt = 0; | ^~~ In file included from helper.h:24, - from qualscores.cpp:24: + from flip.cpp:24: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ In file included from helper.h:24, - from flip.cpp:24: + from qualscores.cpp:24: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c setscreen.cpp qualscores.cpp: In member function 'void Plink::filterQualGenotypes()': qualscores.cpp:122:12: warning: unused variable 'nfound' [-Wunused-variable] 122 | long int nfound = 0; @@ -3612,12 +3655,12 @@ options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c idhelp.cpp In file included from cfamily.cpp:18: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c idhelp.cpp cfamily.cpp: In function 'int mCount(Individual*, Individual*)': cfamily.cpp:205:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 205 | for (int i = 0 ; i < inds.size() ; i++) @@ -3638,7 +3681,6 @@ cfamily.cpp:288:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 288 | for (int i = 0 ; i < inds.size() ; i++) | ~~^~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c tag.cpp In file included from setscreen.cpp:21: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -3657,6 +3699,7 @@ setscreen.cpp:196:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 196 | for (int i=0; i < snpset[j].size(); i++) | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c tag.cpp g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c hapglm.cpp g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c lookup2.cpp In file included from idhelp.cpp:18: @@ -3664,11 +3707,13 @@ idhelp.h:196:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 196 | for (int k=0; k >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c zed.cpp idhelp.cpp: In member function 'std::map > IDHelper::parseQuery(std::string)': idhelp.cpp:40:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 40 | for ( int i = 0 ; i < ids.size() ; i++) @@ -3699,7 +3744,6 @@ idhelp.cpp:214:26: warning: unused variable 'jo' [-Wunused-variable] 214 | vector & jo = jointOrder[j]; | ^~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c blox.cpp idhelp.cpp: In member function 'std::set IDHelper::findAllIndividuals(std::map >&)': idhelp.cpp:346:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 346 | for ( int g = 0 ; g < idgroup.size(); g++ ) @@ -3759,12 +3803,6 @@ idhelp.cpp:794:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 794 | for ( int j = 0 ; j < files[f].fields.size(); j++ ) | ~~^~~~~~~~~~~~~~~~~~~~~~~~ -In file included from helper.h:24, - from tag.cpp:24: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ idhelp.cpp:808:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 808 | for ( int j = 0 ; j < files[f].fields.size(); j++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~ @@ -3819,16 +3857,9 @@ idhelp.cpp:1110:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1110 | for ( int j = 0; j < group->values.size(); j++ ) | ~~^~~~~~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c zed.cpp idhelp.cpp:1128:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1128 | for ( int k = 0; k < (*i0)->values.size(); k++) | ~~^~~~~~~~~~~~~~~~~~~~~~ -In file included from helper.h:24, - from hapglm.cpp:20: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ idhelp.cpp:1183:46: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1183 | for (int z=0; zvalues.size(); z++) | ~^~~~~~~~~~~~~~~~~~~~~ @@ -3903,11 +3934,6 @@ idhelp.cpp:1903:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1903 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 252 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1937 | for (int k=0; k::size_type' {aka 'long unsigned int'} [-Wsign-compare] 2070 | for (int v=0; vvalues.size(); v++) | ~^~~~~~~~~~~~~~~~~ +In file included from helper.h:24, + from tag.cpp:24: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ idhelp.cpp:1889:12: warning: unused variable 'jointQuery' [-Wunused-variable] 1889 | bool jointQuery = id.find("+") != string::npos; | ^~~~~~~~~~ @@ -3954,11 +3986,23 @@ 2234 | for (int j = 0 ; j < group->values.size(); j++ ) | ~~^~~~~~~~~~~~~~~~~~~~~~ In file included from helper.h:24, + from hapglm.cpp:20: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c dosage.cpp +In file included from helper.h:24, from lookup2.cpp:18: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ +In file included from hapglm.cpp:25: +phase.h: In member function 'void HaploPhase::reset()': +phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 252 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 163 | for (int i = 0 ; i < ids.size(); i++) @@ -3972,9 +4016,12 @@ lookup2.cpp:325:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 325 | for (int t = 0 ; t < tokens.size() ; t++) | ~~^~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c dosage.cpp -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c annot.cpp -g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c metaanal.cpp +In file included from helper.h:24, + from zed.cpp:19: +options.h: In member function 'void OptionSet::display()': +options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ In file included from blox.cpp:20: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -3985,12 +4032,6 @@ phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 252 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ blox.cpp: In member function 'std::map > Plink::mkBlks(int, int)': blox.cpp:147:11: warning: unused variable 'nsnps' [-Wunused-variable] 147 | int nsnps = toPosition - fromPosition + 1; @@ -4010,6 +4051,7 @@ blox.cpp:418:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 418 | for (int k=0; k::size_type' {aka 'long unsigned int'} [-Wsign-compare] 427 | for (int k=0; k >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c Rconnection.cpp In file included from dosage.cpp:23: phase.h: In member function 'void HaploPhase::reset()': phase.h:252:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -4037,42 +4079,6 @@ dosage.cpp:110:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 110 | for ( int q = 0 ; q < qthresh.size() ; q++) | ~~^~~~~~~~~~~~~~~~ -In file included from Rconnection.cpp:30: -Rconnection.h: In constructor 'Rsymbol::Rsymbol(Rmessage*)': -Rconnection.h:203:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 203 | { name=""; fix_content(); } - | ^~ -Rconnection.h: In constructor 'Rsymbol::Rsymbol(unsigned int*, Rmessage*)': -Rconnection.h:206:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 206 | { name=""; fix_content(); } - | ^~ -Rconnection.h: In member function 'char* Rstrings::stringAt(int)': -Rconnection.h:232:43: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 232 | char *stringAt(int i) { return (i<0||i>=nel)?0:cont[i]; } - | ~^~~~~ -Rconnection.h: In member function 'void Rstrings::decode()': -Rconnection.h:245:16: warning: comparison of integer expressions of different signedness: 'int' and 'Rsize_t' {aka 'unsigned int'} [-Wsign-compare] - 245 | while (i < len) { if (!c[i]) nel++; i++; } - | ~~^~~~~ -Rconnection.h:249:18: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 249 | while (i < nel) { - | ~~^~~~~ -Rconnection.cpp: At global scope: -Rconnection.cpp:56:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 56 | static char *myID= "Rsrv0103QAP1"; /* this client supports up to protocol version 0103 */ - | ^~~~~~~~~~~~~~ -In file included from metaanal.cpp:21: -options.h: In member function 'void OptionSet::display()': -options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -Rconnection.cpp: In destructor 'virtual Rconnection::~Rconnection()': -Rconnection.cpp:567:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 567 | if (host) free(host); host=0; - | ^~ -Rconnection.cpp:567:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 567 | if (host) free(host); host=0; - | ^~~~ dosage.cpp:513:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 513 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 989 | for (int q=0; qgetStatistic() : 0; | ^~~~~~~~~ @@ -4115,49 +4111,52 @@ dosage.cpp:190:7: warning: unused variable 'geno_field' [-Wunused-variable] 190 | int geno_field = a2_field + skip2 + 1; | ^~~~~~~~~~ -metaanal.cpp: In member function 'void Plink::metaAnalysis()': -metaanal.cpp:159:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 159 | for (int f=0; f >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 182 | for (int f=0; f >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 213 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 235 | for (int f = 0 ; f < par::meta_files.size() ; f++ ) - | ~~^~~~~~~~~~~~~~~~~~~~~~~~ -metaanal.cpp:261:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 261 | for (int i=0; i >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 300 | if ( tokens.size() != fsize ) - | ~~~~~~~~~~~~~~^~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/plink-1.07+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c zfstream.cpp +In file included from Rconnection.cpp:30: +Rconnection.h: In constructor 'Rsymbol::Rsymbol(Rmessage*)': +Rconnection.h:203:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 203 | { name=""; fix_content(); } + | ^~ +Rconnection.h: In constructor 'Rsymbol::Rsymbol(unsigned int*, Rmessage*)': +Rconnection.h:206:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 206 | { name=""; fix_content(); } + | ^~ +Rconnection.h: In member function 'char* Rstrings::stringAt(int)': +Rconnection.h:232:43: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 232 | char *stringAt(int i) { return (i<0||i>=nel)?0:cont[i]; } + | ~^~~~~ +Rconnection.h: In member function 'void Rstrings::decode()': +Rconnection.h:245:16: warning: comparison of integer expressions of different signedness: 'int' and 'Rsize_t' {aka 'unsigned int'} [-Wsign-compare] + 245 | while (i < len) { if (!c[i]) nel++; i++; } + | ~~^~~~~ +Rconnection.h:249:18: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 249 | while (i < nel) { + | ~~^~~~~ +Rconnection.cpp: At global scope: +Rconnection.cpp:56:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 56 | static char *myID= "Rsrv0103QAP1"; /* this client supports up to protocol version 0103 */ + | ^~~~~~~~~~~~~~ +Rconnection.cpp: In destructor 'virtual Rconnection::~Rconnection()': +Rconnection.cpp:567:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 567 | if (host) free(host); host=0; + | ^~ +Rconnection.cpp:567:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 567 | if (host) free(host); host=0; + | ^~~~ In file included from annot.cpp:20: options.h: In member function 'void OptionSet::display()': options.h:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -metaanal.cpp:253:11: warning: variable 'pval_column' set but not used [-Wunused-but-set-variable] - 253 | int pval_column = -1; - | ^~~~~~~~~~~ -metaanal.cpp:482:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 482 | for (int f=0; f >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 637 | for (int f=0; f >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 680 | for (int f=0; f >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 83 | for (int j=1; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ annot.cpp:149:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 149 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -In file included from r.cpp:29: -Rconnection.h: In constructor 'Rsymbol::Rsymbol(Rmessage*)': -Rconnection.h:203:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 203 | { name=""; fix_content(); } - | ^~ -Rconnection.h: In constructor 'Rsymbol::Rsymbol(unsigned int*, Rmessage*)': -Rconnection.h:206:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 206 | { name=""; fix_content(); } - | ^~ -Rconnection.h: In member function 'char* Rstrings::stringAt(int)': -Rconnection.h:232:43: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 232 | char *stringAt(int i) { return (i<0||i>=nel)?0:cont[i]; } - | ~^~~~~ -Rconnection.h: In member function 'void Rstrings::decode()': -Rconnection.h:245:16: warning: comparison of integer expressions of different signedness: 'int' and 'Rsize_t' {aka 'unsigned int'} [-Wsign-compare] - 245 | while (i < len) { if (!c[i]) nel++; i++; } - | ~~^~~~~ -Rconnection.h:249:18: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 249 | while (i < nel) { - | ~~^~~~~ -r.cpp: In member function 'void Plink::Rfunc()': -r.cpp:330:15: warning: unused variable 'ct' [-Wunused-variable] - 330 | int ct = data->length(); - | ^~ +metaanal.cpp: In constructor 'Alleles::Alleles(std::string, int, int, std::string, std::string)': +metaanal.cpp:47:7: warning: 'Alleles::bp' will be initialized after [-Wreorder] + 47 | int bp; + | ^~ +metaanal.cpp:44:10: warning: 'std::string Alleles::a1' [-Wreorder] + 44 | string a1; + | ^~ +metaanal.cpp:61:3: warning: when initialized here [-Wreorder] + 61 | Alleles(string name, int chr, int bp, string a1, string a2) + | ^~~~~~~ +metaanal.cpp: In member function 'void Plink::metaAnalysis()': +metaanal.cpp:159:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 159 | for (int f=0; f >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 182 | for (int f=0; f >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 213 | for (int i=0; i0 ) loglike1 += knownBA * log( pB1 ); | ~~~^~~~~~~ @@ -4230,6 +4228,51 @@ blox.cpp:489:10: note: 'pA1' was declared here 489 | double pA1,pA2,pB1,pB2; | ^~~ +metaanal.cpp:235:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 235 | for (int f = 0 ; f < par::meta_files.size() ; f++ ) + | ~~^~~~~~~~~~~~~~~~~~~~~~~~ +metaanal.cpp:261:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 261 | for (int i=0; i >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 300 | if ( tokens.size() != fsize ) + | ~~~~~~~~~~~~~~^~~~~~~~ +In file included from r.cpp:29: +Rconnection.h: In constructor 'Rsymbol::Rsymbol(Rmessage*)': +Rconnection.h:203:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 203 | { name=""; fix_content(); } + | ^~ +Rconnection.h: In constructor 'Rsymbol::Rsymbol(unsigned int*, Rmessage*)': +Rconnection.h:206:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 206 | { name=""; fix_content(); } + | ^~ +Rconnection.h: In member function 'char* Rstrings::stringAt(int)': +Rconnection.h:232:43: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 232 | char *stringAt(int i) { return (i<0||i>=nel)?0:cont[i]; } + | ~^~~~~ +Rconnection.h: In member function 'void Rstrings::decode()': +Rconnection.h:245:16: warning: comparison of integer expressions of different signedness: 'int' and 'Rsize_t' {aka 'unsigned int'} [-Wsign-compare] + 245 | while (i < len) { if (!c[i]) nel++; i++; } + | ~~^~~~~ +Rconnection.h:249:18: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 249 | while (i < nel) { + | ~~^~~~~ +r.cpp: In member function 'void Plink::Rfunc()': +r.cpp:330:15: warning: unused variable 'ct' [-Wunused-variable] + 330 | int ct = data->length(); + | ^~ +metaanal.cpp:253:11: warning: variable 'pval_column' set but not used [-Wunused-but-set-variable] + 253 | int pval_column = -1; + | ^~~~~~~~~~~ +metaanal.cpp:482:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 482 | for (int f=0; f >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 637 | for (int f=0; f >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 680 | for (int f=0; f