Diff of the two buildlogs: -- --- b1/build.log 2023-06-09 09:56:54.430388290 +0000 +++ b2/build.log 2023-06-09 10:02:08.492649739 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Jul 11 04:18:08 -12 2024 -I: pbuilder-time-stamp: 1720714688 +I: Current time: Fri Jun 9 23:56:57 +14 2023 +I: pbuilder-time-stamp: 1686304617 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -17,7 +17,7 @@ I: copying [./xsane_0.999.orig.tar.gz] I: copying [./xsane_0.999-12.debian.tar.xz] I: Extracting source -gpgv: Signature made Sat Aug 21 10:50:28 2021 -12 +gpgv: Signature made Sun Aug 22 12:50:28 2021 +14 gpgv: using RSA key 9236557B170C87F8821C0AC3C1E0D92E986F7C7E gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./xsane_0.999-12.dsc: no acceptable signature found @@ -55,137 +55,169 @@ dpkg-source: info: applying 0920-add_Name_Comment_pt_BR.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/78991/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/8156/tmp/hooks/D01_modify_environment starting +debug: Running on ionos2-i386. +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 Jun 9 23:57 /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/8156/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/8156/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=16 ' - DISTRIBUTION='bookworm' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="15" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.15(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=7 ' + DIRSTACK=() + DISTRIBUTION=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='8a37d277d9a14248949094f0dcbb667f' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - 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='78991' - PS1='# ' - PS2='> ' + INVOCATION_ID=2c86f6cd5a884738a7380a222c2050e7 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=8156 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.HaU0QtXw/pbuilderrc_qmCs --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.HaU0QtXw/b1 --logfile b1/build.log xsane_0.999-12.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://85.184.249.68: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.HaU0QtXw/pbuilderrc_4gsi --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.HaU0QtXw/b2 --logfile b2/build.log --extrapackages usrmerge xsane_0.999-12.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://78.137.99.97:3128 I: uname -a - Linux ionos16-i386 5.10.0-23-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) x86_64 GNU/Linux + Linux i-capture-the-hostname 5.10.0-23-686-pae #1 SMP Debian 5.10.179-1 (2023-05-12) i686 GNU/Linux I: ls -l /bin total 6036 - -rwxr-xr-x 1 root root 1408088 Apr 23 2023 bash - -rwxr-xr-x 3 root root 38404 Sep 18 2022 bunzip2 - -rwxr-xr-x 3 root root 38404 Sep 18 2022 bzcat - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Sep 18 2022 bzdiff - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4893 Nov 27 2021 bzexe - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Sep 18 2022 bzgrep - -rwxr-xr-x 3 root root 38404 Sep 18 2022 bzip2 - -rwxr-xr-x 1 root root 17892 Sep 18 2022 bzip2recover - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Sep 18 2022 bzmore - -rwxr-xr-x 1 root root 42920 Sep 20 2022 cat - -rwxr-xr-x 1 root root 79816 Sep 20 2022 chgrp - -rwxr-xr-x 1 root root 67496 Sep 20 2022 chmod - -rwxr-xr-x 1 root root 79816 Sep 20 2022 chown - -rwxr-xr-x 1 root root 162024 Sep 20 2022 cp - -rwxr-xr-x 1 root root 136916 Jan 5 2023 dash - -rwxr-xr-x 1 root root 137160 Sep 20 2022 date - -rwxr-xr-x 1 root root 100364 Sep 20 2022 dd - -rwxr-xr-x 1 root root 108940 Sep 20 2022 df - -rwxr-xr-x 1 root root 162152 Sep 20 2022 dir - -rwxr-xr-x 1 root root 87760 Mar 22 2023 dmesg - lrwxrwxrwx 1 root root 8 Dec 19 2022 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Dec 19 2022 domainname -> hostname - -rwxr-xr-x 1 root root 38760 Sep 20 2022 echo - -rwxr-xr-x 1 root root 41 Jan 24 2023 egrep - -rwxr-xr-x 1 root root 34664 Sep 20 2022 false - -rwxr-xr-x 1 root root 41 Jan 24 2023 fgrep - -rwxr-xr-x 1 root root 84272 Mar 22 2023 findmnt - -rwsr-xr-x 1 root root 30240 Mar 22 2023 fusermount - -rwxr-xr-x 1 root root 218680 Jan 24 2023 grep - -rwxr-xr-x 2 root root 2346 Apr 9 2022 gunzip - -rwxr-xr-x 1 root root 6447 Apr 9 2022 gzexe - -rwxr-xr-x 1 root root 100952 Apr 9 2022 gzip - -rwxr-xr-x 1 root root 21916 Dec 19 2022 hostname - -rwxr-xr-x 1 root root 75756 Sep 20 2022 ln - -rwxr-xr-x 1 root root 55600 Mar 22 2023 login - -rwxr-xr-x 1 root root 162152 Sep 20 2022 ls - -rwxr-xr-x 1 root root 214568 Mar 22 2023 lsblk - -rwxr-xr-x 1 root root 96328 Sep 20 2022 mkdir - -rwxr-xr-x 1 root root 84008 Sep 20 2022 mknod - -rwxr-xr-x 1 root root 38792 Sep 20 2022 mktemp - -rwxr-xr-x 1 root root 63016 Mar 22 2023 more - -rwsr-xr-x 1 root root 58912 Mar 22 2023 mount - -rwxr-xr-x 1 root root 13856 Mar 22 2023 mountpoint - -rwxr-xr-x 1 root root 157932 Sep 20 2022 mv - lrwxrwxrwx 1 root root 8 Dec 19 2022 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 2 2023 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 38792 Sep 20 2022 pwd - lrwxrwxrwx 1 root root 4 Apr 23 2023 rbash -> bash - -rwxr-xr-x 1 root root 51080 Sep 20 2022 readlink - -rwxr-xr-x 1 root root 75720 Sep 20 2022 rm - -rwxr-xr-x 1 root root 51080 Sep 20 2022 rmdir - -rwxr-xr-x 1 root root 22308 Nov 2 2022 run-parts - -rwxr-xr-x 1 root root 133224 Jan 5 2023 sed - lrwxrwxrwx 1 root root 4 Jan 5 2023 sh -> dash - -rwxr-xr-x 1 root root 38760 Sep 20 2022 sleep - -rwxr-xr-x 1 root root 87976 Sep 20 2022 stty - -rwsr-xr-x 1 root root 83492 Mar 22 2023 su - -rwxr-xr-x 1 root root 38792 Sep 20 2022 sync - -rwxr-xr-x 1 root root 598456 Apr 6 2023 tar - -rwxr-xr-x 1 root root 13860 Nov 2 2022 tempfile - -rwxr-xr-x 1 root root 120776 Sep 20 2022 touch - -rwxr-xr-x 1 root root 34664 Sep 20 2022 true - -rwxr-xr-x 1 root root 17892 Mar 22 2023 ulockmgr_server - -rwsr-xr-x 1 root root 30236 Mar 22 2023 umount - -rwxr-xr-x 1 root root 38760 Sep 20 2022 uname - -rwxr-xr-x 2 root root 2346 Apr 9 2022 uncompress - -rwxr-xr-x 1 root root 162152 Sep 20 2022 vdir - -rwxr-xr-x 1 root root 71216 Mar 22 2023 wdctl - lrwxrwxrwx 1 root root 8 Dec 19 2022 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Apr 9 2022 zcat - -rwxr-xr-x 1 root root 1678 Apr 9 2022 zcmp - -rwxr-xr-x 1 root root 6460 Apr 9 2022 zdiff - -rwxr-xr-x 1 root root 29 Apr 9 2022 zegrep - -rwxr-xr-x 1 root root 29 Apr 9 2022 zfgrep - -rwxr-xr-x 1 root root 2081 Apr 9 2022 zforce - -rwxr-xr-x 1 root root 8103 Apr 9 2022 zgrep - -rwxr-xr-x 1 root root 2206 Apr 9 2022 zless - -rwxr-xr-x 1 root root 1842 Apr 9 2022 zmore - -rwxr-xr-x 1 root root 4577 Apr 9 2022 znew -I: user script /srv/workspace/pbuilder/78991/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1408088 Apr 24 11:24 bash + -rwxr-xr-x 3 root root 38404 Sep 19 2022 bunzip2 + -rwxr-xr-x 3 root root 38404 Sep 19 2022 bzcat + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Sep 19 2022 bzdiff + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4893 Nov 28 2021 bzexe + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Sep 19 2022 bzgrep + -rwxr-xr-x 3 root root 38404 Sep 19 2022 bzip2 + -rwxr-xr-x 1 root root 17892 Sep 19 2022 bzip2recover + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Sep 19 2022 bzmore + -rwxr-xr-x 1 root root 42920 Sep 21 2022 cat + -rwxr-xr-x 1 root root 79816 Sep 21 2022 chgrp + -rwxr-xr-x 1 root root 67496 Sep 21 2022 chmod + -rwxr-xr-x 1 root root 79816 Sep 21 2022 chown + -rwxr-xr-x 1 root root 162024 Sep 21 2022 cp + -rwxr-xr-x 1 root root 136916 Jan 6 03:20 dash + -rwxr-xr-x 1 root root 137160 Sep 21 2022 date + -rwxr-xr-x 1 root root 100364 Sep 21 2022 dd + -rwxr-xr-x 1 root root 108940 Sep 21 2022 df + -rwxr-xr-x 1 root root 162152 Sep 21 2022 dir + -rwxr-xr-x 1 root root 87760 Mar 24 00:20 dmesg + lrwxrwxrwx 1 root root 8 Dec 20 03:33 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Dec 20 03:33 domainname -> hostname + -rwxr-xr-x 1 root root 38760 Sep 21 2022 echo + -rwxr-xr-x 1 root root 41 Jan 25 04:43 egrep + -rwxr-xr-x 1 root root 34664 Sep 21 2022 false + -rwxr-xr-x 1 root root 41 Jan 25 04:43 fgrep + -rwxr-xr-x 1 root root 84272 Mar 24 00:20 findmnt + -rwsr-xr-x 1 root root 30240 Mar 23 22:38 fusermount + -rwxr-xr-x 1 root root 218680 Jan 25 04:43 grep + -rwxr-xr-x 2 root root 2346 Apr 10 2022 gunzip + -rwxr-xr-x 1 root root 6447 Apr 10 2022 gzexe + -rwxr-xr-x 1 root root 100952 Apr 10 2022 gzip + -rwxr-xr-x 1 root root 21916 Dec 20 03:33 hostname + -rwxr-xr-x 1 root root 75756 Sep 21 2022 ln + -rwxr-xr-x 1 root root 55600 Mar 24 01:43 login + -rwxr-xr-x 1 root root 162152 Sep 21 2022 ls + -rwxr-xr-x 1 root root 214568 Mar 24 00:20 lsblk + -rwxr-xr-x 1 root root 96328 Sep 21 2022 mkdir + -rwxr-xr-x 1 root root 84008 Sep 21 2022 mknod + -rwxr-xr-x 1 root root 38792 Sep 21 2022 mktemp + -rwxr-xr-x 1 root root 63016 Mar 24 00:20 more + -rwsr-xr-x 1 root root 58912 Mar 24 00:20 mount + -rwxr-xr-x 1 root root 13856 Mar 24 00:20 mountpoint + -rwxr-xr-x 1 root root 157932 Sep 21 2022 mv + lrwxrwxrwx 1 root root 8 Dec 20 03:33 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 3 20:25 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 38792 Sep 21 2022 pwd + lrwxrwxrwx 1 root root 4 Apr 24 11:24 rbash -> bash + -rwxr-xr-x 1 root root 51080 Sep 21 2022 readlink + -rwxr-xr-x 1 root root 75720 Sep 21 2022 rm + -rwxr-xr-x 1 root root 51080 Sep 21 2022 rmdir + -rwxr-xr-x 1 root root 22308 Nov 3 2022 run-parts + -rwxr-xr-x 1 root root 133224 Jan 6 09:55 sed + lrwxrwxrwx 1 root root 9 Jun 9 23:57 sh -> /bin/bash + -rwxr-xr-x 1 root root 38760 Sep 21 2022 sleep + -rwxr-xr-x 1 root root 87976 Sep 21 2022 stty + -rwsr-xr-x 1 root root 83492 Mar 24 00:20 su + -rwxr-xr-x 1 root root 38792 Sep 21 2022 sync + -rwxr-xr-x 1 root root 598456 Apr 7 04:25 tar + -rwxr-xr-x 1 root root 13860 Nov 3 2022 tempfile + -rwxr-xr-x 1 root root 120776 Sep 21 2022 touch + -rwxr-xr-x 1 root root 34664 Sep 21 2022 true + -rwxr-xr-x 1 root root 17892 Mar 23 22:38 ulockmgr_server + -rwsr-xr-x 1 root root 30236 Mar 24 00:20 umount + -rwxr-xr-x 1 root root 38760 Sep 21 2022 uname + -rwxr-xr-x 2 root root 2346 Apr 10 2022 uncompress + -rwxr-xr-x 1 root root 162152 Sep 21 2022 vdir + -rwxr-xr-x 1 root root 71216 Mar 24 00:20 wdctl + lrwxrwxrwx 1 root root 8 Dec 20 03:33 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Apr 10 2022 zcat + -rwxr-xr-x 1 root root 1678 Apr 10 2022 zcmp + -rwxr-xr-x 1 root root 6460 Apr 10 2022 zdiff + -rwxr-xr-x 1 root root 29 Apr 10 2022 zegrep + -rwxr-xr-x 1 root root 29 Apr 10 2022 zfgrep + -rwxr-xr-x 1 root root 2081 Apr 10 2022 zforce + -rwxr-xr-x 1 root root 8103 Apr 10 2022 zgrep + -rwxr-xr-x 1 root root 2206 Apr 10 2022 zless + -rwxr-xr-x 1 root root 1842 Apr 10 2022 zmore + -rwxr-xr-x 1 root root 4577 Apr 10 2022 znew +I: user script /srv/workspace/pbuilder/8156/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -649,7 +681,7 @@ Get: 408 http://deb.debian.org/debian bookworm/main i386 libsnmp40 i386 5.9.3+dfsg-2 [2578 kB] Get: 409 http://deb.debian.org/debian bookworm/main i386 libsane1 i386 1.2.1-2 [2629 kB] Get: 410 http://deb.debian.org/debian bookworm/main i386 libsane-dev i386 1.2.1-2 [2585 kB] -Fetched 212 MB in 4s (56.7 MB/s) +Fetched 212 MB in 9s (23.5 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libargon2-1:i386. (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 ... 19599 files and directories currently installed.) @@ -2326,8 +2358,19 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +usrmerge is already the newest version (35). +0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/xsane-0.999/ && 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 > ../xsane_0.999-12_source.changes +I: user script /srv/workspace/pbuilder/8156/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +removed '/etc/unsupported-skip-usrmerge-conversion' +The system has been successfully converted. +I: user script /srv/workspace/pbuilder/8156/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/xsane-0.999/ && 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 > ../xsane_0.999-12_source.changes dpkg-buildpackage: info: source package xsane dpkg-buildpackage: info: source version 0.999-12 dpkg-buildpackage: info: source distribution unstable @@ -2536,11 +2579,11 @@ checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... gcc -E -checking for grep that handles long lines and -e... /bin/grep -checking for egrep... /bin/grep -E +checking for grep that handles long lines and -e... /usr/bin/grep +checking for egrep... /usr/bin/grep -E checking whether gcc needs -traditional... no checking for windows.h... no -checking for egrep... (cached) /bin/grep -E +checking for egrep... (cached) /usr/bin/grep -E checking for windows.h... (cached) no checking for os2.h... no checking for fcntl.h... yes @@ -2679,13 +2722,13 @@ make[1]: Leaving directory '/build/xsane-0.999' dh_auto_build - make -j16 + make -j7 make[1]: Entering directory '/build/xsane-0.999' for subdir in lib src po doc; do \ target=`echo all-recursive | sed s/-recursive//`; \ echo making $target in $subdir; \ (cd $subdir && make $target) \ - || case "-w -j16 --jobserver-auth=3,4" in *k*) fail=yes;; *) exit 1;; esac; \ + || case "-w -j7 --jobserver-auth=3,4" in *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$fail" making all in lib make[2]: Entering directory '/build/xsane-0.999/lib' @@ -2711,79 +2754,6 @@ gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-viewer.c gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-fax-project.c gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-email-project.c -gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-multipage-project.c -gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-rc-io.c -gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-device-preferences.c -gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-batch-scan.c -gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-preferences.c -gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-setup.c -gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-save.c -gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-scan.c -gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-icons.c -gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane.c -In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, - from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, - from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, - from /usr/include/gtk-2.0/gtk/gtkbin.h:35, - from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, - from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, - from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, - from /usr/include/gtk-2.0/gtk/gtk.h:33, - from xsane.h:70, - from xsane-front-gtk.c:25: -/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] - 236 | void gtk_type_init (GTypeDebugFlags debug_flags); - | ^~~~ -In file included from /usr/include/glib-2.0/gobject/gobject.h:26, - from /usr/include/glib-2.0/gobject/gbinding.h:31, - from /usr/include/glib-2.0/glib-object.h:24, - from /usr/include/glib-2.0/gio/gioenums.h:30, - from /usr/include/glib-2.0/gio/giotypes.h:30, - from /usr/include/glib-2.0/gio/gio.h:28, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69: -/usr/include/glib-2.0/gobject/gtype.h:700:1: note: declared here - 700 | { - | ^ -In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, - from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtk.h:126: -/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] - 73 | GTimeVal last_popdown; - | ^~~~~~~~ -In file included from /usr/include/glib-2.0/glib/galloca.h:34, - from /usr/include/glib-2.0/glib.h:32, - from /usr/include/glib-2.0/gobject/gbinding.h:30: -/usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here - 576 | struct _GTimeVal - | ^~~~~~~~~ -In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, - from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, - from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, - from /usr/include/gtk-2.0/gtk/gtkbin.h:35, - from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, - from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, - from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, - from /usr/include/gtk-2.0/gtk/gtk.h:33, - from xsane.h:70, - from xsane-preview.c:75: -/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] - 236 | void gtk_type_init (GTypeDebugFlags debug_flags); - | ^~~~ -In file included from /usr/include/glib-2.0/gobject/gobject.h:26, - from /usr/include/glib-2.0/gobject/gbinding.h:31, - from /usr/include/glib-2.0/glib-object.h:24, - from /usr/include/glib-2.0/gio/gioenums.h:30, - from /usr/include/glib-2.0/gio/giotypes.h:30, - from /usr/include/glib-2.0/gio/gio.h:28, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69: -/usr/include/glib-2.0/gobject/gtype.h:700:1: note: declared here - 700 | { - | ^ In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, @@ -2818,7 +2788,7 @@ from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, - from xsane-rc-io.c:25: + from xsane-email-project.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ @@ -2847,6 +2817,23 @@ /usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here 576 | struct _GTimeVal | ^~~~~~~~~ +In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, + from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtk.h:126: +/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] + 73 | GTimeVal last_popdown; + | ^~~~~~~~ +In file included from /usr/include/glib-2.0/glib/galloca.h:34, + from /usr/include/glib-2.0/glib.h:32, + from /usr/include/glib-2.0/gobject/gbinding.h:30: +/usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here + 576 | struct _GTimeVal + | ^~~~~~~~~ +xsane-email-project.c: In function 'xsane_email_project_display_status': +xsane-email-project.c:496:6: warning: variable 'items_done' set but not used [-Wunused-but-set-variable] + 496 | int items_done; + | ^~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, @@ -2856,7 +2843,7 @@ from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, - from xsane-gamma.c:25: + from xsane-preview.c:75: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ @@ -2872,6 +2859,17 @@ /usr/include/glib-2.0/gobject/gtype.h:700:1: note: declared here 700 | { | ^ +xsane-email-project.c: In function 'xsane_create_email': +xsane-email-project.c:1518:9: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] + 1518 | size_t bytes_written; + | ^~~~~~~~~~~~~ +xsane-email-project.c: In function 'xsane_email_send': +xsane-email-project.c:1937:10: warning: variable 'ipc_file' set but not used [-Wunused-but-set-variable] + 1937 | FILE *ipc_file = NULL; + | ^~~~~~~~ +xsane-email-project.c:1947:5: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] + 1947 | setuid(getuid()); + | ^~~~~~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, @@ -2881,7 +2879,7 @@ from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, - from xsane-email-project.c:25: + from xsane-gamma.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ @@ -2906,7 +2904,7 @@ from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, - from xsane-batch-scan.c:25: + from xsane-front-gtk.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ @@ -2944,7 +2942,7 @@ from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, - from xsane-fax-project.c:25: + from xsane-viewer.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ @@ -2960,6 +2958,10 @@ /usr/include/glib-2.0/gobject/gtype.h:700:1: note: declared here 700 | { | ^ +xsane-back-gtk.c: In function 'xsane_back_gtk_button_update': +xsane-back-gtk.c:1836:32: warning: variable 'opt' set but not used [-Wunused-but-set-variable] + 1836 | const SANE_Option_Descriptor *opt; + | ^~~ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, @@ -2973,10 +2975,6 @@ /usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here 576 | struct _GTimeVal | ^~~~~~~~~ -xsane-front-gtk.c: In function 'xsane_set_all_resolutions': -xsane-front-gtk.c:351:6: warning: variable 'printer_resolution' set but not used [-Wunused-but-set-variable] - 351 | int printer_resolution; - | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, @@ -2986,7 +2984,7 @@ from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, - from xsane-setup.c:25: + from xsane-fax-project.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ @@ -3015,6 +3013,307 @@ /usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here 576 | struct _GTimeVal | ^~~~~~~~~ +In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, + from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtk.h:126: +/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] + 73 | GTimeVal last_popdown; + | ^~~~~~~~ +In file included from /usr/include/glib-2.0/glib/galloca.h:34, + from /usr/include/glib-2.0/glib.h:32, + from /usr/include/glib-2.0/gobject/gbinding.h:30: +/usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here + 576 | struct _GTimeVal + | ^~~~~~~~~ +xsane-preview.c: In function 'preview_create_batch_icon_from_file': +xsane-preview.c:2102:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] + 2102 | size_t bytes_read; + | ^~~~~~~~~~ +xsane-preview.c:2096:6: warning: variable 'c' set but not used [-Wunused-but-set-variable] + 2096 | int c; + | ^ +xsane-preview.c: In function 'preview_restore_image_from_file': +xsane-preview.c:2455:9: warning: variable 'nread' set but not used [-Wunused-but-set-variable] + 2455 | size_t nread; + | ^~~~~ +xsane-gamma.c: In function 'xsane_slider_callback': +xsane-gamma.c:593:18: warning: variable 'motion_event' set but not used [-Wunused-but-set-variable] + 593 | GdkEventMotion *motion_event; + | ^~~~~~~~~~~~ +In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, + from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtk.h:126: +/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] + 73 | GTimeVal last_popdown; + | ^~~~~~~~ +In file included from /usr/include/glib-2.0/glib/galloca.h:34, + from /usr/include/glib-2.0/glib.h:32, + from /usr/include/glib-2.0/gobject/gbinding.h:30: +/usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here + 576 | struct _GTimeVal + | ^~~~~~~~~ +xsane-preview.c: In function 'preview_create_batch_icon_from_file': +xsane-preview.c:2126:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 2126 | fgets(buf, sizeof(buf), in); /* skip newline character. this made a lot of problems in the past, so I skip it this way */ + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +xsane-preview.c: In function 'preview_restore_image_from_file': +xsane-preview.c:2482:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 2482 | fgets(buf, sizeof(buf), in); /* skip newline character. this made a lot of problems in the past, so I skip it this way */ + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +xsane-front-gtk.c: In function 'xsane_set_all_resolutions': +xsane-front-gtk.c:351:6: warning: variable 'printer_resolution' set but not used [-Wunused-but-set-variable] + 351 | int printer_resolution; + | ^~~~~~~~~~~~~~~~~~ +xsane-email-project.c: In function 'xsane_email_project_display_status': +xsane-email-project.c:899:56: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] + 899 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.email_status); /* fill 32 characters status line */ + | ^ +In file included from /usr/include/stdio.h:906, + from xsane.h:47: +In function 'snprintf', + inlined from 'xsane_email_project_update_project_status' at xsane-email-project.c:899:3, + inlined from 'xsane_email_project_display_status' at xsane-email-project.c:559:9: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-viewer.c: In function 'xsane_viewer_scale_set_size_x_value_and_adjustments': +xsane-viewer.c:530:19: warning: variable 'image_height' set but not used [-Wunused-but-set-variable] + 530 | int image_width, image_height; + | ^~~~~~~~~~~~ +xsane-viewer.c: In function 'xsane_viewer_scale_set_size_y_value_and_adjustments': +xsane-viewer.c:554:6: warning: variable 'image_width' set but not used [-Wunused-but-set-variable] + 554 | int image_width, image_height; + | ^~~~~~~~~~~ +xsane-viewer.c: In function 'xsane_viewer_read_image_header': +xsane-viewer.c:2151:6: warning: variable 'pos0' set but not used [-Wunused-but-set-variable] + 2151 | int pos0; + | ^~~~ +xsane-viewer.c: In function 'xsane_viewer_read_image': +xsane-viewer.c:2206:6: warning: variable 'nread' set but not used [-Wunused-but-set-variable] + 2206 | int nread; + | ^~~~~ +xsane-fax-project.c: In function 'xsane_fax_send': +xsane-fax-project.c:1295:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] + 1295 | setuid(getuid()); + | ^~~~~~~~~~~~~~~~ +xsane-fax-project.c: In function 'xsane_fax_show_callback': +xsane-fax-project.c:1069:9: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] + 1069 | setuid(getuid()); + | ^~~~~~~~~~~~~~~~ +xsane-fax-project.c: In function 'xsane_fax_entry_insert_callback': +xsane-fax-project.c:903:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 903 | fgets(buf, sizeof(buf), sourcefile); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +xsane-fax-project.c:944:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 944 | fgets(buf, sizeof(buf), sourcefile); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +xsane-viewer.c: In function 'xsane_viewer_save_callback': +xsane-viewer.c:377:7: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] + 377 | getcwd(pathname, sizeof(pathname)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +xsane-fax-project.c: In function 'xsane_fax_project_update_project_status': +xsane-fax-project.c:455:56: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] + 455 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.fax_status); /* fill 32 characters status line */ + | ^ +In file included from /usr/include/stdio.h:906, + from xsane.h:47: +In function 'snprintf', + inlined from 'xsane_fax_project_update_project_status' at xsane-fax-project.c:455:3: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-email-project.c: In function 'xsane_email_project_save': +xsane-email-project.c:939:58: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] + 939 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.email_status); /* fill 32 characters status line */ + | ^ +In function 'snprintf', + inlined from 'xsane_email_project_save' at xsane-email-project.c:939:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-email-project.c: In function 'xsane_email_project_save': +xsane-email-project.c:928:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] + 928 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, filename); + | ^~ ~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_email_project_save' at xsane-email-project.c:928:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-email-project.c: In function 'xsane_email_send': +xsane-email-project.c:1657:59: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 238 [-Wformat-truncation=] + 1657 | snprintf(buf, sizeof(buf), "

\r\n", content_id); + | ^~ ~~~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_create_email' at xsane-email-project.c:1657:13, + inlined from 'xsane_email_send_process' at xsane-email-project.c:1854:3, + inlined from 'xsane_email_send' at xsane-email-project.c:1950:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 22 and 276 bytes into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-email-project.c: In function 'xsane_email_send': +xsane-email-project.c:1686:55: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 238 [-Wformat-truncation=] + 1686 | snprintf(buf, sizeof(buf), "

\r\n", content_id); + | ^~ ~~~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_create_email' at xsane-email-project.c:1686:9, + inlined from 'xsane_email_send_process' at xsane-email-project.c:1854:3, + inlined from 'xsane_email_send' at xsane-email-project.c:1950:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 22 and 276 bytes into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-fax-project.c: In function 'xsane_fax_send': +xsane-fax-project.c:1107:36: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 252 [-Wformat-truncation=] + 1107 | snprintf(buf, sizeof(buf), "%s - %s", PROGRESS_CONVERTING_DATA, source_filename); + | ^~ +...... + 1266 | xsane_fax_convert_pnm_to_ps(source_filename, fax_filename); + | ~~~~~~~~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_fax_convert_pnm_to_ps' at xsane-fax-project.c:1107:3, + inlined from 'xsane_fax_send' at xsane-fax-project.c:1266:9: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-fax-project.c: In function 'xsane_fax_send': +xsane-fax-project.c:1171:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] + 1171 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, source_filename, strerror(errno)); + | ^~ +...... + 1266 | xsane_fax_convert_pnm_to_ps(source_filename, fax_filename); + | ~~~~~~~~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_fax_convert_pnm_to_ps' at xsane-fax-project.c:1171:5, + inlined from 'xsane_fax_send' at xsane-fax-project.c:1266:9: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-fax-project.c: In function 'xsane_fax_send': +xsane-fax-project.c:1159:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] + 1159 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, fax_filename, strerror(errno)); + | ^~ +...... + 1266 | xsane_fax_convert_pnm_to_ps(source_filename, fax_filename); + | ~~~~~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_fax_convert_pnm_to_ps' at xsane-fax-project.c:1159:7, + inlined from 'xsane_fax_send' at xsane-fax-project.c:1266:9: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-fax-project.c: In function 'xsane_fax_send': +xsane-fax-project.c:1258:43: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] + 1258 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, fax_filename); + | ^~ ~~~~~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_fax_send' at xsane-fax-project.c:1258:9: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-fax-project.c: In function 'xsane_fax_project_save': +xsane-fax-project.c:501:58: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] + 501 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.fax_status); /* fill 32 characters status line */ + | ^ +In function 'snprintf', + inlined from 'xsane_fax_project_save' at xsane-fax-project.c:501:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-fax-project.c: In function 'xsane_fax_project_save': +xsane-fax-project.c:484:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] + 484 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, filename); + | ^~ ~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_fax_project_save' at xsane-fax-project.c:484:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-viewer.c:281:5: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] + 281 | strncpy(outputfilename, preferences.filename, sizeof(outputfilename)); + | ^ +xsane-viewer.c:277:5: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] + 277 | strncpy(outputfilename, v->output_filename, sizeof(outputfilename)); + | ^ +gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-multipage-project.c +xsane-fax-project.c: In function 'xsane_fax_entry_insert_callback': +xsane-fax-project.c:931:45: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 1022 [-Wformat-truncation=] + 931 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, destpath); + | ^~ ~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_fax_entry_insert_callback' at xsane-fax-project.c:931:11: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 1024 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-viewer.c: In function 'xsane_viewer_read_image.isra': +xsane-viewer.c:2312:46: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 251 [-Wformat-truncation=] + 2312 | snprintf(buf, sizeof(buf), "%s\n%s %s: %s\n", ERR_CMS_CONVERSION, ERR_CMS_OPEN_ICM_FILE, CMS_SCANNER_ICM, image_info.icm_profile); + | ^~ ~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:906, + from xsane.h:47: +In function 'snprintf', + inlined from 'xsane_viewer_read_image.isra' at xsane-viewer.c:2312:7: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-rc-io.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, @@ -3024,7 +3323,7 @@ from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, - from xsane-viewer.c:25: + from xsane-multipage-project.c:27: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ @@ -3040,6 +3339,9 @@ /usr/include/glib-2.0/gobject/gtype.h:700:1: note: declared here 700 | { | ^ +gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-device-preferences.c +gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-batch-scan.c +gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-preferences.c In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, @@ -3049,7 +3351,7 @@ from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, - from xsane-preferences.c:25: + from xsane-rc-io.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ @@ -3065,6 +3367,32 @@ /usr/include/glib-2.0/gobject/gtype.h:700:1: note: declared here 700 | { | ^ +In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, + from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtk.h:126: +/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] + 73 | GTimeVal last_popdown; + | ^~~~~~~~ +In file included from /usr/include/glib-2.0/glib/galloca.h:34, + from /usr/include/glib-2.0/glib.h:32, + from /usr/include/glib-2.0/gobject/gbinding.h:30: +/usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here + 576 | struct _GTimeVal + | ^~~~~~~~~ +In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, + from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtk.h:126: +/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] + 73 | GTimeVal last_popdown; + | ^~~~~~~~ +In file included from /usr/include/glib-2.0/glib/galloca.h:34, + from /usr/include/glib-2.0/glib.h:32, + from /usr/include/glib-2.0/gobject/gbinding.h:30: +/usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here + 576 | struct _GTimeVal + | ^~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, @@ -3074,7 +3402,7 @@ from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, - from xsane-multipage-project.c:27: + from xsane-preferences.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ @@ -3090,6 +3418,48 @@ /usr/include/glib-2.0/gobject/gtype.h:700:1: note: declared here 700 | { | ^ +In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, + from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtk.h:126: +/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] + 73 | GTimeVal last_popdown; + | ^~~~~~~~ +In file included from /usr/include/glib-2.0/glib/galloca.h:34, + from /usr/include/glib-2.0/glib.h:32, + from /usr/include/glib-2.0/gobject/gbinding.h:30: +/usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here + 576 | struct _GTimeVal + | ^~~~~~~~~ +gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-setup.c +xsane-multipage-project.c: In function 'xsane_multipage_project_save': +xsane-multipage-project.c:525:58: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] + 525 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.multipage_status); /* fill 32 characters status line */ + | ^ +In file included from /usr/include/stdio.h:906, + from xsane-multipage-project.c:26: +In function 'snprintf', + inlined from 'xsane_multipage_project_save' at xsane-multipage-project.c:525:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-multipage-project.c: In function 'xsane_multipage_project_save': +xsane-multipage-project.c:514:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] + 514 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, filename); + | ^~ ~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_multipage_project_save' at xsane-multipage-project.c:514:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, @@ -3115,17 +3485,6 @@ /usr/include/glib-2.0/gobject/gtype.h:700:1: note: declared here 700 | { | ^ -xsane-back-gtk.c: In function 'xsane_back_gtk_button_update': -xsane-back-gtk.c:1836:32: warning: variable 'opt' set but not used [-Wunused-but-set-variable] - 1836 | const SANE_Option_Descriptor *opt; - | ^~~ -In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, - from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtk.h:126: -/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] - 73 | GTimeVal last_popdown; - | ^~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, @@ -3135,7 +3494,7 @@ from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, - from xsane-scan.c:25: + from xsane-batch-scan.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ @@ -3151,51 +3510,58 @@ /usr/include/glib-2.0/gobject/gtype.h:700:1: note: declared here 700 | { | ^ -In file included from /usr/include/glib-2.0/glib/galloca.h:34, - from /usr/include/glib-2.0/glib.h:32, - from /usr/include/glib-2.0/gobject/gbinding.h:30: -/usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here - 576 | struct _GTimeVal - | ^~~~~~~~~ -In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, - from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtk.h:126: -/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] - 73 | GTimeVal last_popdown; - | ^~~~~~~~ -In file included from /usr/include/glib-2.0/glib/galloca.h:34, - from /usr/include/glib-2.0/glib.h:32, - from /usr/include/glib-2.0/gobject/gbinding.h:30: -/usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here - 576 | struct _GTimeVal - | ^~~~~~~~~ -In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, - from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtk.h:126: -/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] - 73 | GTimeVal last_popdown; - | ^~~~~~~~ -In file included from /usr/include/glib-2.0/glib/galloca.h:34, - from /usr/include/glib-2.0/glib.h:32, - from /usr/include/glib-2.0/gobject/gbinding.h:30: -/usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here - 576 | struct _GTimeVal - | ^~~~~~~~~ -In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, - from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtk.h:126: -/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] - 73 | GTimeVal last_popdown; - | ^~~~~~~~ -In file included from /usr/include/glib-2.0/glib/galloca.h:34, - from /usr/include/glib-2.0/glib.h:32, - from /usr/include/glib-2.0/gobject/gbinding.h:30: -/usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here - 576 | struct _GTimeVal - | ^~~~~~~~~ +xsane-multipage-project.c: In function 'xsane_multipage_save_file': +xsane-multipage-project.c:988:41: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] + 988 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_OPEN_FAILED, multipage_filename); + | ^~ ~~~~~~~~~~~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_multipage_save_file' at xsane-multipage-project.c:988:7: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-multipage-project.c: In function 'xsane_multipage_save_file': +xsane-multipage-project.c:953:41: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] + 953 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, multipage_filename); + | ^~ ~~~~~~~~~~~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_multipage_save_file' at xsane-multipage-project.c:953:7: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-multipage-project.c: In function 'xsane_multipage_save_file': +xsane-multipage-project.c:1072:41: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] + 1072 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, source_filename, strerror(errno)); + | ^~ ~~~~~~~~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_multipage_save_file' at xsane-multipage-project.c:1072:9: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-multipage-project.c: In function 'xsane_multipage_save_file': +xsane-multipage-project.c:938:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] + 938 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, multipage_filename); + | ^~ ~~~~~~~~~~~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_multipage_save_file' at xsane-multipage-project.c:938:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, @@ -3209,17 +3575,6 @@ /usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here 576 | struct _GTimeVal | ^~~~~~~~~ -xsane-preview.c: In function 'preview_create_batch_icon_from_file': -xsane-preview.c:2102:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] - 2102 | size_t bytes_read; - | ^~~~~~~~~~ -xsane-preview.c:2096:6: warning: variable 'c' set but not used [-Wunused-but-set-variable] - 2096 | int c; - | ^ -xsane-gamma.c: In function 'xsane_slider_callback': -xsane-gamma.c:593:18: warning: variable 'motion_event' set but not used [-Wunused-but-set-variable] - 593 | GdkEventMotion *motion_event; - | ^~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, @@ -3233,10 +3588,83 @@ /usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here 576 | struct _GTimeVal | ^~~~~~~~~ -xsane-preview.c: In function 'preview_restore_image_from_file': -xsane-preview.c:2455:9: warning: variable 'nread' set but not used [-Wunused-but-set-variable] - 2455 | size_t nread; - | ^~~~~ +xsane-batch-scan.c: In function 'xsane_batch_scan_save_list': +xsane-batch-scan.c:399:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 399 | if (!xsane_back_gtk_get_filename(windowname, filename, sizeof(filename), filename, NULL, NULL, XSANE_FILE_CHOOSER_ACTION_SAVE, XSANE_GET_FILENAME_SHOW_NOTHING, XSANE_FILE_FILTER_ALL | XSANE_FILE_FILTER_BATCHLIST, XSANE_FILE_FILTER_BATCHLIST)); + | ^~ +xsane-batch-scan.c:400:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 400 | { + | ^ +xsane-batch-scan.c: In function 'xsane_batch_scan_create_list_entry': +xsane-batch-scan.c:683:8: warning: variable 'data' set but not used [-Wunused-but-set-variable] + 683 | char *data; + | ^~~~ +xsane-batch-scan.c: In function 'xsane_batch_scan_add': +xsane-batch-scan.c:722:13: warning: variable 'list_item' set but not used [-Wunused-but-set-variable] + 722 | GtkWidget *list_item; + | ^~~~~~~~~ +gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-save.c +xsane-batch-scan.c: In function 'xsane_batch_scan_update_label': +xsane-batch-scan.c:660:30: warning: '%s' directive output may be truncated writing up to 99 bytes into a region of size between 55 and 253 [-Wformat-truncation=] + 660 | snprintf(buf, sizeof(buf), "%s\n" /* name */ + | ^~~~~~ +...... + 668 | geometry_tl_str, + | ~~~~~~~~~~~~~~~ +xsane-batch-scan.c:662:31: note: format string is defined here + 662 | "%s\n" /* geometry_tl */ + | ^~ +In file included from /usr/include/stdio.h:906, + from xsane.h:47: +In function 'snprintf', + inlined from 'xsane_batch_scan_update_label' at xsane-batch-scan.c:660:3: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 6 and 600 bytes into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-batch-scan.c: In function 'xsane_batch_scan_save_list': +xsane-batch-scan.c:434:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] + 434 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, filename, strerror(errno)); + | ^~ ~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_batch_scan_save_list' at xsane-batch-scan.c:434:7: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-scan.c +In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, + from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, + from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, + from /usr/include/gtk-2.0/gtk/gtkbin.h:35, + from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, + from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, + from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, + from /usr/include/gtk-2.0/gtk/gtk.h:33, + from xsane.h:70, + from xsane-setup.c:25: +/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] + 236 | void gtk_type_init (GTypeDebugFlags debug_flags); + | ^~~~ +In file included from /usr/include/glib-2.0/gobject/gobject.h:26, + from /usr/include/glib-2.0/gobject/gbinding.h:31, + from /usr/include/glib-2.0/glib-object.h:24, + from /usr/include/glib-2.0/gio/gioenums.h:30, + from /usr/include/glib-2.0/gio/giotypes.h:30, + from /usr/include/glib-2.0/gio/gio.h:28, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69: +/usr/include/glib-2.0/gobject/gtype.h:700:1: note: declared here + 700 | { + | ^ +gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-icons.c In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, @@ -3250,6 +3678,24 @@ /usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here 576 | struct _GTimeVal | ^~~~~~~~~ +gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -ffile-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/i386-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane.c +xsane-setup.c: In function 'xsane_enhance_notebook': +xsane-batch-scan.c: In function 'xsane_batch_scan_load_list': +xsane-batch-scan.c:354:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] + 354 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, filename, strerror(errno)); + | ^~ ~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_batch_scan_load_list' at xsane-batch-scan.c:354:7: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-setup.c:3364:22: warning: variable 'status' set but not used [-Wunused-but-set-variable] + 3364 | SANE_Status status; + | ^~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, @@ -3284,7 +3730,7 @@ from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, - from xsane.c:25: + from xsane-scan.c:25: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ @@ -3326,202 +3772,46 @@ /usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here 576 | struct _GTimeVal | ^~~~~~~~~ -xsane-batch-scan.c: In function 'xsane_batch_scan_save_list': -xsane-batch-scan.c:399:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 399 | if (!xsane_back_gtk_get_filename(windowname, filename, sizeof(filename), filename, NULL, NULL, XSANE_FILE_CHOOSER_ACTION_SAVE, XSANE_GET_FILENAME_SHOW_NOTHING, XSANE_FILE_FILTER_ALL | XSANE_FILE_FILTER_BATCHLIST, XSANE_FILE_FILTER_BATCHLIST)); - | ^~ -xsane-batch-scan.c:400:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 400 | { - | ^ -xsane-batch-scan.c: In function 'xsane_batch_scan_create_list_entry': -xsane-batch-scan.c:683:8: warning: variable 'data' set but not used [-Wunused-but-set-variable] - 683 | char *data; - | ^~~~ -xsane-batch-scan.c: In function 'xsane_batch_scan_add': -xsane-batch-scan.c:722:13: warning: variable 'list_item' set but not used [-Wunused-but-set-variable] - 722 | GtkWidget *list_item; - | ^~~~~~~~~ -xsane-preview.c: In function 'preview_create_batch_icon_from_file': -xsane-preview.c:2126:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 2126 | fgets(buf, sizeof(buf), in); /* skip newline character. this made a lot of problems in the past, so I skip it this way */ - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -xsane-viewer.c: In function 'xsane_viewer_scale_set_size_x_value_and_adjustments': -xsane-viewer.c:530:19: warning: variable 'image_height' set but not used [-Wunused-but-set-variable] - 530 | int image_width, image_height; - | ^~~~~~~~~~~~ -xsane-viewer.c: In function 'xsane_viewer_scale_set_size_y_value_and_adjustments': -xsane-viewer.c:554:6: warning: variable 'image_width' set but not used [-Wunused-but-set-variable] - 554 | int image_width, image_height; - | ^~~~~~~~~~~ -xsane-viewer.c: In function 'xsane_viewer_read_image_header': -xsane-viewer.c:2151:6: warning: variable 'pos0' set but not used [-Wunused-but-set-variable] - 2151 | int pos0; - | ^~~~ -xsane-viewer.c: In function 'xsane_viewer_read_image': -xsane-viewer.c:2206:6: warning: variable 'nread' set but not used [-Wunused-but-set-variable] - 2206 | int nread; - | ^~~~~ -In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, - from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtk.h:126: -/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] - 73 | GTimeVal last_popdown; - | ^~~~~~~~ -In file included from /usr/include/glib-2.0/glib/galloca.h:34, - from /usr/include/glib-2.0/glib.h:32, - from /usr/include/glib-2.0/gobject/gbinding.h:30: -/usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here - 576 | struct _GTimeVal - | ^~~~~~~~~ -xsane-email-project.c: In function 'xsane_email_project_display_status': -xsane-email-project.c:496:6: warning: variable 'items_done' set but not used [-Wunused-but-set-variable] - 496 | int items_done; - | ^~~~~~~~~~ -In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, - from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtk.h:126: -/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] - 73 | GTimeVal last_popdown; - | ^~~~~~~~ -In file included from /usr/include/glib-2.0/glib/galloca.h:34, - from /usr/include/glib-2.0/glib.h:32, - from /usr/include/glib-2.0/gobject/gbinding.h:30: -/usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here - 576 | struct _GTimeVal - | ^~~~~~~~~ -xsane-preview.c: In function 'preview_restore_image_from_file': -xsane-preview.c:2482:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 2482 | fgets(buf, sizeof(buf), in); /* skip newline character. this made a lot of problems in the past, so I skip it this way */ - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-scan.c: In function 'xsane_read_image_data': xsane-scan.c:144:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 144 | size_t bytes_read; | ^~~~~~~~~~ -xsane-email-project.c: In function 'xsane_create_email': -xsane-email-project.c:1518:9: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] - 1518 | size_t bytes_written; - | ^~~~~~~~~~~~~ -xsane-email-project.c: In function 'xsane_email_send': -xsane-email-project.c:1937:10: warning: variable 'ipc_file' set but not used [-Wunused-but-set-variable] - 1937 | FILE *ipc_file = NULL; - | ^~~~~~~~ -xsane-viewer.c: In function 'xsane_viewer_save_callback': -xsane-viewer.c:377:7: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] - 377 | getcwd(pathname, sizeof(pathname)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-scan.c: In function 'xsane_scan_done': xsane-scan.c:1330:12: warning: variable 'printer_resolution' set but not used [-Wunused-but-set-variable] 1330 | int printer_resolution; | ^~~~~~~~~~~~~~~~~~ -xsane-email-project.c:1947:5: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 1947 | setuid(getuid()); - | ^~~~~~~~~~~~~~~~ -xsane-fax-project.c: In function 'xsane_fax_send': -xsane-fax-project.c:1295:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 1295 | setuid(getuid()); - | ^~~~~~~~~~~~~~~~ -xsane-fax-project.c: In function 'xsane_fax_show_callback': -xsane-fax-project.c:1069:9: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 1069 | setuid(getuid()); - | ^~~~~~~~~~~~~~~~ -xsane-fax-project.c: In function 'xsane_fax_entry_insert_callback': -xsane-fax-project.c:903:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 903 | fgets(buf, sizeof(buf), sourcefile); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -xsane-fax-project.c:944:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 944 | fgets(buf, sizeof(buf), sourcefile); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-scan.c:1286:11: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 1286 | getcwd(pathname, sizeof(pathname)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -xsane-setup.c: In function 'xsane_enhance_notebook': -xsane-setup.c:3364:22: warning: variable 'status' set but not used [-Wunused-but-set-variable] - 3364 | SANE_Status status; - | ^~~~~~ -xsane-batch-scan.c: In function 'xsane_batch_scan_update_label': -xsane-batch-scan.c:660:30: warning: '%s' directive output may be truncated writing up to 99 bytes into a region of size between 55 and 253 [-Wformat-truncation=] - 660 | snprintf(buf, sizeof(buf), "%s\n" /* name */ - | ^~~~~~ -...... - 668 | geometry_tl_str, - | ~~~~~~~~~~~~~~~ -xsane-batch-scan.c:662:31: note: format string is defined here - 662 | "%s\n" /* geometry_tl */ - | ^~ -In file included from /usr/include/stdio.h:906, - from xsane.h:47: -In function 'snprintf', - inlined from 'xsane_batch_scan_update_label' at xsane-batch-scan.c:660:3: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 6 and 600 bytes into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-fax-project.c: In function 'xsane_fax_project_update_project_status': -xsane-fax-project.c:455:56: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] - 455 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.fax_status); /* fill 32 characters status line */ - | ^ -In file included from /usr/include/stdio.h:906, - from xsane.h:47: -In function 'snprintf', - inlined from 'xsane_fax_project_update_project_status' at xsane-fax-project.c:455:3: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane.c: In function 'xsane_scanmode_menu_callback': -xsane.c:1113:32: warning: variable 'opt' set but not used [-Wunused-but-set-variable] - 1113 | const SANE_Option_Descriptor *opt; - | ^~~ -xsane.c: In function 'xsane_update_xsane_callback': -xsane.c:1493:22: warning: variable 'status' set but not used [-Wunused-but-set-variable] - 1493 | SANE_Status status; - | ^~~~~~ -xsane.c:1533:23: warning: variable 'status' set but not used [-Wunused-but-set-variable] - 1533 | SANE_Status status; - | ^~~~~~ -xsane-scan.c:1110:11: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] - 1110 | strncpy(image_info.icm_profile, xsane.scanner_default_color_icm_profile, sizeof(image_info.icm_profile)); - | ^ -xsane-scan.c:1103:11: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] - 1103 | strncpy(image_info.icm_profile, xsane.scanner_default_gray_icm_profile, sizeof(image_info.icm_profile)); - | ^ -xsane-batch-scan.c: In function 'xsane_batch_scan_save_list': -xsane.c: In function 'xsane_info_dialog': -xsane.c:3284:35: warning: comparison of constant '1' with boolean expression is always false [-Wbool-compare] - 3284 | else if ((!xsane.xsane_channels > 1) && (xsane.scanner_gamma_gray)) /* gray gamma correction by scanner */ - | ^ -xsane.c:3284:35: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] -xsane.c:3284:13: note: add parentheses around left hand side expression to silence this warning - 3284 | else if ((!xsane.xsane_channels > 1) && (xsane.scanner_gamma_gray)) /* gray gamma correction by scanner */ - | ^~~~~~~~~~~~~~~~~~~~~ - | ( ) -xsane-batch-scan.c:434:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] - 434 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, filename, strerror(errno)); - | ^~ ~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_batch_scan_save_list' at xsane-batch-scan.c:434:7: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ +In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, + from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, + from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, + from /usr/include/gtk-2.0/gtk/gtkbin.h:35, + from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, + from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, + from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, + from /usr/include/gtk-2.0/gtk/gtk.h:33, + from xsane.h:70, + from xsane.c:25: +/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] + 236 | void gtk_type_init (GTypeDebugFlags debug_flags); + | ^~~~ +In file included from /usr/include/glib-2.0/gobject/gobject.h:26, + from /usr/include/glib-2.0/gobject/gbinding.h:31, + from /usr/include/glib-2.0/glib-object.h:24, + from /usr/include/glib-2.0/gio/gioenums.h:30, + from /usr/include/glib-2.0/gio/giotypes.h:30, + from /usr/include/glib-2.0/gio/gio.h:28, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69: +/usr/include/glib-2.0/gobject/gtype.h:700:1: note: declared here + 700 | { + | ^ xsane-save.c: In function 'xsane_read_pnm_header': xsane-save.c:428:6: warning: variable 'items_done' set but not used [-Wunused-but-set-variable] 428 | int items_done; | ^~~~~~~~~~ -xsane.c:3157:43: warning: variable 'label' set but not used [-Wunused-but-set-variable] - 3157 | GtkWidget *info_dialog, *vbox, *button, *label, *frame, *framebox, *hbox, *table; - | ^~~~~ xsane-save.c: In function 'xsane_save_scaled_image': xsane-save.c:1050:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 1050 | size_t bytes_read; @@ -3545,91 +3835,17 @@ xsane-save.c:2786:14: warning: variable 'cbuflen' set but not used [-Wunused-but-set-variable] 2786 | static int cbuflen = 0; | ^~~~~~~ -xsane-email-project.c: In function 'xsane_email_project_display_status': -xsane-email-project.c:899:56: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] - 899 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.email_status); /* fill 32 characters status line */ - | ^ -In file included from /usr/include/stdio.h:906, - from xsane.h:47: -In function 'snprintf', - inlined from 'xsane_email_project_update_project_status' at xsane-email-project.c:899:3, - inlined from 'xsane_email_project_display_status' at xsane-email-project.c:559:9: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ +xsane-scan.c:1110:11: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] + 1110 | strncpy(image_info.icm_profile, xsane.scanner_default_color_icm_profile, sizeof(image_info.icm_profile)); + | ^ +xsane-scan.c:1103:11: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] + 1103 | strncpy(image_info.icm_profile, xsane.scanner_default_gray_icm_profile, sizeof(image_info.icm_profile)); + | ^ xsane-save.c: In function 'xsane_save_ps_pdf_gray': xsane-save.c:3104:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 3104 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_ps_pdf_color': -xsane-fax-project.c: In function 'xsane_fax_send': -xsane-fax-project.c:1107:36: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 252 [-Wformat-truncation=] - 1107 | snprintf(buf, sizeof(buf), "%s - %s", PROGRESS_CONVERTING_DATA, source_filename); - | ^~ -...... - 1266 | xsane_fax_convert_pnm_to_ps(source_filename, fax_filename); - | ~~~~~~~~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_fax_convert_pnm_to_ps' at xsane-fax-project.c:1107:3, - inlined from 'xsane_fax_send' at xsane-fax-project.c:1266:9: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-fax-project.c: In function 'xsane_fax_send': -xsane-fax-project.c:1171:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] - 1171 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, source_filename, strerror(errno)); - | ^~ -...... - 1266 | xsane_fax_convert_pnm_to_ps(source_filename, fax_filename); - | ~~~~~~~~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_fax_convert_pnm_to_ps' at xsane-fax-project.c:1171:5, - inlined from 'xsane_fax_send' at xsane-fax-project.c:1266:9: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-fax-project.c: In function 'xsane_fax_send': -xsane-fax-project.c:1159:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] - 1159 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, fax_filename, strerror(errno)); - | ^~ -...... - 1266 | xsane_fax_convert_pnm_to_ps(source_filename, fax_filename); - | ~~~~~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_fax_convert_pnm_to_ps' at xsane-fax-project.c:1159:7, - inlined from 'xsane_fax_send' at xsane-fax-project.c:1266:9: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-fax-project.c: In function 'xsane_fax_send': -xsane-fax-project.c:1258:43: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] - 1258 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, fax_filename); - | ^~ ~~~~~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_fax_send' at xsane-fax-project.c:1258:9: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ xsane-save.c:3355:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 3355 | size_t bytes_read; | ^~~~~~~~~~ @@ -3673,10 +3889,6 @@ 5128 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_pnm_16_ascii_gray': -xsane.c: In function 'xsane_pref_restore': -xsane.c:2004:5: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] - 2004 | chdir(preferences.working_directory); /* set working directory */ - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-save.c:5313:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5313 | size_t bytes_read; | ^~~~~~~~~~ @@ -3689,6 +3901,19 @@ 5530 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_pnm_16_binary_color': +In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, + from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtk.h:126: +/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] + 73 | GTimeVal last_popdown; + | ^~~~~~~~ +In file included from /usr/include/glib-2.0/glib/galloca.h:34, + from /usr/include/glib-2.0/glib.h:32, + from /usr/include/glib-2.0/gobject/gbinding.h:30: +/usr/include/glib-2.0/glib/gtypes.h:576:8: note: declared here + 576 | struct _GTimeVal + | ^~~~~~~~~ xsane-save.c:5628:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5628 | size_t bytes_read; | ^~~~~~~~~~ @@ -3697,20 +3922,9 @@ 5730 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_pnm_8_color': -xsane.c: In function 'xsane_show_doc': xsane-save.c:5826:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5826 | size_t bytes_read; | ^~~~~~~~~~ -xsane.c:3906:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 3906 | setuid(getuid()); - | ^~~~~~~~~~~~~~~~ -xsane.c: In function 'xsane_show_doc_via_nsr': -xsane.c:3743:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 3743 | setuid(getuid()); - | ^~~~~~~~~~~~~~~~ -xsane.c:3785:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 3785 | setuid(getuid()); - | ^~~~~~~~~~~~~~~~ xsane-save.c: In function 'xsane_transfer_to_gimp': xsane-save.c:6916:11: warning: 'gimp_image_parasite_attach' is deprecated: Use 'gimp_image_attach_parasite' instead [-Wdeprecated-declarations] 6916 | gimp_image_parasite_attach(image_ID, parasite); @@ -3814,19 +4028,6 @@ 7423 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_email_mime_ascii': -xsane-batch-scan.c: In function 'xsane_batch_scan_load_list': -xsane-batch-scan.c:354:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] - 354 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, filename, strerror(errno)); - | ^~ ~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_batch_scan_load_list' at xsane-batch-scan.c:354:7: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ xsane-save.c:7434:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7434 | ssize_t bytes_written; | ^~~~~~~~~~~~~ @@ -3866,40 +4067,50 @@ 446 | fgets(buf, sizeof(buf)-1, file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-save.c: In function 'xsane_save_image_as_text': +xsane.c: In function 'xsane_scanmode_menu_callback': +xsane.c:1113:32: warning: variable 'opt' set but not used [-Wunused-but-set-variable] + 1113 | const SANE_Option_Descriptor *opt; + | ^~~ xsane-save.c:6096:5: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] 6096 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ xsane-save.c:6142:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 6142 | fgets(buf, sizeof(buf), ocr_progress); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -xsane-multipage-project.c: In function 'xsane_multipage_project_save': -xsane-multipage-project.c:525:58: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] - 525 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.multipage_status); /* fill 32 characters status line */ - | ^ -In file included from /usr/include/stdio.h:906, - from xsane-multipage-project.c:26: -In function 'snprintf', - inlined from 'xsane_multipage_project_save' at xsane-multipage-project.c:525:5: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-multipage-project.c: In function 'xsane_multipage_project_save': -xsane-multipage-project.c:514:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] - 514 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, filename); - | ^~ ~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_multipage_project_save' at xsane-multipage-project.c:514:5: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ +xsane.c: In function 'xsane_update_xsane_callback': +xsane.c:1493:22: warning: variable 'status' set but not used [-Wunused-but-set-variable] + 1493 | SANE_Status status; + | ^~~~~~ +xsane.c:1533:23: warning: variable 'status' set but not used [-Wunused-but-set-variable] + 1533 | SANE_Status status; + | ^~~~~~ +xsane.c: In function 'xsane_info_dialog': +xsane.c:3284:35: warning: comparison of constant '1' with boolean expression is always false [-Wbool-compare] + 3284 | else if ((!xsane.xsane_channels > 1) && (xsane.scanner_gamma_gray)) /* gray gamma correction by scanner */ + | ^ +xsane.c:3284:35: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] +xsane.c:3284:13: note: add parentheses around left hand side expression to silence this warning + 3284 | else if ((!xsane.xsane_channels > 1) && (xsane.scanner_gamma_gray)) /* gray gamma correction by scanner */ + | ^~~~~~~~~~~~~~~~~~~~~ + | ( ) +xsane.c:3157:43: warning: variable 'label' set but not used [-Wunused-but-set-variable] + 3157 | GtkWidget *info_dialog, *vbox, *button, *label, *frame, *framebox, *hbox, *table; + | ^~~~~ +xsane.c: In function 'xsane_pref_restore': +xsane.c:2004:5: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] + 2004 | chdir(preferences.working_directory); /* set working directory */ + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +xsane.c: In function 'xsane_show_doc': +xsane.c:3906:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] + 3906 | setuid(getuid()); + | ^~~~~~~~~~~~~~~~ +xsane.c: In function 'xsane_show_doc_via_nsr': +xsane.c:3743:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] + 3743 | setuid(getuid()); + | ^~~~~~~~~~~~~~~~ +xsane.c:3785:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] + 3785 | setuid(getuid()); + | ^~~~~~~~~~~~~~~~ xsane-scan.c: In function 'xsane_start_scan': xsane-scan.c:1807:9: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 1807 | strncpy(image_info.icm_profile, xsane.scanner_default_color_icm_profile, sizeof(image_info.icm_profile)); @@ -3907,193 +4118,6 @@ xsane-scan.c:1800:9: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 1800 | strncpy(image_info.icm_profile, xsane.scanner_default_gray_icm_profile, sizeof(image_info.icm_profile)); | ^ -xsane-fax-project.c: In function 'xsane_fax_project_save': -xsane-fax-project.c:501:58: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] - 501 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.fax_status); /* fill 32 characters status line */ - | ^ -In function 'snprintf', - inlined from 'xsane_fax_project_save' at xsane-fax-project.c:501:5: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-fax-project.c: In function 'xsane_fax_project_save': -xsane-fax-project.c:484:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] - 484 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, filename); - | ^~ ~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_fax_project_save' at xsane-fax-project.c:484:5: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-multipage-project.c: In function 'xsane_multipage_save_file': -xsane-multipage-project.c:988:41: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] - 988 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_OPEN_FAILED, multipage_filename); - | ^~ ~~~~~~~~~~~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_multipage_save_file' at xsane-multipage-project.c:988:7: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-multipage-project.c: In function 'xsane_multipage_save_file': -xsane-multipage-project.c:953:41: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] - 953 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, multipage_filename); - | ^~ ~~~~~~~~~~~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_multipage_save_file' at xsane-multipage-project.c:953:7: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-multipage-project.c: In function 'xsane_multipage_save_file': -xsane-multipage-project.c:1072:41: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] - 1072 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, source_filename, strerror(errno)); - | ^~ ~~~~~~~~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_multipage_save_file' at xsane-multipage-project.c:1072:9: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-multipage-project.c: In function 'xsane_multipage_save_file': -xsane-multipage-project.c:938:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] - 938 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, multipage_filename); - | ^~ ~~~~~~~~~~~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_multipage_save_file' at xsane-multipage-project.c:938:5: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-email-project.c: In function 'xsane_email_project_save': -xsane-email-project.c:939:58: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] - 939 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.email_status); /* fill 32 characters status line */ - | ^ -In function 'snprintf', - inlined from 'xsane_email_project_save' at xsane-email-project.c:939:5: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-email-project.c: In function 'xsane_email_project_save': -xsane-email-project.c:928:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] - 928 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, filename); - | ^~ ~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_email_project_save' at xsane-email-project.c:928:5: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-viewer.c:281:5: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] - 281 | strncpy(outputfilename, preferences.filename, sizeof(outputfilename)); - | ^ -xsane-viewer.c:277:5: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] - 277 | strncpy(outputfilename, v->output_filename, sizeof(outputfilename)); - | ^ -xsane-email-project.c: In function 'xsane_email_send': -xsane-email-project.c:1657:59: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 238 [-Wformat-truncation=] - 1657 | snprintf(buf, sizeof(buf), "

\r\n", content_id); - | ^~ ~~~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_create_email' at xsane-email-project.c:1657:13, - inlined from 'xsane_email_send_process' at xsane-email-project.c:1854:3, - inlined from 'xsane_email_send' at xsane-email-project.c:1950:5: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 22 and 276 bytes into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-email-project.c: In function 'xsane_email_send': -xsane-email-project.c:1686:55: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 238 [-Wformat-truncation=] - 1686 | snprintf(buf, sizeof(buf), "

\r\n", content_id); - | ^~ ~~~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_create_email' at xsane-email-project.c:1686:9, - inlined from 'xsane_email_send_process' at xsane-email-project.c:1854:3, - inlined from 'xsane_email_send' at xsane-email-project.c:1950:5: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 22 and 276 bytes into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-fax-project.c: In function 'xsane_fax_entry_insert_callback': -xsane-fax-project.c:931:45: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 1022 [-Wformat-truncation=] - 931 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, destpath); - | ^~ ~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_fax_entry_insert_callback' at xsane-fax-project.c:931:11: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 1024 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-viewer.c: In function 'xsane_viewer_read_image.isra': -xsane-viewer.c:2312:46: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 251 [-Wformat-truncation=] - 2312 | snprintf(buf, sizeof(buf), "%s\n%s %s: %s\n", ERR_CMS_CONVERSION, ERR_CMS_OPEN_ICM_FILE, CMS_SCANNER_ICM, image_info.icm_profile); - | ^~ ~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:906, - from xsane.h:47: -In function 'snprintf', - inlined from 'xsane_viewer_read_image.isra' at xsane-viewer.c:2312:7: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane.c: In function 'xsane_show_doc': -xsane.c:3722:42: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 246 [-Wformat-truncation=] - 3722 | snprintf(buf, sizeof(buf), "openFile(%s, new-window)", name); - | ^~ -...... - 3884 | xsane_show_doc_via_nsr(widget, (void *) path); - | ~~~~ -In file included from /usr/include/stdio.h:906, - from xsane.h:47: -In function 'snprintf', - inlined from 'xsane_show_doc_via_nsr' at xsane.c:3722:5, - inlined from 'xsane_show_doc' at xsane.c:3884:5: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 23 and 4118 bytes into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ xsane-setup.c: In function 'xsane_setup_browse_tmp_path_callback': xsane-setup.c:1531:3: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 1531 | strncpy(tmp_path, old_tmp_path, sizeof(tmp_path)); @@ -4122,6 +4146,40 @@ xsane-setup.c:1551:3: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 1551 | strncpy(scanner_default_color_icm_profile, old_scanner_default_color_icm_profile, sizeof(scanner_default_color_icm_profile)); | ^ +xsane.c: In function 'xsane_show_doc': +xsane.c:3722:42: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 246 [-Wformat-truncation=] + 3722 | snprintf(buf, sizeof(buf), "openFile(%s, new-window)", name); + | ^~ +...... + 3884 | xsane_show_doc_via_nsr(widget, (void *) path); + | ~~~~ +In file included from /usr/include/stdio.h:906, + from xsane.h:47: +In function 'snprintf', + inlined from 'xsane_show_doc_via_nsr' at xsane.c:3722:5, + inlined from 'xsane_show_doc' at xsane.c:3884:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 23 and 4118 bytes into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-save.c: In function 'xsane_create_cms_transform': +xsane-save.c:889:44: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 251 [-Wformat-truncation=] + 889 | snprintf(buf, sizeof(buf), "%s\n%s %s: %s\n", ERR_CMS_CONVERSION, ERR_CMS_OPEN_ICM_FILE, CMS_SCANNER_ICM, image_info->icm_profile); + | ^~ +In file included from /usr/include/stdio.h:906, + from xsane.h:47: +In function 'snprintf', + inlined from 'xsane_create_cms_transform' at xsane-save.c:889:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ xsane.c: In function 'xsane_init': xsane.c:2019:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4094 [-Wformat-truncation=] 2019 | snprintf(buf, sizeof(buf)-2, "%s%c%s", filename, SLASH, OUT_FILENAME); @@ -4178,21 +4236,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -xsane-save.c: In function 'xsane_create_cms_transform': -xsane-save.c:889:44: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 251 [-Wformat-truncation=] - 889 | snprintf(buf, sizeof(buf), "%s\n%s %s: %s\n", ERR_CMS_CONVERSION, ERR_CMS_OPEN_ICM_FILE, CMS_SCANNER_ICM, image_info->icm_profile); - | ^~ -In file included from /usr/include/stdio.h:906, - from xsane.h:47: -In function 'snprintf', - inlined from 'xsane_create_cms_transform' at xsane-save.c:889:5: -/usr/include/i386-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ xsane-save.c: In function 'xsane_save_image_as': xsane-save.c:6252:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] 6245 | input_filename = temporary_filename; @@ -4271,13 +4314,13 @@ dh_prep dh_installdirs dh_auto_install - make -j16 install DESTDIR=/build/xsane-0.999/debian/tmp AM_UPDATE_INFO_DIR=no + make -j7 install DESTDIR=/build/xsane-0.999/debian/tmp AM_UPDATE_INFO_DIR=no make[1]: Entering directory '/build/xsane-0.999' for subdir in lib src po doc; do \ target=`echo install-recursive | sed s/-recursive//`; \ echo making $target in $subdir; \ (cd $subdir && make $target) \ - || case "-w -j16 --jobserver-auth=3,4" in *k*) fail=yes;; *) exit 1;; esac; \ + || case "-w -j7 --jobserver-auth=3,4" in *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$fail" making install in lib make[2]: Entering directory '/build/xsane-0.999/lib' @@ -4574,31 +4617,31 @@ dh_perl dh_link dh_strip_nondeterminism - Normalized debian/xsane-common/usr/share/locale/pl/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/zh_CN/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/pt_BR/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/tr/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/sv/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/ru/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/de/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/zh/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/da/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/fi/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/sl/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/pl/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/fr/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/cs/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/sv/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/sr/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/pa/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/es/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/sk/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/ro/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/pt_BR/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/pt/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/ru/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/hu/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/it/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/cs/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/ca/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/hu/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/ja/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/nl/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/fr/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/de/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/ro/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/sk/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/vi/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/es/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/da/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/fi/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/ca/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/zh_CN/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/pa/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/tr/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/nl/LC_MESSAGES/xsane.mo debian/rules override_dh_compress make[1]: Entering directory '/build/xsane-0.999' dh_compress -X.pnm -X.rc -X.xpm @@ -4614,8 +4657,8 @@ dh_md5sums dh_builddeb dpkg-deb: building package 'xsane-dbgsym' in '../xsane-dbgsym_0.999-12_i386.deb'. -dpkg-deb: building package 'xsane' in '../xsane_0.999-12_i386.deb'. dpkg-deb: building package 'xsane-common' in '../xsane-common_0.999-12_all.deb'. +dpkg-deb: building package 'xsane' in '../xsane_0.999-12_i386.deb'. dpkg-genbuildinfo --build=binary -O../xsane_0.999-12_i386.buildinfo dpkg-genchanges --build=binary -O../xsane_0.999-12_i386.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -4623,12 +4666,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/8156/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/8156/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/78991 and its subdirectories -I: Current time: Thu Jul 11 04:19:51 -12 2024 -I: pbuilder-time-stamp: 1720714791 +I: removing directory /srv/workspace/pbuilder/8156 and its subdirectories +I: Current time: Sat Jun 10 00:02:07 +14 2023 +I: pbuilder-time-stamp: 1686304927