Diff of the two buildlogs: -- --- b1/build.log 2024-05-07 15:40:51.749981978 +0000 +++ b2/build.log 2024-05-07 15:43:55.758152433 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Jun 9 10:01:13 -12 2025 -I: pbuilder-time-stamp: 1749506473 +I: Current time: Wed May 8 05:41:00 +14 2024 +I: pbuilder-time-stamp: 1715096460 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -31,52 +31,84 @@ dpkg-source: info: applying gcc11.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1486401/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/59174/tmp/hooks/D01_modify_environment starting +debug: Running on codethink02-arm64. +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 May 7 15:41 /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/59174/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/59174/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + 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]="21" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='665efd69c3c14ddca43ea35c1ba880e5' - 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='1486401' - PS1='# ' - PS2='> ' + INVOCATION_ID=0cefd2ecdfa740e68fc58db11f8e5c83 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-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=59174 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.YsK20ii4/pbuilderrc_wSYd --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.YsK20ii4/b1 --logfile b1/build.log plink_1.07+dfsg-4.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4: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.YsK20ii4/pbuilderrc_AV1Z --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.YsK20ii4/b2 --logfile b2/build.log plink_1.07+dfsg-4.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink03-arm64 6.1.0-21-cloud-arm64 #1 SMP Debian 6.1.90-1 (2024-05-03) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-21-cloud-arm64 #1 SMP Debian 6.1.90-1 (2024-05-03) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Jun 9 17:47 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1486401/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 6 11:24 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/59174/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -145,7 +177,7 @@ Get: 29 http://deb.debian.org/debian trixie/main arm64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 30 http://deb.debian.org/debian trixie/main arm64 debhelper all 13.15.3 [901 kB] Get: 31 http://deb.debian.org/debian trixie/main arm64 zlib1g-dev arm64 1:1.3.dfsg-3.1 [915 kB] -Fetched 19.6 MB in 0s (135 MB/s) +Fetched 19.6 MB in 0s (109 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 ... 19743 files and directories currently installed.) @@ -284,7 +316,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/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/59174/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/59174/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/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 @@ -326,36 +362,11 @@ g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c multi.cpp g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c crandom.cpp g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c cluster.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++) - | ~~^~~~~~~~~~~~~~~~~~ -In file included from locus.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 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 binput.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 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 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++) - | ~~^~~~~~~~~~~~~~~~~~ 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() ) @@ -378,118 +389,24 @@ input.cpp:631:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 631 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -binput.cpp: In member function 'void Plink::readBinData()': -binput.cpp:126:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 126 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 157 | for (int j=0; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 695 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 176 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 186 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 261 | while (s::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 339 | while (s::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 351 | while (c<7 && s::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 398 | for(int l=0; l < locus.size(); l++) - | ~~^~~~~~~~~~~~~~ -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::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 198 | for (int i=0;i 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] 787 | 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:273:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::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++) - | ~~^~~~~~~~~~~~~~~~~~ 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] - 591 | 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] 927 | for ( int i=2; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1064 | for (int i=0; i::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 'void Plink::makePhenotype()': input.cpp:1208:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1208 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1261 | for (int i0=0; i0 >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ input.cpp: In member function 'bool Plink::readCovListFile()': input.cpp:1335:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1335 | for (int i=0; ifreq * ( 1 - locus[l]->freq ); - | ^~ -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'} and 'int' [-Wsign-compare] 1374 | else if (tokens.size() != par::clist_number + 2 ) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -filters.cpp:1257:7: warning: unused variable 'tmp' [-Wunused-variable] - 1257 | int tmp = deleteSNPs(del); - | ^~~ -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; - | ^~~ -genome.cpp: In member function 'void Plink::displayGenomeWideInfo()': -genome.cpp:1067:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses] - 1067 | if ( (!par::silent ) && c==c2 || c==np) - | ~~~~~~~~~~~~~~~~^~~~~~~~ -stats.cpp: In function 'void tqli(std::vector&, std::vector&, std::vector >&)': -stats.cpp:458:18: warning: unused variable 'k' [-Wunused-variable] - 458 | int m,l,iter,i,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 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::pruneLD()': -genome.cpp:1227:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1227 | for (int i=0;i > msqrt(std::vector >&)': -stats.cpp:906:16: warning: unused variable 'eps' [-Wunused-variable] - 906 | const double eps = 1e-12; - | ^~~ 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] 1602 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1477 | for (int c = 0 ; c < keep.size(); c++) - | ~~^~~~~~~~~~~~~ -stats.cpp:1483:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1483 | for (int c = 0 ; c < keep.size(); c++) - | ~~^~~~~~~~~~~~~ -stats.cpp:1515:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1515 | for (int c = 0 ; c < keep.size(); c++) - | ~~^~~~~~~~~~~~~ -stats.cpp:1521:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1521 | for (int c = 0 ; c < keep.size(); c++) - | ~~^~~~~~~~~~~~~ -stats.cpp: In function 'matrix_t vec2diag(vector_t&)': -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++) - | ~~^~~~~~~~~~ input.cpp:1745:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::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 >&)': -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] 1792 | 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++) - | ~^~~~~~~~~~ input.cpp: In member function 'void Plink::readMapFile(std::string, std::vector&, 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] 2225 | for(int l=0; l < locus.size(); l++) | ~~^~~~~~~~~~~~~~ -tinput.cpp: In member function 'void Plink::readTransposedData()': -tinput.cpp:161:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 161 | 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] - 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() ) - | ~~~~~~~~~~^~~~~~~~~~~~~~ input.cpp:2419:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 2419 | for (int i=0; i::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] 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] - 252 | 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 cluster.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 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++) + | ~~^~~~~~~~~~~~~~~~~~ +cluster.cpp: In member function 'void Plink::buildCluster()': +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++) + | ~^~~~~~~~~~~ +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] + 626 | for ( int i = 4; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 648 | if ( col_length != tokens.size() ) + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~ +cluster.cpp:651:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 651 | for (int i=0;i >::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] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +cluster.cpp:919:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 919 | for (int k=0;k >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 954 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 955 | for (int j=0; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 975 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 976 | for (int j=i+1; j::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 990 | (( cl[i].size()+cl[j].size()) <= par::max_cluster_size) ) + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ +cluster.cpp:1038:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1038 | for(int j=0;j >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 1041 | if (cl.size()==1 || cl.size()==par::max_cluster_N) done=true; + | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ +cluster.cpp:1049:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1049 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1050 | for (int j=0; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1060 | for (int j1=0; j1 >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1061 | for (int j2=0; j2 >::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] + 1133 | for (int j=0; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1163 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 591 | if ( c > sample.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 >&, 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] + 1204 | for (int j=0; j >&, std::vector&, std::vector&)': +cluster.cpp:1228:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1228 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1229 | for (int j=0; j&, 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] + 1255 | for (int j=0; j&, std::vector&)': +cluster.cpp:1272:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1272 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1276 | for (int j=0; j >&, std::vector&, std::vector&)': +cluster.cpp:1290:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1290 | 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] + 1643 | for ( int i = 4; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1661 | if ( col_length != tokens.size() ) + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~ +cluster.cpp:1664:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1664 | 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 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++) + | ~~^~~~~~~~~~~~~~~~~~ +binput.cpp: In member function 'void Plink::readBinData()': +binput.cpp:126:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 126 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 157 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 176 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 186 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 261 | while (s::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 339 | while (s::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 351 | while (c<7 && s::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 398 | for(int l=0; l < locus.size(); l++) + | ~~^~~~~~~~~~~~~~ +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++) + | ~~^~~~~~~~~~~~~~~~~~ +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++) + | ~^~~~~~~~~~ +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++) + | ~~^~~~~~~~~~~~~~~~~~ +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::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] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +filters.cpp:611:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 611 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 193 | for (int t=0; t::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 603 | if ( gn != 2 * sample.size() ) - | ~~~^~~~~~~~~~~~~~~~~~~~ helper.cpp: In member function 'std::vector > 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() ) | ~~~~~~^~~~~~~~~~ +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++ ) + | ~~^~~~~~~~~~~~~~ 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+" "); | ~~~~~~~~~^~~~ +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++ ) + | ~~^~~~~~~~~~~~~~~ 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++) @@ -772,10 +797,53 @@ 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] + 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] + 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] + 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] + 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() ) + | ~~~^~~~~~~~~~~~~~~~~~~~ +filters.cpp: In member function 'void Plink::thinSNPs()': +filters.cpp:1277:7: warning: unused variable 'x' [-Wunused-variable] + 1277 | int x = 0; + | ^ helper.cpp: In member function 'void CArgs::check_unused_options(Plink&)': helper.cpp:461:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 461 | for (int i=1; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 611 | 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'} [-Wsign-compare] 659 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 795 | for (int s = 0 ; s < snps.size() ; s++) | ~~^~~~~~~~~~~~~ +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; + | ^~~~~~ 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() ) @@ -859,12 +929,68 @@ helper.cpp:1391:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1391 | for (int j=0; jfreq * ( 1 - locus[l]->freq ); + | ^~ +In file included from plink.cpp:28: +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 'void tqli(std::vector&, std::vector&, std::vector >&)': +stats.cpp:458:18: warning: unused variable 'k' [-Wunused-variable] + 458 | int m,l,iter,i,k; + | ^ +stats.cpp: In function 'bool svd(matrix_t&, vector_t&, matrix_t&)': +stats.cpp:813:16: warning: unused variable 'eps' [-Wunused-variable] + 813 | const double eps = 1e-12; + | ^~~ +stats.cpp:818:7: warning: unused variable 'r' [-Wunused-variable] + 818 | int r = u.size(); + | ^ +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; + | ^~~ +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; + | ^~~ +genome.cpp: In member function 'void Plink::displayGenomeWideInfo()': +genome.cpp:1067:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 1067 | if ( (!par::silent ) && c==c2 || c==np) + | ~~~~~~~~~~~~~~~~^~~~~~~~ +stats.cpp: In function 'int pca(matrix_t&, boolmatrix_t&, vector_t&, matrix_t&, matrix_t&, bool)': +stats.cpp:1477:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1477 | for (int c = 0 ; c < keep.size(); c++) + | ~~^~~~~~~~~~~~~ +stats.cpp:1483:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1483 | for (int c = 0 ; c < keep.size(); c++) + | ~~^~~~~~~~~~~~~ +stats.cpp:1515:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1515 | for (int c = 0 ; c < keep.size(); c++) + | ~~^~~~~~~~~~~~~ +stats.cpp:1521:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1521 | for (int c = 0 ; c < keep.size(); c++) + | ~~^~~~~~~~~~~~~ +stats.cpp: In function 'matrix_t vec2diag(vector_t&)': +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++) + | ~~^~~~~~~~~~ +genome.cpp: In member function 'void Plink::pruneLD()': +genome.cpp:1227:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1227 | for (int i=0;i&)': helper.cpp:2204:12: warning: unused variable 'i' [-Wunused-variable] 2204 | int i = 0; @@ -907,20 +1033,6 @@ helper.cpp:2638:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 2638 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2106 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2359 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2362 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 2366 | for (int l=0; l >::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] + 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::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 2959 | if ( input.size() != P.nl_all ) | ~~~~~~~~~~~~~^~~~~~~~~~~ -In file included from helper.h:24, - from cluster.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 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, std::set > readRange(std::string)': helper.cpp:3097:20: warning: unused variable 's' [-Wunused-variable] 3097 | set * s; | ^ +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] - 272 | for (int z=1; z<=qt.size(); z++) +multi.cpp:304:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::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] + 196 | for (int k=0; k::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2106 | for (int i=0;i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2359 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2362 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 2366 | for (int l=0; l >::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] - 626 | for ( int i = 4; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 648 | if ( col_length != tokens.size() ) - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~ -cluster.cpp:651:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 651 | for (int i=0;i >::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] - 919 | for (int k=0;k >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 954 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 955 | for (int j=0; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 975 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 976 | for (int j=i+1; j::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 990 | (( cl[i].size()+cl[j].size()) <= par::max_cluster_size) ) - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -cluster.cpp:1038:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1038 | for(int j=0;j >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 1041 | if (cl.size()==1 || cl.size()==par::max_cluster_N) done=true; - | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -cluster.cpp:1049:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1049 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1050 | for (int j=0; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1060 | for (int j1=0; j1 >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1061 | for (int j2=0; j2 >::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] - 1133 | for (int j=0; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1163 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1169 | for (int i=0; i >&, 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] - 1204 | for (int j=0; j >&, std::vector&, std::vector&)': -cluster.cpp:1228:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1228 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1229 | for (int j=0; j&, 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] - 1255 | for (int j=0; j&, std::vector&)': -cluster.cpp:1272:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1272 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1276 | for (int j=0; j >&, std::vector&, std::vector&)': -cluster.cpp:1290:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1290 | 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] - 1643 | for ( int i = 4; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1661 | if ( col_length != tokens.size() ) - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~ -cluster.cpp:1664:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1664 | 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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c output.cpp 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::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = const int; _Up = int; bool _IsMove = false]', + inlined from '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = const int*; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:506:30, + inlined from '_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = const int*; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:533:42, + inlined from '_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = __gnu_cxx::__normal_iterator >; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:540:31, + inlined from '_OI std::copy(_II, _II, _OI) [with _II = __gnu_cxx::__normal_iterator >; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:633:7, + inlined from 'static _ForwardIterator std::__uninitialized_copy::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = int*]' at /usr/include/c++/13/bits/stl_uninitialized.h:147:27, + inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = int*]' at /usr/include/c++/13/bits/stl_uninitialized.h:185:15, + inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = int*; _Tp = int]' at /usr/include/c++/13/bits/stl_uninitialized.h:373:37, + inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:606:31, + inlined from 'void std::__new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::vector; _Args = {const std::vector >&}; _Tp = std::vector]' at /usr/include/c++/13/bits/new_allocator.h:191:4, + inlined from 'static void std::allocator_traits >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = std::vector; _Args = {const std::vector >&}; _Tp = std::vector]' at /usr/include/c++/13/bits/alloc_traits.h:538:17, + inlined from 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector; _Alloc = std::allocator >]' at /usr/include/c++/13/bits/stl_vector.h:1286:30, + inlined from 'void Plink::buildCluster()' at cluster.cpp:128:20: +/usr/include/c++/13/bits/stl_algobase.h:437:30: warning: 'void* __builtin_memmove(void*, const void*, long unsigned int)' forming offset 4 is out of the bounds [0, 4] [-Warray-bounds=] + 437 | __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); + | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In static member function 'static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = const int; _Up = int; bool _IsMove = false]', + inlined from '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = const int*; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:506:30, + inlined from '_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = const int*; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:533:42, + inlined from '_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = __gnu_cxx::__normal_iterator >; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:540:31, + inlined from '_OI std::copy(_II, _II, _OI) [with _II = __gnu_cxx::__normal_iterator >; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:633:7, + inlined from 'static _ForwardIterator std::__uninitialized_copy::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = int*]' at /usr/include/c++/13/bits/stl_uninitialized.h:147:27, + inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = int*]' at /usr/include/c++/13/bits/stl_uninitialized.h:185:15, + inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = int*; _Tp = int]' at /usr/include/c++/13/bits/stl_uninitialized.h:373:37, + inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:606:31, + inlined from 'void std::__new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::vector; _Args = {const std::vector >&}; _Tp = std::vector]' at /usr/include/c++/13/bits/new_allocator.h:191:4, + inlined from 'static void std::allocator_traits >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = std::vector; _Args = {const std::vector >&}; _Tp = std::vector]' at /usr/include/c++/13/bits/alloc_traits.h:538:17, + inlined from 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector; _Alloc = std::allocator >]' at /usr/include/c++/13/bits/stl_vector.h:1286:30, + inlined from 'void Plink::buildCluster()' at cluster.cpp:139:16: +/usr/include/c++/13/bits/stl_algobase.h:437:30: warning: 'void* __builtin_memmove(void*, const void*, long unsigned int)' forming offset 4 is out of the bounds [0, 4] [-Warray-bounds=] + 437 | __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); + | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from output.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] @@ -1163,10 +1238,25 @@ output.cpp:553:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 553 | for (int l=0; l >::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::keep2SetsForGenome()': output.cpp:788:7: warning: unused variable 'n_removed' [-Wunused-variable] 788 | int n_removed = deleteIndividuals(del); | ^~~~~~~~~ +informative.cpp: In member function 'int Plink::readInformative()': +informative.cpp:80:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 80 | for ( int i = 4; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 102 | if ( col_length != tokens.size() ) + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~ +informative.cpp:105:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 105 | for (int i=0;i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 2200 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 2412 | for (int l=0; l >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -informative.cpp: In member function 'int Plink::readInformative()': -informative.cpp:80:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 80 | for ( int i = 4; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 102 | if ( col_length != tokens.size() ) - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~ -informative.cpp:105:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 105 | for (int i=0;i::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = const int; _Up = int; bool _IsMove = false]', - inlined from '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = const int*; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:506:30, - inlined from '_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = const int*; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:533:42, - inlined from '_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = __gnu_cxx::__normal_iterator >; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:540:31, - inlined from '_OI std::copy(_II, _II, _OI) [with _II = __gnu_cxx::__normal_iterator >; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:633:7, - inlined from 'static _ForwardIterator std::__uninitialized_copy::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = int*]' at /usr/include/c++/13/bits/stl_uninitialized.h:147:27, - inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = int*]' at /usr/include/c++/13/bits/stl_uninitialized.h:185:15, - inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = int*; _Tp = int]' at /usr/include/c++/13/bits/stl_uninitialized.h:373:37, - inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:606:31, - inlined from 'void std::__new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::vector; _Args = {const std::vector >&}; _Tp = std::vector]' at /usr/include/c++/13/bits/new_allocator.h:191:4, - inlined from 'static void std::allocator_traits >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = std::vector; _Args = {const std::vector >&}; _Tp = std::vector]' at /usr/include/c++/13/bits/alloc_traits.h:538:17, - inlined from 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector; _Alloc = std::allocator >]' at /usr/include/c++/13/bits/stl_vector.h:1286:30, - inlined from 'void Plink::buildCluster()' at cluster.cpp:128:20: -/usr/include/c++/13/bits/stl_algobase.h:437:30: warning: 'void* __builtin_memmove(void*, const void*, long unsigned int)' forming offset 4 is out of the bounds [0, 4] [-Warray-bounds=] - 437 | __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); - | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In static member function 'static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = const int; _Up = int; bool _IsMove = false]', - inlined from '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = const int*; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:506:30, - inlined from '_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = const int*; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:533:42, - inlined from '_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = __gnu_cxx::__normal_iterator >; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:540:31, - inlined from '_OI std::copy(_II, _II, _OI) [with _II = __gnu_cxx::__normal_iterator >; _OI = int*]' at /usr/include/c++/13/bits/stl_algobase.h:633:7, - inlined from 'static _ForwardIterator std::__uninitialized_copy::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = int*]' at /usr/include/c++/13/bits/stl_uninitialized.h:147:27, - inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = int*]' at /usr/include/c++/13/bits/stl_uninitialized.h:185:15, - inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = int*; _Tp = int]' at /usr/include/c++/13/bits/stl_uninitialized.h:373:37, - inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator]' at /usr/include/c++/13/bits/stl_vector.h:606:31, - inlined from 'void std::__new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::vector; _Args = {const std::vector >&}; _Tp = std::vector]' at /usr/include/c++/13/bits/new_allocator.h:191:4, - inlined from 'static void std::allocator_traits >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = std::vector; _Args = {const std::vector >&}; _Tp = std::vector]' at /usr/include/c++/13/bits/alloc_traits.h:538:17, - inlined from 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector; _Alloc = std::allocator >]' at /usr/include/c++/13/bits/stl_vector.h:1286:30, - inlined from 'void Plink::buildCluster()' at cluster.cpp:139:16: -/usr/include/c++/13/bits/stl_algobase.h:437:30: warning: 'void* __builtin_memmove(void*, const void*, long unsigned int)' forming offset 4 is out of the bounds [0, 4] [-Warray-bounds=] - 437 | __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); - | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c phase.cpp 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] @@ -1310,13 +1347,19 @@ epi.cpp:701:11: warning: unused variable 'c' [-Wunused-variable] 701 | int c=0; | ^ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c phase.cpp +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"; + | ~~~~~~~~^~~~~~~~~~~~ +output.cpp:46:7: note: 'i1' was declared here + 46 | int i1; + | ^~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c trio.cpp 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] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c trio.cpp In file included from prephap.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] @@ -1338,7 +1381,6 @@ prephap.cpp:420:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 420 | if ( index == tokens.size() - 1 ) | ~~~~~~^~~~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c tdt.cpp prephap.cpp:470:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 470 | for (int s=0;s::size_type' {aka 'long unsigned int'} [-Wsign-compare] 34 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] @@ -1413,6 +1448,7 @@ 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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c tdt.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] @@ -1422,11 +1458,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++) | ~^~~~~~~~~~~~~~ -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::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++) @@ -1484,6 +1515,47 @@ trio.cpp:1048:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1048 | for (int c=0; c::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1236 | for ( int k=0; kpm->kids.size(); k++) + | ~^~~~~~~~~~~~~~~~~~~~~~~~ +trio.cpp:1245:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1245 | for ( int k=0; kpp->kids.size(); k++) + | ~^~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/13/vector:67, + from helper.h:18: +In member function 'std::vector::reference std::vector::operator[](size_type) [with _Alloc = std::allocator]', + inlined from 'std::vector vif_prune(std::vector >, double, std::vector&)' at helper.cpp:1430:12: +/usr/include/c++/13/bits/stl_bvector.h:1087:23: warning: 'maxI' may be used uninitialized [-Wmaybe-uninitialized] + 1087 | { return begin()[__n]; } + | ~~~~~~~^ +helper.cpp: In function 'std::vector vif_prune(std::vector >, double, std::vector&)': +helper.cpp:1405:11: note: 'maxI' was declared here + 1405 | int maxI; + | ^~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c genepi.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:1108:11: warning: 'pvalue' may be used uninitialized [-Wmaybe-uninitialized] + 1108 | if ( pvalue <= par::set_score_p && pvalue >= 0 ) + | ^~ +assoc.cpp:1019:14: note: 'pvalue' was declared here + 1019 | double pvalue; + | ^~~~~~ +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; + | ^~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c sets.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++) + | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c perm.cpp 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++) @@ -1515,13 +1587,6 @@ tdt.cpp:415:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 415 | for (int j=0;jpv_set[i].size();j++) | ~^~~~~~~~~~~~~~~~~~~~~ -trio.cpp: In member function 'void Plink::makeMissingParents()': -trio.cpp:1236:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1236 | for ( int k=0; kpm->kids.size(); k++) - | ~^~~~~~~~~~~~~~~~~~~~~~~~ -trio.cpp:1245:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1245 | for ( int k=0; kpp->kids.size(); k++) - | ~^~~~~~~~~~~~~~~~~~~~~~~~ tdt.cpp: In member function 'std::vector Plink::testTDT(bool, bool, Perm&, std::vector&, std::vector&)': tdt.cpp:522:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 522 | for (int f=0; f::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:1108:11: warning: 'pvalue' may be used uninitialized [-Wmaybe-uninitialized] - 1108 | if ( pvalue <= par::set_score_p && pvalue >= 0 ) - | ^~ -assoc.cpp:1019:14: note: 'pvalue' was declared here - 1019 | double pvalue; - | ^~~~~~ -tdt.cpp:936:55: warning: 'zt' may be used uninitialized [-Wmaybe-uninitialized] - 936 | double OR_lower = exp( log(OR) - zt * sqrt(1/t1+1/t2)) ; - | ~~~^~~~~~~~~~~~~~~~~ -tdt.cpp:460:10: note: 'zt' was declared here - 460 | double zt; - | ^~ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c genepi.cpp -In file included from /usr/include/c++/13/vector:67, - from helper.h:18: -In member function 'std::vector::reference std::vector::operator[](size_type) [with _Alloc = std::allocator]', - inlined from 'std::vector vif_prune(std::vector >, double, std::vector&)' at helper.cpp:1430:12: -/usr/include/c++/13/bits/stl_bvector.h:1087:23: warning: 'maxI' may be used uninitialized [-Wmaybe-uninitialized] - 1087 | { return begin()[__n]; } - | ~~~~~~~^ -helper.cpp: In function 'std::vector vif_prune(std::vector >, double, std::vector&)': -helper.cpp:1405:11: note: 'maxI' was declared here - 1405 | int maxI; - | ^~~~ +In file included from perm.h:17, + from sharing.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++) + | ~~^~~~~~~~~~~~~~~~~~ +sharing.cpp: In member function 'void Plink::perm_sharingIBSTest(Perm&)': +sharing.cpp:102:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 102 | for (int l=0; l::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits]', @@ -1599,22 +1648,22 @@ assoc.cpp:1430:36: note: 'gen_chisq' was declared here 1430 | double dom_chisq, rec_chisq, gen_chisq; | ^~~~~~~~~ +In file included from genepi.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 perm.h:17, - from sharing.cpp:19: + from perm.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++) | ~~^~~~~~~~~~~~~~~~~~ -sharing.cpp: In member function 'void Plink::perm_sharingIBSTest(Perm&)': -sharing.cpp:102:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 102 | for (int l=0; l >::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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c sets.cpp genepi.cpp: In function 'double C(int, double, double)': genepi.cpp:78:1: warning: no return statement in function returning non-void [-Wreturn-type] 78 | } @@ -1627,6 +1676,7 @@ genepi.cpp:334:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 334 | for (int s=0; s >&, Set&, Plink&)': genepi.cpp:489:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 489 | for (int l=0; l >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 144 | for (int j=0; j >&, Set&, Plink&)': genepi.cpp:1025:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1025 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1033 | for (int l=0; l::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 145 | for (int k=0; k::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 187 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 199 | for(int i=0; i&, std::vector&)': +perm.cpp:273:41: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 273 | for (int j=0;j< P.pS->snpset[l].size();j++) + | ~^~~~~~~~~~~~~~~~~~~~~~~~ genepi.cpp:1043:17: warning: unused variable 'n12' [-Wunused-variable] 1043 | int n12 = n1 + n2; | ^~~ @@ -1660,15 +1728,6 @@ genepi.cpp:1198:8: warning: unused variable 'casewise_deletion' [-Wunused-variable] 1198 | bool casewise_deletion = false; | ^~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c genedrop.cpp -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c gxe.cpp -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 sets.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] @@ -1774,43 +1833,20 @@ sets.cpp:1042:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1042 | 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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c merge.cpp -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] - 145 | for (int k=0; k::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 187 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 199 | for(int i=0; i&, std::vector&)': -perm.cpp:273:41: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 273 | for (int j=0;j< P.pS->snpset[l].size();j++) - | ~^~~~~~~~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c genedrop.cpp +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c gxe.cpp 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++) | ~~^~~~~~~~~~~~~~~~~~ -In file included from perm.h:17, - from genedrop.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++) - | ~~^~~~~~~~~~~~~~~~~~ +tdt.cpp:936:55: warning: 'zt' may be used uninitialized [-Wmaybe-uninitialized] + 936 | double OR_lower = exp( log(OR) - zt * sqrt(1/t1+1/t2)) ; + | ~~~^~~~~~~~~~~~~~~~~ +tdt.cpp:460:10: note: 'zt' was declared here + 460 | double zt; + | ^~ 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++) + | ~~^~~~~~~~~~~~~~~~~~ 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&, std::vector&, std::vector&, std::map&)': genedrop.cpp:340:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 340 | for (int k=0; kkids.size(); k++) @@ -1848,7 +1884,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++) | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c hotel.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] 842 | 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 /usr/include/c++/13/vector:66, - from /usr/include/c++/13/functional:64, - from genepi.cpp:20: -In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = int; _Alloc = std::allocator]', - inlined from 'void CCA_logit(bool, std::vector >&, Set&, Plink&)' at genepi.cpp:790:83: -/usr/include/c++/13/bits/stl_vector.h:1129:41: warning: 'cancor1_pos' may be used uninitialized [-Wmaybe-uninitialized] - 1129 | return *(this->_M_impl._M_start + __n); - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ -genepi.cpp: In function 'void CCA_logit(bool, std::vector >&, Set&, Plink&)': -genepi.cpp:614:17: note: 'cancor1_pos' was declared here - 614 | int cancor1_pos; - | ^~~~~~~~~~~ hotel.cpp: In member function 'void Plink::perm_testHotel(Perm&)': hotel.cpp:77:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 77 | if (!sample[i]->missing) @@ -1906,7 +1931,6 @@ hotel.cpp:173:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 173 | for (int s=0; s >::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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c poo.cpp In file included from haploCC.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] @@ -1959,25 +1984,53 @@ haploCC.cpp:392:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 392 | if ( ! ( haploid || X && person->sex ) ) | ~~^~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c qfam.cpp +In file included from /usr/include/c++/13/vector:66, + from /usr/include/c++/13/functional:64, + from genepi.cpp:20: +In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = int; _Alloc = std::allocator]', + inlined from 'void CCA_logit(bool, std::vector >&, Set&, Plink&)' at genepi.cpp:790:83: +/usr/include/c++/13/bits/stl_vector.h:1129:41: warning: 'cancor1_pos' may be used uninitialized [-Wmaybe-uninitialized] + 1129 | return *(this->_M_impl._M_start + __n); + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ +genepi.cpp: In function 'void CCA_logit(bool, std::vector >&, Set&, Plink&)': +genepi.cpp:614:17: note: 'cancor1_pos' was declared here + 614 | int cancor1_pos; + | ^~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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: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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c qfam.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++) + | ~~^~~~~~~~~~~~~~~~~~ +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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c parse.cpp webcheck.cpp: In member function 'void Plink::webcheck(CArgs&)': webcheck.cpp:117:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 117 | 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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c linear.cpp 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) @@ -2027,10 +2079,6 @@ poo.cpp:239:10: warning: unused variable 'zt' [-Wunused-variable] 239 | double zt; | ^~ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c bmerge.cpp -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c mishap.cpp -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c legacy.cpp In file included from helper.h:24, from qfam.cpp:20: options.h: In member function 'void OptionSet::display()': @@ -2067,32 +2115,11 @@ qfam.cpp:639:10: warning: unused variable 'tc' [-Wunused-variable] 639 | int tc = 0; | ^~ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c homozyg.cpp -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++) | ~~^~~~~~~~~~~~~~~~~~ -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c segment.cpp -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++) - | ~~^~~~~~~~~~~~~~~~~~ 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; @@ -2109,6 +2136,7 @@ bmerge.cpp:417:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 417 | for (int l=0;l::size_type' {aka 'long unsigned int'} [-Wsign-compare] 440 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] 883 | 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 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::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = std::vector; _Alloc = std::allocator >]', + inlined from 'void gaussj(matrix_t&, matrix_t&)' at linear.cpp:102:15: +/usr/include/c++/13/bits/stl_vector.h:1129:41: warning: 'icol' may be used uninitialized [-Wmaybe-uninitialized] + 1129 | return *(this->_M_impl._M_start + __n); + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ +linear.cpp: In function 'void gaussj(matrix_t&, matrix_t&)': +linear.cpp:75:9: note: 'icol' was declared here + 75 | int i,icol,irow,j,k,l,ll; + | ^~~~ +linear.cpp:96:5: warning: 'irow' may be used uninitialized [-Wmaybe-uninitialized] + 96 | if (irow != icol) { + | ^~ +linear.cpp:75:14: note: 'irow' was declared here + 75 | int i,icol,irow,j,k,l,ll; + | ^~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c segment.cpp +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c logistic.cpp +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++) + | ~~^~~~~~~~~~~~~~~~~~ +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++) + | ~~^~~~~~~~~~~~~~ +homozyg.cpp:695:19: 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 < plist.size(); i++) + | ~~^~~~~~~~~~~~~~ +homozyg.cpp:722:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 722 | for (int i=0; i < plist.size(); i++) + | ~~^~~~~~~~~~~~~~ +homozyg.cpp:756:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 756 | for (int i=0; i < plist.size(); i++) + | ~~^~~~~~~~~~~~~~ +homozyg.cpp:773:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 773 | for (int i=0; i < plist.size(); i++) + | ~~^~~~~~~~~~~~~~ +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 legacy.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++) | ~~^~~~~~~~~~~~~~~~~~ -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++) - | ~~^~~~~~~~~~~~~~~~~~~~~~~ -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++) - | ~~^~~~~~~~~~~~~~~~~~~~~~~ +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 ) + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +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 ) + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +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++) + | ~^~~~~~~~~~~~~~~~~~~~ +homozyg.cpp:1437:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1437 | for (int i=0; i < (*pA)->group.size() ; i++) + | ~~^~~~~~~~~~~~~~~~~~~~~ +homozyg.cpp:1441:47: warning: comparison of integer expressions of different signedness: 'std::vector::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 1441 | if ( (*pA)->match[i].size() >= maxlist ) + | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ +homozyg.cpp:1461:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1461 | for (int i=0; i < (*pA)->group.size() ; i++) + | ~~^~~~~~~~~~~~~~~~~~~~~ +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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c glm.cpp +In file included from mishap.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++) + | ~~^~~~~~~~~~~~~~~~~~ legacy.cpp: In member function 'void Plink::calcRegression(int)': legacy.cpp:368:18: 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::size_type' {aka 'long unsigned int'} [-Wsign-compare] 424 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 460 | for (int j=0; j::size_type' {aka 'long unsigned int'} [-Wsign-compare] 480 | 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++) + | ~~^~~~~~~~~~~~~~~~~~~~~~~ +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++) | ~~^~~~~~~~~~~~~~~~~~ -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++) - | ~~^~~~~~~~~~~~~~ -homozyg.cpp:695:19: 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 < plist.size(); i++) - | ~~^~~~~~~~~~~~~~ -homozyg.cpp:722:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 722 | for (int i=0; i < plist.size(); i++) - | ~~^~~~~~~~~~~~~~ -homozyg.cpp:756:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 756 | for (int i=0; i < plist.size(); i++) - | ~~^~~~~~~~~~~~~~ -homozyg.cpp:773:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 773 | for (int i=0; i < plist.size(); i++) - | ~~^~~~~~~~~~~~~~ -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++) - | ~~^~~~~~~~~~~~~~ -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 ) - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -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 ) - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -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++) - | ~^~~~~~~~~~~~~~~~~~~~ -homozyg.cpp:1437:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1437 | for (int i=0; i < (*pA)->group.size() ; i++) - | ~~^~~~~~~~~~~~~~~~~~~~~ -homozyg.cpp:1441:47: warning: comparison of integer expressions of different signedness: 'std::vector::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 1441 | if ( (*pA)->match[i].size() >= maxlist ) - | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ -homozyg.cpp:1461:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1461 | for (int i=0; i < (*pA)->group.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::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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c glm.cpp +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 *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; + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +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; + | ^~~~~~ 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) @@ -2282,29 +2401,6 @@ 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++) - | ~~^~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/13/vector:66, - from linear.h:17, - from linear.cpp:18: -In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = std::vector; _Alloc = std::allocator >]', - inlined from 'void gaussj(matrix_t&, matrix_t&)' at linear.cpp:102:15: -/usr/include/c++/13/bits/stl_vector.h:1129:41: warning: 'icol' may be used uninitialized [-Wmaybe-uninitialized] - 1129 | return *(this->_M_impl._M_start + __n); - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ -linear.cpp: In function 'void gaussj(matrix_t&, matrix_t&)': -linear.cpp:75:9: note: 'icol' was declared here - 75 | int i,icol,irow,j,k,l,ll; - | ^~~~ -linear.cpp:96:5: warning: 'irow' may be used uninitialized [-Wmaybe-uninitialized] - 96 | if (irow != icol) { - | ^~ -linear.cpp:75:14: note: 'irow' was declared here - 75 | int i,icol,irow,j,k,l,ll; - | ^~~~ 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; @@ -2350,11 +2446,6 @@ segment.cpp:2478:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2478 | else if ( par::cnv_col = 3 ) | ~~~~~~~~~~~~~^~~ -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&)': -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; - | ^~~~~~ +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:203:32: warning: 'last' may be used uninitialized [-Wmaybe-uninitialized] 203 | << start - last - 1 << " "; @@ -2394,11 +2471,7 @@ legacy.cpp:35:7: note: 'last' was declared here 35 | int last; | ^~~~ -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"); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c dcdflib.cpp +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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 glm.cpp:19: options.h: In member function 'void OptionSet::display()': @@ -2423,53 +2496,20 @@ 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; c *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; - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c elf.cpp g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c dfam.cpp -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c sockets.cpp In file included from helper.h:24, from elf.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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c fisher.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; + | ^~ elf.cpp: In function 'void displayScoresRegion(std::ofstream&, RCount&)': elf.cpp:493:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 493 | for ( int k = 0 ; k < i->second.size(); k++) @@ -2498,57 +2538,15 @@ 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 ) | ~~~~~~~~~~~~~~^~~~~~~ -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; - | ^~ -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c lookup.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++) | ~~^~~~~~~~~~~~~~~~~~ -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] - 86 | for ( int k=0; kkid.size(); k++) - | ~^~~~~~~~~~~~~~~~ -dfam.cpp:96:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 96 | for ( int k=0; kkid.size(); k++) - | ~^~~~~~~~~~~~~~~~ -dfam.cpp:106:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 106 | for (int c=0; cperson.size(); c++) - | ~^~~~~~~~~~~~~~~~~~~~~~~~ -dfam.cpp:157:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 157 | for (int f=0; f::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 271 | for (int c=0; ckid.size(); c++) - | ~^~~~~~~~~~~~~~~~~~~~~~ -dfam.cpp:378:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 378 | for (int c=0; ckid.size(); c++) - | ~^~~~~~~~~~~~~~~~~~~~~~ -dfam.cpp:218:16: warning: unused variable 'informative' [-Wunused-variable] - 218 | bool informative = false; - | ^~~~~~~~~~~ -dfam.cpp:504:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 504 | for (int c=0; cperson.size(); c++) - | ~^~~~~~~~~~~~~~~~~~~~~~~~ -dfam.cpp:151:11: warning: unused variable 'totalInformative' [-Wunused-variable] - 151 | int totalInformative = 0; - | ^~~~~~~~~~~~~~~~ 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."); @@ -2622,26 +2620,13 @@ fisher.cpp:2078:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2078 | prterr(20, "This should never occur."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from helper.h:24, - from sockets.cpp:18: +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++) | ~~^~~~~~~~~~~~~~~~~~ -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 linput.cpp:25: +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++) @@ -2665,20 +2650,34 @@ linput.cpp:200:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 200 | for (int i=0; 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; + | ^~~~~~~~~~~~~ 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++) | ~~^~~~~~~~~~~~~~~~~~ +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++) + | ~~^~~~~~~~~~~~~~~~~~ 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 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] + 86 | for ( int k=0; kkid.size(); k++) + | ~^~~~~~~~~~~~~~~~ +dfam.cpp:96:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 96 | for ( int k=0; kkid.size(); k++) + | ~^~~~~~~~~~~~~~~~ +dfam.cpp:106:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 106 | for (int c=0; cperson.size(); c++) + | ~^~~~~~~~~~~~~~~~~~~~~~~~ +dfam.cpp:157:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 157 | for (int f=0; f::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 271 | for (int c=0; ckid.size(); c++) + | ~^~~~~~~~~~~~~~~~~~~~~~ +dfam.cpp:378:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 378 | for (int c=0; ckid.size(); c++) + | ~^~~~~~~~~~~~~~~~~~~~~~ +dfam.cpp:218:16: warning: unused variable 'informative' [-Wunused-variable] + 218 | bool informative = false; + | ^~~~~~~~~~~ +dfam.cpp:504:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 504 | for (int c=0; cperson.size(); c++) + | ~^~~~~~~~~~~~~~~~~~~~~~~~ +dfam.cpp:151:11: warning: unused variable 'totalInformative' [-Wunused-variable] + 151 | int totalInformative = 0; + | ^~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c haploQTL.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; + | ^~ In file included from proxy.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++) | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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] @@ -2729,39 +2769,20 @@ 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++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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++) - | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c haplowindow.cpp proxy.cpp:1332:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1332 | for (int l0=0; l0< proxyHaplotypePlusSNP.size(); l0++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1401 | for (int c1 = 0; c1 < collection.size() ; c1++ ) | ~~~^~~~~~~~~~~~~~~~~~~ proxy.cpp:1448:19: warning: unused variable 't1' [-Wunused-variable] 1448 | int t1=0; | ^~ -haploQTL.cpp: In member function 'void HaploPhase::haplotypicQTL(std::map&, 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++) - | ~~^~~~~~~~~~~~~~~~ proxy.cpp:169:10: warning: unused variable 's' [-Wunused-variable] 169 | CSNP * s = SNP[l]; | ^ -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c genogroup.cpp 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] @@ -2788,6 +2809,11 @@ 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++) | ~~^~~~~~~~~~~~~~~~~~~ +In file included from haplowindow.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 'std::vector > HaploPhase::returnHaplotypes(std::vector&)': haplohelper.cpp:297:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 297 | for (int h=0; h::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++) - | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c genogroup.cpp -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c clumpld.cpp -In file included from haplowindow.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 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] @@ -2885,6 +2898,10 @@ 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] + 1666 | for (int z = 0; z < windows[w]->hap1[r].size(); z++) + | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ haplowindow.cpp: In function 'void verboseDisplayWindows2(HaploPhase*, int, bool)': haplowindow.cpp:48:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 48 | for (int z = 0; z < haplo->windows[w]->hap1[r].size(); z++) @@ -2929,20 +2946,25 @@ 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++) - | ~~^~~~~~~~~~~~~~~~~~ -In file included from helper.h:24, - from clumpld.h:21, - from clumpld.cpp:20: +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 nonfounderphasing.cpp:24: +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++) + | ~~^~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c nonfounderphasing.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++) @@ -2961,6 +2983,13 @@ 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] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ 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] @@ -2970,39 +2999,11 @@ 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] - 252 | for (int i=0; i clump_LD::read_assoc_file(std::string)': -clumpld.cpp:92:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 92 | for (int f=0; f >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 128 | for (int i=0; i >::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 || - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ -clumpld.cpp:174:30: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 174 | tokens.size() <= pval_column ) - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ In file included from nonfounderphasing.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] - 201 | for (int f=0; f::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 204 | if ( f < annot_field.size() - 1 ) - | ~~^~~~~~~~~~~~~~~~~~~~~~~~ nonfounderphasing.cpp: In member function 'void HaploPhase::phaseAndScoreNonfounder(int)': nonfounderphasing.cpp:668:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 668 | for (int z=0; z < pp[i].size(); z++) @@ -3010,27 +3011,25 @@ nonfounderphasing.cpp:360:7: warning: unused variable 'pcnt' [-Wunused-variable] 360 | int pcnt=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++) - | ~~^~~~~~~~~~~ nonfounderphasing.cpp: In member function 'void HaploPhase::transmissionCount(int, std::map&)': nonfounderphasing.cpp:715:14: warning: unused variable 'posterior' [-Wunused-variable] 715 | double posterior = ip->second; | ^~~~~~~~~ -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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:1159:22: warning: 'p_cnt' may be used uninitialized [-Wmaybe-uninitialized] + 1159 | ++(*p_cnt); + | ~^~~~~~~ +elf.cpp:1111:13: note: 'p_cnt' was declared here + 1111 | int * p_cnt; + | ^~~~~ +elf.cpp:1153:18: warning: 'p_gcnt' may be used uninitialized [-Wmaybe-uninitialized] + 1153 | ++(*p_gcnt); + | ~^~~~~~~~ +elf.cpp:1112:13: note: 'p_gcnt' was declared here + 1112 | int * p_gcnt; + | ^~~~~~ 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] @@ -3045,6 +3044,15 @@ 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] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c profile.cpp In file included from genoerr.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] @@ -3066,6 +3074,11 @@ genoerr.cpp:315:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 315 | for (int z = 0; z < hap1[i].size(); z++) | ~~^~~~~~~~~~~~~~~~ +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++) + | ~~^~~~~~~~~~~~~~~~~~ genoerr.cpp:328:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 328 | for (int z2=0; z2::size_type' {aka 'long unsigned int'} [-Wsign-compare] 358 | for (int z2=0; z2::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] + 89 | for (int z=0; z::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 97 | for (int z=0; z::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 106 | for (int z=0; z::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 128 | for (int z=0; z::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 132 | for (int z=0; z::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 162 | for (int z=0; z::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 166 | for (int z=0; z >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 252 | for (int i=0; i clump_LD::read_assoc_file(std::string)': +clumpld.cpp:92:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 92 | for (int f=0; f >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 128 | for (int i=0; i >::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 || + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ +clumpld.cpp:174:30: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 174 | tokens.size() <= pval_column ) + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ +clumpld.cpp:201:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 201 | for (int f=0; f::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 204 | if ( f < annot_field.size() - 1 ) + | ~~^~~~~~~~~~~~~~~~~~~~~~~~ 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] @@ -3090,6 +3165,10 @@ 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] + 368 | for (int i = 0; i < sp.size(); i++) + | ~~^~~~~~~~~~~ In file included from impute.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] @@ -3116,95 +3195,88 @@ 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++) | ~~^~~~~~~~~~ -elf.cpp: In member function 'void Plink::elfBaseline()': -elf.cpp:1159:22: warning: 'p_cnt' may be used uninitialized [-Wmaybe-uninitialized] - 1159 | ++(*p_cnt); - | ~^~~~~~~ -elf.cpp:1111:13: note: 'p_cnt' was declared here - 1111 | int * p_cnt; - | ^~~~~ -elf.cpp:1153:18: warning: 'p_gcnt' may be used uninitialized [-Wmaybe-uninitialized] - 1153 | ++(*p_gcnt); - | ~^~~~~~~~ -elf.cpp:1112:13: note: 'p_gcnt' was declared here - 1112 | int * p_gcnt; - | ^~~~~~ +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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c nlist.cpp 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++) | ~~^~~~~~~~~~~~~~~~~~ +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: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] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c whap.cpp 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] - 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] - 89 | for (int z=0; z::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 97 | for (int z=0; z::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 106 | for (int z=0; z::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 128 | for (int z=0; z::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 132 | for (int z=0; z::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 162 | for (int z=0; z::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 166 | for (int z=0; zgetStatistic() : 0; + | ^~~~~~~~~ +profile.cpp:351:14: warning: unused variable 'pvalue' [-Wunused-variable] + 351 | double pvalue = pval[ pval.size()-1 ]; + | ^~~~~~ +profile.cpp:352:14: warning: unused variable 'beta' [-Wunused-variable] + 352 | double beta = b[ b.size()-1 ]; + | ^~~~ +profile.cpp:390:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 390 | for (int s=0; s >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 402 | for (int s=0; s >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 421 | if ( qcnt == qlabel.size() ) + | ~~~~~^~~~~~~~~~~~~~~~ +profile.cpp: In member function 'void Plink::calculateProfile(std::map&, 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; + | ^~ +profile.cpp:525:16: warning: variable 'sawNamedAllele' set but not used [-Wunused-but-set-variable] + 525 | bool sawNamedAllele = false; + | ^~~~~~~~~~~~~~ +profile.cpp:629:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 629 | for (int j=0; j&, std::map >&, std::map&, std::ofstream&)': +profile.cpp:667:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 667 | for (int l=0; l >::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 nlist.h:21, from nlist.cpp:17: @@ -3243,57 +3315,72 @@ 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 ) | ~~^~~~~~~~~~~~~~~ -profile.cpp: In member function 'void Plink::scoreIndividuals()': -profile.cpp:303:12: warning: unused variable 'OLD_assoc_glm_without_main_snp' [-Wunused-variable] - 303 | bool OLD_assoc_glm_without_main_snp = par::assoc_glm_without_main_snp; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -profile.cpp:304:12: warning: unused variable 'OLD_clist' [-Wunused-variable] - 304 | bool OLD_clist = par::clist; - | ^~~~~~~~~ -profile.cpp:350:14: warning: unused variable 'statistic' [-Wunused-variable] - 350 | double statistic = valid ? model->getStatistic() : 0; - | ^~~~~~~~~ -profile.cpp:351:14: warning: unused variable 'pvalue' [-Wunused-variable] - 351 | double pvalue = pval[ pval.size()-1 ]; - | ^~~~~~ -profile.cpp:352:14: warning: unused variable 'beta' [-Wunused-variable] - 352 | double beta = b[ b.size()-1 ]; - | ^~~~ -profile.cpp:390:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 390 | for (int s=0; s >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 402 | for (int s=0; s >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 421 | if ( qcnt == qlabel.size() ) - | ~~~~~^~~~~~~~~~~~~~~~ g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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::calculateProfile(std::map&, 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; - | ^~ -profile.cpp:525:16: warning: variable 'sawNamedAllele' set but not used [-Wunused-but-set-variable] - 525 | bool sawNamedAllele = false; - | ^~~~~~~~~~~~~~ -profile.cpp:629:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 629 | for (int j=0; j&, std::map >&, std::map&, std::ofstream&)': -profile.cpp:667:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 667 | for (int l=0; l >::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 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++) | ~~^~~~~~~~~~~~~~~~~~ +In file included from whap.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] + 334 | for (int g = 0; g < nullModel.group.size(); g++) + | ~~^~~~~~~~~~~~~~~~~~~~~~~~ +whap.cpp:393:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 393 | for (int g=0; g::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 454 | for (int h=0; h::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 456 | for (int h=0; h >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 508 | for ( int g=0; g >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 511 | for ( int g2=0; g2 >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 619 | if ( g < nullModel.group.size() - 1 ) + | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +whap.cpp:670:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 670 | for (int s=0; s < conditioner.size(); s++) + | ~~^~~~~~~~~~~~~~~~~~~~ +whap.cpp:793:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 793 | if ( p1 != coeff1.size() || p0 != coeff0.size() ) + | ~~~^~~~~~~~~~~~~~~~ +whap.cpp:793:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 793 | if ( p1 != coeff1.size() || p0 != coeff0.size() ) + | ~~~^~~~~~~~~~~~~~~~ +whap.cpp: In member function 'void Chap::build(ChapModel&)': +whap.cpp:962:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 962 | for (int h=0; h >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 986 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1015 | for (int i=0; i< tok.size(); i++) + | ~^~~~~~~~~~~~ +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++ ) + | ~~^~~~~~~~~~~~ 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, int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 1118 | if ( mapping.size() != H->ns + H->nh ) + | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ +whap.cpp:1129:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1129 | for (int i=0; i< lst.size(); i++) + | ~^~~~~~~~~~~~ +whap.cpp:1142:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1142 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1162 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1197 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1231 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1290 | for (int g=0; g< model.group.size(); g++) + | ~^~~~~~~~~~~~~~~~~~~~ simul.cpp: In member function 'void Plink::simulateSNPs_QT()': simul.cpp:1146:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1146 | for (int s=0; s::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1326 | for (int c=0; c < P->conditioner.size(); c++) + | ~~^~~~~~~~~~~~~~~~~~~~~~~ +whap.cpp:1334:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1334 | for (int l=0; l&, ChapModel&)': +whap.cpp:1389:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1389 | for (int l=0;l >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 1425 | for (int h=0; h < m.group.size(); h++) + | ~~^~~~~~~~~~~~~~~~ +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() ) + | ~~~~~^~~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c cnv.cpp +proxy.cpp:422:7: warning: 'ref' may be used uninitialized [-Wmaybe-uninitialized] + 422 | int ref; + | ^~~ In file included from helper.h:24, from gvar.cpp:15: options.h: In member function 'void OptionSet::display()': @@ -3354,6 +3483,8 @@ gvar.cpp:556:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::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++) | ~~^~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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); | ^~ @@ -3400,86 +3532,16 @@ cnv.cpp:1103:43: warning: variable 'il' set but not used [-Wunused-but-set-variable] 1103 | map::iterator il = segmentLength.find(t); | ^~ -In file included from whap.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] - 334 | for (int g = 0; g < nullModel.group.size(); g++) - | ~~^~~~~~~~~~~~~~~~~~~~~~~~ -whap.cpp:393:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 393 | for (int g=0; g::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 454 | for (int h=0; h::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 456 | for (int h=0; h >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 508 | for ( int g=0; g >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 511 | for ( int g2=0; g2 >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 619 | if ( g < nullModel.group.size() - 1 ) - | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cnv.cpp:1414:11: warning: unused variable 'nseg' [-Wunused-variable] 1414 | int nseg = 1; | ^~~~ cnv.cpp:412:7: warning: unused variable 'nseg' [-Wunused-variable] 412 | int nseg=0; | ^~~~ -whap.cpp:670:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 670 | for (int s=0; s < conditioner.size(); s++) - | ~~^~~~~~~~~~~~~~~~~~~~ -whap.cpp:793:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 793 | if ( p1 != coeff1.size() || p0 != coeff0.size() ) - | ~~~^~~~~~~~~~~~~~~~ -whap.cpp:793:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 793 | if ( p1 != coeff1.size() || p0 != coeff0.size() ) - | ~~~^~~~~~~~~~~~~~~~ cnv.cpp: In function 'double weighted_count_intersects(std::set&, int, int, int)': cnv.cpp:1749:7: warning: unused variable 'cnt' [-Wunused-variable] 1749 | int cnt = 0; | ^~~ -whap.cpp: In member function 'void Chap::build(ChapModel&)': -whap.cpp:962:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 962 | for (int h=0; h >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 986 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1015 | for (int i=0; i< tok.size(); i++) - | ~^~~~~~~~~~~~ -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++ ) - | ~~^~~~~~~~~~~~ -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 ) - | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -whap.cpp:1129:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1129 | for (int i=0; i< lst.size(); i++) - | ~^~~~~~~~~~~~ -whap.cpp:1142:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1142 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1162 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1197 | for (int i=0; i::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1231 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1290 | for (int g=0; g< model.group.size(); g++) - | ~^~~~~~~~~~~~~~~~~~~~ cnv.cpp: In member function 'void Plink::positionPermuteSegments()': cnv.cpp:2013:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::map::size_type' {aka 'long unsigned int'} [-Wsign-compare] 2013 | for (int c = 0 ; c < scaffold.size(); c++) @@ -3491,12 +3553,6 @@ cnv.cpp:2202:17: warning: variable 'p' set but not used [-Wunused-but-set-variable] 2202 | indivPair p = ic->first; | ^ -whap.cpp:1326:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1326 | for (int c=0; c < P->conditioner.size(); c++) - | ~~^~~~~~~~~~~~~~~~~~~~~~~ -whap.cpp:1334:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1334 | for (int l=0; lgetStatistic() : 0; | ^~~~~~~~~ @@ -3506,26 +3562,6 @@ cnv.cpp:2290:10: warning: unused variable 'beta' [-Wunused-variable] 2290 | double beta = b[ b.size()-1 ]; | ^~~~ -whap.cpp: In member function 'void Chap::setSNPList(std::vector&, ChapModel&)': -whap.cpp:1389:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1389 | for (int l=0;l >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 1425 | for (int h=0; h < m.group.size(); h++) - | ~~^~~~~~~~~~~~~~~~ -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() ) - | ~~~~~^~~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c step.cpp -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c flip.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++) - | ~~^~~~~~~~~~~~~~~~~~ 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] @@ -3553,21 +3589,14 @@ greport.cpp:125:7: warning: unused variable 'cnt' [-Wunused-variable] 125 | int cnt = 0; | ^~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c qualscores.cpp In file included from helper.h: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++) | ~~^~~~~~~~~~~~~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c cnvqt.cpp -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c cfamily.cpp -In file included from helper.h:24, - from cnvqt.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 helper.h:24, from qualscores.cpp:24: options.h: In member function 'void OptionSet::display()': @@ -3578,11 +3607,40 @@ qualscores.cpp:122:12: warning: unused variable 'nfound' [-Wunused-variable] 122 | long int nfound = 0; | ^~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c cfamily.cpp +In file included from helper.h:24, + from cnvqt.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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c setscreen.cpp +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c idhelp.cpp +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c tag.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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c hapglm.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] + 73 | for ( int k = 0 ; k < i->second.size(); k++) + | ~~^~~~~~~~~~~~~~~~~~ +setscreen.cpp: In member function 'void Plink::setAssocSummary()': +setscreen.cpp:80:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 80 | for (int i=0; i >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 110 | if ( tokens.size() != cols ) + | ~~~~~~~~~~~~~~^~~~~~~ +setscreen.cpp:188:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 188 | for ( int j = 0; j < pS->snpset.size(); j++ ) + | ~~^~~~~~~~~~~~~~~~~~~ +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++) + | ~~^~~~~~~~~~~~~~~~~~ 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++) @@ -3603,41 +3661,16 @@ 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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c setscreen.cpp -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c idhelp.cpp -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c lookup2.cpp -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c blox.cpp In file included from idhelp.cpp:18: 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 >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -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] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -setscreen.cpp: In member function 'void Plink::setAssocSummary()': -setscreen.cpp:80:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 80 | for (int i=0; i >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 110 | if ( tokens.size() != cols ) - | ~~~~~~~~~~~~~~^~~~~~~ -setscreen.cpp:188:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 188 | for ( int j = 0; j < pS->snpset.size(); j++ ) - | ~~^~~~~~~~~~~~~~~~~~~ -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++) - | ~~^~~~~~~~~~~~~~~~~~ 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++) @@ -3645,7 +3678,6 @@ idhelp.cpp:63:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 63 | for (int i=0; i >&)': idhelp.cpp:136:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 136 | for (int g=0; gvalues.size(); g++) @@ -3673,6 +3705,12 @@ 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++ ) | ~~^~~~~~~~~~~~~~~~ +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: In member function 'void IDHelper::idHelp()': idhelp.cpp:502:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 502 | if ( ++p == tokens.size() ) @@ -3701,12 +3739,6 @@ idhelp.cpp:678:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 678 | if ( ++p == tokens.size() ) | ~~~~^~~~~~~~~~~~~~~~ -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++) - | ~~^~~~~~~~~~~~~~~~~~ idhelp.cpp:727:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 727 | for ( int f = 0 ; f < files.size() ; f++ ) | ~~^~~~~~~~~~~~~~ @@ -3734,31 +3766,12 @@ 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++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~ -lookup2.cpp: In member function 'void Plink::lookup2()': -lookup2.cpp:163:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 163 | for (int i = 0 ; i < ids.size(); i++) - | ~~^~~~~~~~~~~~ -lookup2.cpp:203:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 203 | for (int i = 0 ; i < ids.size(); i++) - | ~~^~~~~~~~~~~~ -lookup2.cpp:280:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 280 | for (int i = 0 ; i < ids.size(); i++) - | ~~^~~~~~~~~~~~ idhelp.cpp:836:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 836 | for (int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -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++) - | ~~^~~~~~~~~~~~~~~ idhelp.cpp:888:30: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 888 | if ( tokens.size() != file->uniqFieldCount ) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ @@ -3877,12 +3890,6 @@ idhelp.cpp:1801:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1801 | for (int i = 0 ; i < tokens.size() ; i++ ) | ~~^~~~~~~~~~~~~~~ -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: In member function 'void IDHelper::idMatch()': idhelp.cpp:1856:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1856 | for (int s=0; s< par::idhelp_match_string.size(); s+=2) @@ -3935,23 +3942,53 @@ idhelp.cpp:2234:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 2234 | for (int j = 0 ; j < group->values.size(); j++ ) | ~~^~~~~~~~~~~~~~~~~~~~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c lookup2.cpp +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c blox.cpp +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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c zed.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++) + | ~~^~~~~~~~~~~~~~~~~~ +lookup2.cpp: In member function 'void Plink::lookup2()': +lookup2.cpp:163:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 163 | for (int i = 0 ; i < ids.size(); i++) + | ~~^~~~~~~~~~~~ +lookup2.cpp:203:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 203 | for (int i = 0 ; i < ids.size(); i++) + | ~~^~~~~~~~~~~~ +lookup2.cpp:280:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 280 | for (int i = 0 ; i < ids.size(); i++) + | ~~^~~~~~~~~~~~ +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++) + | ~~^~~~~~~~~~~~~~~ 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] 73 | for ( int k = 0 ; k < i->second.size(); k++) | ~~^~~~~~~~~~~~~~~~~~ -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: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] @@ -3986,20 +4023,53 @@ blox.cpp:469:7: warning: unused variable 'total_chroms' [-Wunused-variable] 469 | int total_chroms = knownAA + knownAB + knownBA + knownBB + 2*unknownDH; | ^~~~~~~~~~~~ +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 dosage.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 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++) + | ~~^~~~~~~~~~~~~~~~~~ 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] 252 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 83 | for (int j=1; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] + 149 | for (int i=0; i >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 250 | if ( tokens.size() <= chr_column || + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ dosage.cpp: In member function 'void Plink::processDosageFile()': 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++) | ~~^~~~~~~~~~~~~~~~ +annot.cpp:251:30: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 251 | tokens.size() <= bp_column ) + | ~~~~~~~~~~~~~~^~~~~~~~~~~~ +annot.cpp:260:30: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 260 | if ( tokens.size() <= pval_column ) + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ +annot.cpp:275:30: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 275 | if ( tokens.size() <= snp_column ) + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ +annot.cpp:300:16: warning: unused variable 'include' [-Wunused-variable] + 300 | bool include = false; + | ^~~~~~~ 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'} and '__gnu_cxx::__alloc_traits, int>::value_type' {aka 'int'} [-Wsign-compare] 750 | if ( tok.size() != expected[f] ) +In file included from helper.h:24, + from r.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/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c Rconnection.cpp dosage.cpp:989:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 989 | for (int q=0; q >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 73 | for ( int k = 0 ; k < i->second.size(); k++) - | ~~^~~~~~~~~~~~~~~~~~ -annot.cpp: In member function 'void Plink::annotateFile()': -annot.cpp:83:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 83 | for (int j=1; j >::size_type' {aka 'long unsigned int'} [-Wsign-compare] - 149 | for (int i=0; i >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 250 | if ( tokens.size() <= chr_column || - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ -annot.cpp:251:30: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 251 | tokens.size() <= bp_column ) - | ~~~~~~~~~~~~~~^~~~~~~~~~~~ -annot.cpp:260:30: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 260 | if ( tokens.size() <= pval_column ) - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -annot.cpp:275:30: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 275 | if ( tokens.size() <= snp_column ) - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ -annot.cpp:300:16: warning: unused variable 'include' [-Wunused-variable] - 300 | bool include = false; - | ^~~~~~~ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c metaanal.cpp -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c r.cpp -In file included from Rconnection.h:42, - from r.cpp:29: -Rsrv.h:327:6: warning: #warning using little endian based on information from endian.h [-Wcpp] - 327 | #warning using little endian based on information from endian.h - | ^~~~~~~ -blox.cpp:510:10: warning: 'pA1' may be used uninitialized [-Wmaybe-uninitialized] - 510 | double D = pA1 - (pA*p1); - | ^ -blox.cpp:489:10: note: 'pA1' was declared here - 489 | double pA1,pA2,pB1,pB2; - | ^~~ -blox.cpp:503:10: warning: 'pA2' may be used uninitialized [-Wmaybe-uninitialized] - 503 | double pA = pA1 + pA2; - | ^~ -blox.cpp:489:14: note: 'pA2' was declared here - 489 | double pA1,pA2,pB1,pB2; - | ^~~ -blox.cpp:505:10: warning: 'pB1' may be used uninitialized [-Wmaybe-uninitialized] - 505 | double p1 = pA1 + pB1; - | ^~ -blox.cpp:489:18: note: 'pB1' was declared here - 489 | double pA1,pA2,pB1,pB2; - | ^~~ -blox.cpp:565:51: warning: 'pB2' may be used uninitialized [-Wmaybe-uninitialized] - 565 | double loglike1 = unknownDH * log( pA1*pB2 + pB1*pA2 ); - | ~~~^~~~ -blox.cpp:489:22: note: 'pB2' was declared here - 489 | double pA1,pA2,pB1,pB2; - | ^~~ -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c Rconnection.cpp -g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c zfstream.cpp +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(); + | ^~ In file included from Rconnection.h:42, from Rconnection.cpp:30: Rsrv.h:327:6: warning: #warning using little endian based on information from endian.h [-Wcpp] @@ -4152,12 +4192,30 @@ metaanal.cpp:203:18: warning: statement has no effect [-Wunused-value] 203 | par::run_chr == -1; | ~~~~~~~~~~~~~^~~~~ -In file included from helper.h:24, - from r.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++) - | ~~^~~~~~~~~~~~~~~~~~ +blox.cpp:510:10: warning: 'pA1' may be used uninitialized [-Wmaybe-uninitialized] + 510 | double D = pA1 - (pA*p1); + | ^ +blox.cpp:489:10: note: 'pA1' was declared here + 489 | double pA1,pA2,pB1,pB2; + | ^~~ +blox.cpp:503:10: warning: 'pA2' may be used uninitialized [-Wmaybe-uninitialized] + 503 | double pA = pA1 + pA2; + | ^~ +blox.cpp:489:14: note: 'pA2' was declared here + 489 | double pA1,pA2,pB1,pB2; + | ^~~ +blox.cpp:505:10: warning: 'pB1' may be used uninitialized [-Wmaybe-uninitialized] + 505 | double p1 = pA1 + pB1; + | ^~ +blox.cpp:489:18: note: 'pB1' was declared here + 489 | double pA1,pA2,pB1,pB2; + | ^~~ +blox.cpp:565:51: warning: 'pB2' may be used uninitialized [-Wmaybe-uninitialized] + 565 | double loglike1 = unknownDH * log( pA1*pB2 + pB1*pA2 ); + | ~~~^~~~ +blox.cpp:489:22: note: 'pB2' was declared here + 489 | double pA1,pA2,pB1,pB2; + | ^~~ metaanal.cpp:213:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 213 | for (int i=0; i >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 680 | for (int f=0; f=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(); - | ^~ r.cpp:176:17: warning: 'rc' may be used uninitialized [-Wmaybe-uninitialized] 176 | rc->assign("n", rN ); | ~~~~~~~~~~^~~~~~~~~~ @@ -4235,6 +4270,7 @@ r.cpp:165:13: note: 'rCov' was declared here 165 | Rdouble * rCov; | ^~~~ +g++ -Wall -g -ffile-prefix-map=/build/reproducible-path/plink-1.07+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -DWITH_R_PLUGINS -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -DUNIX -O3 -c zfstream.cpp In file included from /usr/include/c++/13/vector:66, from options.h:18: In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = CSNP*; _Alloc = std::allocator]', @@ -4284,8 +4320,8 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'plink-dbgsym' in '../plink-dbgsym_1.07+dfsg-4_arm64.deb'. dpkg-deb: building package 'plink' in '../plink_1.07+dfsg-4_arm64.deb'. +dpkg-deb: building package 'plink-dbgsym' in '../plink-dbgsym_1.07+dfsg-4_arm64.deb'. dpkg-genbuildinfo --build=binary -O../plink_1.07+dfsg-4_arm64.buildinfo dpkg-genchanges --build=binary -O../plink_1.07+dfsg-4_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -4293,12 +4329,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/59174/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/59174/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/1486401 and its subdirectories -I: Current time: Mon Jun 9 10:03:50 -12 2025 -I: pbuilder-time-stamp: 1749506630 +I: removing directory /srv/workspace/pbuilder/59174 and its subdirectories +I: Current time: Wed May 8 05:43:54 +14 2024 +I: pbuilder-time-stamp: 1715096634