Diff of the two buildlogs: -- --- b1/build.log 2022-01-23 14:35:56.467095267 +0000 +++ b2/build.log 2022-01-23 14:40:28.554692906 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Jan 23 02:34:23 -12 2022 -I: pbuilder-time-stamp: 1642948463 +I: Current time: Sun Feb 26 10:58:59 +14 2023 +I: pbuilder-time-stamp: 1677358739 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -16,8 +16,8 @@ I: copying [./xsane_0.999-10.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.bMdCviSd/trustedkeys.kbx': General error -gpgv: Signature made Sun Mar 14 18:49:48 2021 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.fMcaj3ZU/trustedkeys.kbx': General error +gpgv: Signature made Mon Mar 15 20:49:48 2021 +14 gpgv: using RSA key 65A12DF4FE31AD6BAC4D76AE3355F4D63B5821CC gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./xsane_0.999-10.dsc @@ -55,135 +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/3035717/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/244813/tmp/hooks/D01_modify_environment starting +debug: Running on ionos5-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by 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/244813/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/244813/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=15' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="1" [2]="4" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=16' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='cbf80c102e1d4263ad173a0978198ad2' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='3035717' - PS1='# ' - PS2='> ' + INVOCATION_ID=bd8af4349bff44ee881e770d056e6255 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=244813 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/tmp.moZdseRDjC/pbuilderrc_hkUd --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.moZdseRDjC/b1 --logfile b1/build.log xsane_0.999-10.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://78.137.99.97:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.moZdseRDjC/pbuilderrc_e8be --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.moZdseRDjC/b2 --logfile b2/build.log xsane_0.999-10.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://85.184.249.68:3128 I: uname -a - Linux ionos1-amd64 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 GNU/Linux + Linux i-capture-the-hostname 5.15.0-0.bpo.2-amd64 #1 SMP Debian 5.15.5-2~bpo11+1 (2022-01-02) x86_64 GNU/Linux I: ls -l /bin total 5476 - -rwxr-xr-x 1 root root 1234376 Aug 4 08:25 bash - -rwxr-xr-x 3 root root 38984 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 38984 Jul 20 2020 bzcat - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep - -rwxr-xr-x 3 root root 38984 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 18424 Jul 20 2020 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore - -rwxr-xr-x 1 root root 43936 Sep 23 2020 cat - -rwxr-xr-x 1 root root 72672 Sep 23 2020 chgrp - -rwxr-xr-x 1 root root 64448 Sep 23 2020 chmod - -rwxr-xr-x 1 root root 72672 Sep 23 2020 chown - -rwxr-xr-x 1 root root 151168 Sep 23 2020 cp - -rwxr-xr-x 1 root root 125560 Dec 10 2020 dash - -rwxr-xr-x 1 root root 113664 Sep 23 2020 date - -rwxr-xr-x 1 root root 80968 Sep 23 2020 dd - -rwxr-xr-x 1 root root 93936 Sep 23 2020 df - -rwxr-xr-x 1 root root 147176 Sep 23 2020 dir - -rwxr-xr-x 1 root root 84440 Jul 28 07:09 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 39712 Sep 23 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 39680 Sep 23 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 69032 Jul 28 07:09 findmnt - -rwsr-xr-x 1 root root 34896 Feb 26 2021 fusermount - -rwxr-xr-x 1 root root 203072 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 2021 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 2021 gzexe - -rwxr-xr-x 1 root root 98048 Mar 2 2021 gzip - -rwxr-xr-x 1 root root 22600 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 72840 Sep 23 2020 ln - -rwxr-xr-x 1 root root 56952 Feb 7 2020 login - -rwxr-xr-x 1 root root 147176 Sep 23 2020 ls - -rwxr-xr-x 1 root root 149736 Jul 28 07:09 lsblk - -rwxr-xr-x 1 root root 85184 Sep 23 2020 mkdir - -rwxr-xr-x 1 root root 76896 Sep 23 2020 mknod - -rwxr-xr-x 1 root root 48064 Sep 23 2020 mktemp - -rwxr-xr-x 1 root root 59632 Jul 28 07:09 more - -rwsr-xr-x 1 root root 55528 Jul 28 07:09 mount - -rwxr-xr-x 1 root root 18664 Jul 28 07:09 mountpoint - -rwxr-xr-x 1 root root 147080 Sep 23 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 2021 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 43872 Sep 23 2020 pwd - lrwxrwxrwx 1 root root 4 Aug 4 08:25 rbash -> bash - -rwxr-xr-x 1 root root 52032 Sep 23 2020 readlink - -rwxr-xr-x 1 root root 72704 Sep 23 2020 rm - -rwxr-xr-x 1 root root 52032 Sep 23 2020 rmdir - -rwxr-xr-x 1 root root 27472 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 122224 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Jan 20 21:26 sh -> dash - -rwxr-xr-x 1 root root 43808 Sep 23 2020 sleep - -rwxr-xr-x 1 root root 84928 Sep 23 2020 stty - -rwsr-xr-x 1 root root 71912 Jul 28 07:09 su - -rwxr-xr-x 1 root root 39744 Sep 23 2020 sync - -rwxr-xr-x 1 root root 531928 Feb 16 2021 tar - -rwxr-xr-x 1 root root 14456 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 101408 Sep 23 2020 touch - -rwxr-xr-x 1 root root 39680 Sep 23 2020 true - -rwxr-xr-x 1 root root 14328 Feb 26 2021 ulockmgr_server - -rwsr-xr-x 1 root root 35040 Jul 28 07:09 umount - -rwxr-xr-x 1 root root 39744 Sep 23 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 2021 uncompress - -rwxr-xr-x 1 root root 147176 Sep 23 2020 vdir - -rwxr-xr-x 1 root root 63744 Jul 28 07:09 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 2021 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 2021 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 2021 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 2021 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 2021 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 2021 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 2021 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 2021 zless - -rwxr-xr-x 1 root root 1842 Mar 2 2021 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 2021 znew -I: user script /srv/workspace/pbuilder/3035717/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1234376 Aug 5 2021 bash + -rwxr-xr-x 3 root root 38984 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 38984 Jul 21 2020 bzcat + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Jul 21 2020 bzdiff + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Sep 5 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Jul 21 2020 bzgrep + -rwxr-xr-x 3 root root 38984 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 18424 Jul 21 2020 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 21 2020 bzmore + -rwxr-xr-x 1 root root 43936 Sep 24 2020 cat + -rwxr-xr-x 1 root root 72672 Sep 24 2020 chgrp + -rwxr-xr-x 1 root root 64448 Sep 24 2020 chmod + -rwxr-xr-x 1 root root 72672 Sep 24 2020 chown + -rwxr-xr-x 1 root root 151168 Sep 24 2020 cp + -rwxr-xr-x 1 root root 125560 Dec 11 2020 dash + -rwxr-xr-x 1 root root 113664 Sep 24 2020 date + -rwxr-xr-x 1 root root 80968 Sep 24 2020 dd + -rwxr-xr-x 1 root root 93936 Sep 24 2020 df + -rwxr-xr-x 1 root root 147176 Sep 24 2020 dir + -rwxr-xr-x 1 root root 84440 Jul 29 2021 dmesg + lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname + -rwxr-xr-x 1 root root 39712 Sep 24 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 39680 Sep 24 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 69032 Jul 29 2021 findmnt + -rwsr-xr-x 1 root root 34896 Feb 27 2021 fusermount + -rwxr-xr-x 1 root root 203072 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 2021 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 2021 gzexe + -rwxr-xr-x 1 root root 98048 Mar 3 2021 gzip + -rwxr-xr-x 1 root root 22600 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 72840 Sep 24 2020 ln + -rwxr-xr-x 1 root root 56952 Feb 8 2020 login + -rwxr-xr-x 1 root root 147176 Sep 24 2020 ls + -rwxr-xr-x 1 root root 149736 Jul 29 2021 lsblk + -rwxr-xr-x 1 root root 85184 Sep 24 2020 mkdir + -rwxr-xr-x 1 root root 76896 Sep 24 2020 mknod + -rwxr-xr-x 1 root root 48064 Sep 24 2020 mktemp + -rwxr-xr-x 1 root root 59632 Jul 29 2021 more + -rwsr-xr-x 1 root root 55528 Jul 29 2021 mount + -rwxr-xr-x 1 root root 18664 Jul 29 2021 mountpoint + -rwxr-xr-x 1 root root 147080 Sep 24 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 2021 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 43872 Sep 24 2020 pwd + lrwxrwxrwx 1 root root 4 Aug 5 2021 rbash -> bash + -rwxr-xr-x 1 root root 52032 Sep 24 2020 readlink + -rwxr-xr-x 1 root root 72704 Sep 24 2020 rm + -rwxr-xr-x 1 root root 52032 Sep 24 2020 rmdir + -rwxr-xr-x 1 root root 27472 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 122224 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Feb 26 10:59 sh -> bash + lrwxrwxrwx 1 root root 4 Feb 24 05:47 sh.distrib -> dash + -rwxr-xr-x 1 root root 43808 Sep 24 2020 sleep + -rwxr-xr-x 1 root root 84928 Sep 24 2020 stty + -rwsr-xr-x 1 root root 71912 Jul 29 2021 su + -rwxr-xr-x 1 root root 39744 Sep 24 2020 sync + -rwxr-xr-x 1 root root 531928 Feb 17 2021 tar + -rwxr-xr-x 1 root root 14456 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 101408 Sep 24 2020 touch + -rwxr-xr-x 1 root root 39680 Sep 24 2020 true + -rwxr-xr-x 1 root root 14328 Feb 27 2021 ulockmgr_server + -rwsr-xr-x 1 root root 35040 Jul 29 2021 umount + -rwxr-xr-x 1 root root 39744 Sep 24 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 2021 uncompress + -rwxr-xr-x 1 root root 147176 Sep 24 2020 vdir + -rwxr-xr-x 1 root root 63744 Jul 29 2021 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 2021 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 2021 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 2021 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 2021 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 2021 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 2021 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 2021 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 2021 zless + -rwxr-xr-x 1 root root 1842 Mar 3 2021 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 2021 znew +I: user script /srv/workspace/pbuilder/244813/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -647,7 +681,7 @@ Get: 408 http://deb.debian.org/debian bullseye/main amd64 libsane-dev amd64 1.0.31-4.1 [2374 kB] Get: 409 http://deb.debian.org/debian bullseye/main amd64 libtiffxx5 amd64 4.2.0-1 [128 kB] Get: 410 http://deb.debian.org/debian bullseye/main amd64 libtiff-dev amd64 4.2.0-1 [415 kB] -Fetched 206 MB in 4s (54.8 MB/s) +Fetched 206 MB in 4s (47.4 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libapparmor1:amd64. (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 ... 19655 files and directories currently installed.) @@ -2324,7 +2358,8 @@ Building tag database... -> Finished parsing the build-deps 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-10_source.changes +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-10_source.changes dpkg-buildpackage: info: source package xsane dpkg-buildpackage: info: source version 0.999-10 dpkg-buildpackage: info: source distribution unstable @@ -2579,13 +2614,13 @@ make[1]: Leaving directory '/build/xsane-0.999' dh_auto_build - make -j15 + make -j16 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 -j15 --jobserver-auth=3,4" in *k*) fail=yes;; *) exit 1;; esac; \ + || case "-w -j16 --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' @@ -2619,6 +2654,60 @@ 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 -fdebug-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -I/usr/include/gimp-2.0 -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/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 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 -fdebug-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -I/usr/include/gimp-2.0 -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/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 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 -fdebug-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -I/usr/include/gimp-2.0 -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/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 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 -fdebug-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -I/usr/include/gimp-2.0 -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/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 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 -fdebug-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -I/usr/include/gimp-2.0 -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/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 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-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); + | ^~~~ +In file included from /usr/include/glib-2.0/gobject/gobject.h:24, + from /usr/include/glib-2.0/gobject/gbinding.h:29, + from /usr/include/glib-2.0/glib-object.h:22, + from /usr/include/glib-2.0/gio/gioenums.h:28, + from /usr/include/glib-2.0/gio/giotypes.h:28, + from /usr/include/glib-2.0/gio/gio.h:26, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69, + from xsane-viewer.c:25: +/usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here + 679 | { + | ^ +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-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); + | ^~~~ +In file included from /usr/include/glib-2.0/gobject/gobject.h:24, + from /usr/include/glib-2.0/gobject/gbinding.h:29, + from /usr/include/glib-2.0/glib-object.h:22, + from /usr/include/glib-2.0/gio/gioenums.h:28, + from /usr/include/glib-2.0/gio/giotypes.h:28, + from /usr/include/glib-2.0/gio/gio.h:26, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69, + from xsane-preferences.c:25: +/usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here + 679 | { + | ^ 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, @@ -2654,7 +2743,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-back-gtk.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); | ^~~~ @@ -2667,10 +2756,33 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-back-gtk.c:25: + from xsane-email-project.c:25: /usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here 679 | { | ^ +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, + from xsane.h:70, + from xsane-viewer.c:25: +/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:32, + from /usr/include/glib-2.0/glib.h:30, + from /usr/include/glib-2.0/gobject/gbinding.h:28, + from /usr/include/glib-2.0/glib-object.h:22, + from /usr/include/glib-2.0/gio/gioenums.h:28, + from /usr/include/glib-2.0/gio/giotypes.h:28, + from /usr/include/glib-2.0/gio/gio.h:26, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69, + from xsane-viewer.c:25: +/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here + 547 | 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, @@ -2680,7 +2792,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-device-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); | ^~~~ @@ -2693,7 +2805,7 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-viewer.c:25: + from xsane-device-preferences.c:25: /usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here 679 | { | ^ @@ -2702,6 +2814,29 @@ from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from xsane.h:70, + from xsane-preferences.c:25: +/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:32, + from /usr/include/glib-2.0/glib.h:30, + from /usr/include/glib-2.0/gobject/gbinding.h:28, + from /usr/include/glib-2.0/glib-object.h:22, + from /usr/include/glib-2.0/gio/gioenums.h:28, + from /usr/include/glib-2.0/gio/giotypes.h:28, + from /usr/include/glib-2.0/gio/gio.h:26, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69, + from xsane-preferences.c:25: +/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here + 547 | 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, + from xsane.h:70, from xsane-multipage-project.c:27: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; @@ -2725,7 +2860,7 @@ from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from xsane.h:70, - from xsane-back-gtk.c:25: + from xsane-email-project.c:25: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ @@ -2739,7 +2874,7 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-back-gtk.c:25: + from xsane-email-project.c:25: /usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here 547 | struct _GTimeVal | ^~~~~~~~~ @@ -2748,7 +2883,7 @@ from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from xsane.h:70, - from xsane-viewer.c:25: + from xsane-device-preferences.c:25: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ @@ -2762,7 +2897,7 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-viewer.c:25: + from xsane-device-preferences.c:25: /usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here 547 | struct _GTimeVal | ^~~~~~~~~ @@ -2775,7 +2910,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-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); | ^~~~ @@ -2788,7 +2923,33 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-rc-io.c:25: + from xsane-front-gtk.c:25: +/usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here + 679 | { + | ^ +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-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); + | ^~~~ +In file included from /usr/include/glib-2.0/gobject/gobject.h:24, + from /usr/include/glib-2.0/gobject/gbinding.h:29, + from /usr/include/glib-2.0/glib-object.h:22, + from /usr/include/glib-2.0/gio/gioenums.h:28, + from /usr/include/glib-2.0/gio/giotypes.h:28, + from /usr/include/glib-2.0/gio/gio.h:26, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69, + from xsane-gamma.c:25: /usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here 679 | { | ^ @@ -2819,6 +2980,32 @@ xsane-viewer.c:554:6: warning: variable 'image_width' set but not used [-Wunused-but-set-variable] 554 | int image_width, image_height; | ^~~~~~~~~~~ +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-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); + | ^~~~ +In file included from /usr/include/glib-2.0/gobject/gobject.h:24, + from /usr/include/glib-2.0/gobject/gbinding.h:29, + from /usr/include/glib-2.0/glib-object.h:22, + from /usr/include/glib-2.0/gio/gioenums.h:28, + from /usr/include/glib-2.0/gio/giotypes.h:28, + from /usr/include/glib-2.0/gio/gio.h:26, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69, + from xsane-fax-project.c:25: +/usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here + 679 | { + | ^ xsane-viewer.c: In function 'xsane_viewer_scale_callback': xsane-viewer.c:720:72: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 720 | gtk_object_set_data(GTK_OBJECT(scale_widget), "image_width", (void *) image_info.image_width); @@ -2826,14 +3013,6 @@ xsane-viewer.c:721:72: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 721 | gtk_object_set_data(GTK_OBJECT(scale_widget), "image_height", (void *) image_info.image_height); | ^ -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; - | ^~~ -xsane-back-gtk.c: In function 'xsane_back_gtk_range_display_value_right_callback': -xsane-back-gtk.c:1971:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 1971 | int digits = (int) data; - | ^ xsane-viewer.c:725:78: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 725 | gtk_object_set_data(GTK_OBJECT(adjustment_size_x), "image_width", (void *) image_info.image_width); | ^ @@ -2846,26 +3025,9 @@ xsane-viewer.c:731:78: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 731 | gtk_object_set_data(GTK_OBJECT(adjustment_size_y), "image_height", (void *) image_info.image_height); | ^ -In file included from /usr/include/glib-2.0/gobject/gobject.h:28, - from /usr/include/glib-2.0/gobject/gbinding.h:29, - from /usr/include/glib-2.0/glib-object.h:22, - from /usr/include/glib-2.0/gio/gioenums.h:28, - from /usr/include/glib-2.0/gio/giotypes.h:28, - from /usr/include/glib-2.0/gio/gio.h:26, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69, - from xsane-back-gtk.c:25: -xsane-back-gtk.c: In function 'xsane_back_gtk_range_new': xsane-viewer.c:766:74: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 766 | gtk_object_set_data(GTK_OBJECT(scalex_widget), "image_width", (void *) image_info.image_width); | ^ -xsane-back-gtk.c:2019:118: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 2019 | g_signal_connect(elem->data, "value_changed", (GtkSignalFunc) xsane_back_gtk_range_display_value_right_callback, (void *) digits); - | ^ -/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' - 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) - | ^~~~ xsane-viewer.c:767:74: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 767 | gtk_object_set_data(GTK_OBJECT(scalex_widget), "image_height", (void *) image_info.image_height); | ^ @@ -2887,10 +3049,6 @@ xsane-viewer.c:810:78: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 810 | gtk_object_set_data(GTK_OBJECT(adjustment_size_y), "image_height", (void *) image_info.image_height); | ^ -xsane-viewer.c: In function 'xsane_viewer_zoom_callback': -xsane-viewer.c:1447:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 1447 | val = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); - | ^ 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, @@ -2900,7 +3058,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-back-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); | ^~~~ @@ -2913,10 +3071,40 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-gamma.c:25: + from xsane-back-gtk.c:25: /usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here 679 | { | ^ +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:24, + from /usr/include/glib-2.0/gobject/gbinding.h:29, + from /usr/include/glib-2.0/glib-object.h:22, + from /usr/include/glib-2.0/gio/gioenums.h:28, + from /usr/include/glib-2.0/gio/giotypes.h:28, + from /usr/include/glib-2.0/gio/gio.h:26, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69, + from xsane-preview.c:75: +/usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here + 679 | { + | ^ +xsane-viewer.c: In function 'xsane_viewer_zoom_callback': +xsane-viewer.c:1447:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 1447 | val = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); + | ^ xsane-viewer.c: In function 'xsane_viewer_set_cms_proofing_callback': xsane-viewer.c:1724:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1724 | val = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); @@ -2942,7 +3130,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-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); | ^~~~ @@ -2955,33 +3143,10 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-scan.c:25: + from xsane-rc-io.c:25: /usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here 679 | { | ^ -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, - from xsane.h:70, - from xsane-rc-io.c:25: -/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:32, - from /usr/include/glib-2.0/glib.h:30, - from /usr/include/glib-2.0/gobject/gbinding.h:28, - from /usr/include/glib-2.0/glib-object.h:22, - from /usr/include/glib-2.0/gio/gioenums.h:28, - from /usr/include/glib-2.0/gio/giotypes.h:28, - from /usr/include/glib-2.0/gio/gio.h:26, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69, - from xsane-rc-io.c:25: -/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here - 547 | 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, @@ -2991,24 +3156,10 @@ 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/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-email-project.c:25: + from xsane-save.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); | ^~~~ -xsane-viewer.c: In function 'xsane_viewer_read_image_header': In file included from /usr/include/glib-2.0/gobject/gobject.h:24, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:22, @@ -3018,13 +3169,15 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-email-project.c:25: + from xsane-save.c:25: /usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here 679 | { | ^ +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': 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, @@ -3034,7 +3187,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.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); | ^~~~ @@ -3047,24 +3200,10 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-front-gtk.c:25: -/usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here - 679 | { - | ^ -In file included from /usr/include/glib-2.0/gobject/gobject.h:24, - from /usr/include/glib-2.0/gobject/gbinding.h:29, - from /usr/include/glib-2.0/glib-object.h:22, - from /usr/include/glib-2.0/gio/gioenums.h:28, - from /usr/include/glib-2.0/gio/giotypes.h:28, - from /usr/include/glib-2.0/gio/gio.h:26, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69, - from xsane-fax-project.c:25: + from xsane.c:25: /usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here 679 | { | ^ -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; | ^~~~~ @@ -3072,21 +3211,18 @@ xsane-viewer.c:3069:66: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3069 | gtk_object_set_data(GTK_OBJECT(zoom_menu_item), "Selection", (void *) xsane_viewer_zoom[i]); | ^ -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, +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, from xsane.h:70, - from xsane-device-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); - | ^~~~ -In file included from /usr/include/glib-2.0/gobject/gobject.h:24, - from /usr/include/glib-2.0/gobject/gbinding.h:29, + from xsane-front-gtk.c:25: +/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:32, + from /usr/include/glib-2.0/glib.h:30, + from /usr/include/glib-2.0/gobject/gbinding.h:28, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, @@ -3094,10 +3230,18 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-device-preferences.c:25: -/usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here - 679 | { - | ^ + from xsane-front-gtk.c:25: +/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here + 547 | 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; + | ^~~~~~~~~~ +xsane-email-project.c: In function 'xsane_email_entry_rename_button_callback': +xsane-email-project.c:1274:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 1274 | xsane_email_entry_rename = (int) data; + | ^ 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, @@ -3107,7 +3251,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-preview.c:75: + 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); | ^~~~ @@ -3120,14 +3264,22 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-preview.c:75: + from xsane-scan.c:25: /usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here 679 | { | ^ +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-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-email-project.c:1937:10: warning: variable 'ipc_file' set but not used [-Wunused-but-set-variable] + 1937 | FILE *ipc_file = NULL; + | ^~~~~~~~ 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, @@ -3137,33 +3289,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: -/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:24, - from /usr/include/glib-2.0/gobject/gbinding.h:29, - from /usr/include/glib-2.0/glib-object.h:22, - from /usr/include/glib-2.0/gio/gioenums.h:28, - from /usr/include/glib-2.0/gio/giotypes.h:28, - from /usr/include/glib-2.0/gio/gio.h:26, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69, - from xsane-batch-scan.c:25: -/usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here - 679 | { - | ^ -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-preferences.c:25: + 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); | ^~~~ @@ -3176,10 +3302,13 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-preferences.c:25: + from xsane-setup.c:25: /usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here 679 | { | ^ +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, @@ -3189,7 +3318,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-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); | ^~~~ @@ -3202,7 +3331,7 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-setup.c:25: + from xsane-batch-scan.c:25: /usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here 679 | { | ^ @@ -3211,7 +3340,7 @@ from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from xsane.h:70, - from xsane-scan.c:25: + from xsane-gamma.c:25: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ @@ -3225,7 +3354,7 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-scan.c:25: + from xsane-gamma.c:25: /usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here 547 | struct _GTimeVal | ^~~~~~~~~ @@ -3234,7 +3363,7 @@ from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from xsane.h:70, - from xsane-gamma.c:25: + from xsane-fax-project.c:25: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ @@ -3248,7 +3377,7 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-gamma.c:25: + from xsane-fax-project.c:25: /usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here 547 | struct _GTimeVal | ^~~~~~~~~ @@ -3257,7 +3386,7 @@ from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from xsane.h:70, - from xsane-front-gtk.c:25: + from xsane-back-gtk.c:25: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ @@ -3271,42 +3400,16 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-front-gtk.c:25: + from xsane-back-gtk.c:25: /usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here 547 | 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-save.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:24, - from /usr/include/glib-2.0/gobject/gbinding.h:29, - from /usr/include/glib-2.0/glib-object.h:22, - from /usr/include/glib-2.0/gio/gioenums.h:28, - from /usr/include/glib-2.0/gio/giotypes.h:28, - from /usr/include/glib-2.0/gio/gio.h:26, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69, - from xsane-save.c:25: -/usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here - 679 | { - | ^ 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, from xsane.h:70, - from xsane-email-project.c:25: + from xsane-preview.c:75: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ @@ -3320,7 +3423,7 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-email-project.c:25: + from xsane-preview.c:75: /usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here 547 | struct _GTimeVal | ^~~~~~~~~ @@ -3329,16 +3432,7 @@ from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from xsane.h:70, - from xsane-device-preferences.c:25: -/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/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, - from xsane.h:70, - from xsane-fax-project.c:25: + from xsane.c:25: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ @@ -3352,21 +3446,7 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-fax-project.c:25: -/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here - 547 | struct _GTimeVal - | ^~~~~~~~~ -In file included from /usr/include/glib-2.0/glib/galloca.h:32, - from /usr/include/glib-2.0/glib.h:30, - from /usr/include/glib-2.0/gobject/gbinding.h:28, - from /usr/include/glib-2.0/glib-object.h:22, - from /usr/include/glib-2.0/gio/gioenums.h:28, - from /usr/include/glib-2.0/gio/giotypes.h:28, - from /usr/include/glib-2.0/gio/gio.h:26, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69, - from xsane-device-preferences.c:25: + from xsane.c:25: /usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here 547 | struct _GTimeVal | ^~~~~~~~~ @@ -3375,7 +3455,7 @@ from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from xsane.h:70, - from xsane-preview.c:75: + from xsane-save.c:25: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ @@ -3389,37 +3469,16 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-preview.c:75: + from xsane-save.c:25: /usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here 547 | struct _GTimeVal | ^~~~~~~~~ -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:867, - from xsane-multipage-project.c:26: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 file included from /usr/include/stdio.h:867, - from xsane-multipage-project.c:26: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __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, from /usr/include/gtk-2.0/gtk/gtk.h:126, from xsane.h:70, - from xsane-batch-scan.c:25: + from xsane-rc-io.c:25: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ @@ -3433,7 +3492,7 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-batch-scan.c:25: + from xsane-rc-io.c:25: /usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here 547 | struct _GTimeVal | ^~~~~~~~~ @@ -3442,7 +3501,7 @@ from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from xsane.h:70, - from xsane-preferences.c:25: + from xsane-scan.c:25: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ @@ -3456,57 +3515,16 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-preferences.c:25: + from xsane-scan.c:25: /usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here 547 | 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 file included from /usr/include/stdio.h:867, - from xsane-multipage-project.c:26: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 file included from /usr/include/stdio.h:867, - from xsane-multipage-project.c:26: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 file included from /usr/include/stdio.h:867, - from xsane-multipage-project.c:26: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 file included from /usr/include/stdio.h:867, - from xsane-multipage-project.c:26: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __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, from /usr/include/gtk-2.0/gtk/gtk.h:126, from xsane.h:70, - from xsane-setup.c:25: + from xsane-batch-scan.c:25: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ @@ -3520,7 +3538,7 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-setup.c:25: + from xsane-batch-scan.c:25: /usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here 547 | struct _GTimeVal | ^~~~~~~~~ @@ -3529,7 +3547,7 @@ from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from xsane.h:70, - from xsane-save.c:25: + from xsane-setup.c:25: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ @@ -3543,46 +3561,15 @@ from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from xsane.h:69, - from xsane-save.c:25: + from xsane-setup.c:25: /usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here 547 | struct _GTimeVal | ^~~~~~~~~ -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; - | ^~~~~~~~~~~~ -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-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-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-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-preview.c: In function 'preview_create_preset_area_menu': -xsane-preview.c:4115:68: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 4115 | gtk_object_set_data(GTK_OBJECT(preset_area_item), "Selection", (void *) i); - | ^ xsane-front-gtk.c: In function 'xsane_range_display_value_right_callback': -xsane-preview.c: In function 'preview_new': -xsane-preview.c:4471:65: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 4471 | gtk_object_set_data(GTK_OBJECT(rotation_item), "Selection", (void *) rot); - | ^ xsane-front-gtk.c:1119:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1119 | int digits = (int) data; | ^ @@ -3607,75 +3594,17 @@ xsane-fax-project.c:757:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 757 | xsane_fax_entry_rename = (int) data; | ^ -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-email-project.c: In function 'xsane_email_project_display_status': -xsane-preview.c: In function 'preview_preset_area_rename_callback': -xsane-email-project.c:496:6: warning: variable 'items_done' set but not used [-Wunused-but-set-variable] - 496 | int items_done; - | ^~~~~~~~~~ -xsane-preview.c:5714:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 5714 | selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection"); - | ^ xsane-front-gtk.c: In function 'xsane_range_new_with_pixmap': -xsane-preview.c:5721:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 5721 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection"); - | ^ -xsane-preview.c: In function 'preview_preset_area_add_callback': -xsane-preview.c:5764:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 5764 | selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection"); - | ^ -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-preview.c:5769:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 5769 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection"); - | ^ -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-preview.c: In function 'preview_preset_area_delete_callback': xsane-front-gtk.c:1249:104: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1249 | g_signal_connect(*data, "value_changed", (GtkSignalFunc) xsane_range_display_value_right_callback, (void *) digits); | ^ /usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ -xsane-preview.c:5815:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 5815 | selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection"); - | ^ xsane-front-gtk.c: In function 'xsane_filename_counter_step_callback': xsane-front-gtk.c:1393:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1393 | preferences.filename_counter_step = (int) data; | ^ -xsane-preview.c:5835:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 5835 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection"); - | ^ -xsane-preview.c: In function 'preview_preset_area_move_up_callback': -xsane-preview.c:5864:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 5864 | selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection"); - | ^ -xsane-preview.c:5880:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 5880 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection"); - | ^ -xsane-preview.c: In function 'preview_preset_area_move_down_callback': -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-preview.c:5909:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 5909 | selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection"); - | ^ -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-batch-scan.c: In function 'xsane_batch_scan_rotate_mirror': -xsane-batch-scan.c:799:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 799 | int rotate_info = (int) data; - | ^ In file included from /usr/include/glib-2.0/gobject/gobject.h:28, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:22, @@ -3693,26 +3622,11 @@ /usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ -xsane-preview.c:5926:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 5926 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection"); - | ^ -xsane-preview.c: In function 'preview_preset_area_context_menu_callback': -xsane-preview.c:5957:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 5957 | selection = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); - | ^ +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; + | ^~~~~~~~~~~~ xsane-front-gtk.c: In function 'xsane_eula_delete_event': -xsane-preview.c: In function 'preview_preset_area_callback': -xsane-batch-scan.c: In function 'xsane_batch_scan_rename_button_callback': -xsane-batch-scan.c:837:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 837 | xsane_batch_scan_rename = (int) data; - | ^ -xsane-preview.c:6034:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 6034 | selection = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); - | ^ -xsane-preview.c: In function 'preview_rotation_callback': -xsane-preview.c:6058:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 6058 | rot = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); - | ^ xsane-front-gtk.c:1905:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1905 | eula_accept_flag = (int) data; | ^ @@ -3720,15 +3634,30 @@ xsane-front-gtk.c:1917:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1917 | eula_accept_flag = (int) data; | ^ +xsane-front-gtk.c: In function 'xsane_front_gtk_getname_button_callback': +xsane-front-gtk.c:2424:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 2424 | xsane_front_gtk_getname_button = (int) data; + | ^ 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-email-project.c: In function 'xsane_email_entry_rename_button_callback': +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; + | ^~~ +xsane.c: In function 'xsane_paper_orientation_callback': 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.c:581:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 581 | int pos = (int) data; + | ^ +xsane.c: In function 'xsane_printer_callback': +xsane.c:597:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 597 | preferences.printernr = (int) data; + | ^ 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); @@ -3736,29 +3665,267 @@ 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-email-project.c:1274:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 1274 | xsane_email_entry_rename = (int) data; +xsane-back-gtk.c: In function 'xsane_back_gtk_range_display_value_right_callback': +xsane-back-gtk.c:1971:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 1971 | int digits = (int) data; + | ^ +In file included from /usr/include/glib-2.0/gobject/gobject.h:28, + from /usr/include/glib-2.0/gobject/gbinding.h:29, + from /usr/include/glib-2.0/glib-object.h:22, + from /usr/include/glib-2.0/gio/gioenums.h:28, + from /usr/include/glib-2.0/gio/giotypes.h:28, + from /usr/include/glib-2.0/gio/gio.h:26, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69, + from xsane-back-gtk.c:25: +xsane-back-gtk.c: In function 'xsane_back_gtk_range_new': +xsane-back-gtk.c:2019:118: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 2019 | g_signal_connect(elem->data, "value_changed", (GtkSignalFunc) xsane_back_gtk_range_display_value_right_callback, (void *) digits); + | ^ +/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' + 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) + | ^~~~ +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_cms_function_menu_callback': +xsane.c:1161:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 1161 | preferences.cms_function = (int) data; | ^ -xsane-front-gtk.c: In function 'xsane_front_gtk_getname_button_callback': -xsane-front-gtk.c:2424:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 2424 | xsane_front_gtk_getname_button = (int) data; - | ^ -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-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:867, + from xsane-multipage-project.c:26: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 file included from /usr/include/stdio.h:867, + from xsane-multipage-project.c:26: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/glib-2.0/gobject/gobject.h:28, + from /usr/include/glib-2.0/gobject/gbinding.h:29, + from /usr/include/glib-2.0/glib-object.h:22, + from /usr/include/glib-2.0/gio/gioenums.h:28, + from /usr/include/glib-2.0/gio/giotypes.h:28, + from /usr/include/glib-2.0/gio/gio.h:26, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69, + from xsane.c:25: +xsane.c: In function 'xsane_update_xsane_callback': +xsane.c:1398:122: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 1398 | g_signal_connect(GTK_OBJECT(paper_orientation_item), "activate", (GtkSignalFunc) xsane_paper_orientation_callback, (void *) i); + | ^ +/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' + 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) + | ^~~~ +xsane.c:1432:108: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 1432 | g_signal_connect(GTK_OBJECT(xsane_printer_item), "activate", (GtkSignalFunc) xsane_printer_callback, (void *) i); + | ^ +/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' + 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) + | ^~~~ +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; + | ^~~~~~ +In file included from /usr/include/glib-2.0/gobject/gobject.h:28, + from /usr/include/glib-2.0/gobject/gbinding.h:29, + from /usr/include/glib-2.0/glib-object.h:22, + from /usr/include/glib-2.0/gio/gioenums.h:28, + from /usr/include/glib-2.0/gio/giotypes.h:28, + from /usr/include/glib-2.0/gio/gio.h:26, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69, + from xsane.c:25: +xsane.c:1580:129: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 1580 | g_signal_connect(GTK_OBJECT(xsane_medium_item), "button_press_event", (GtkSignalFunc) xsane_medium_context_menu_callback, (void *) i); + | ^ +/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' + 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) + | ^~~~ +xsane.c:1581:110: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 1581 | g_signal_connect(GTK_OBJECT(xsane_medium_item), "activate", (GtkSignalFunc) xsane_set_medium_callback, (void *) i); + | ^ +/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' + 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) + | ^~~~ +xsane.c:1582:71: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 1582 | gtk_object_set_data(GTK_OBJECT(xsane_medium_item), "Selection", (void *) i); + | ^ +xsane.c: In function 'xsane_medium_move_up_callback': +xsane.c:2592:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 2592 | selection = (int) gtk_object_get_data(GTK_OBJECT(medium_widget), "Selection"); + | ^ +xsane.c: In function 'xsane_medium_move_down_callback': +xsane.c:2627:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 2627 | selection = (int) gtk_object_get_data(GTK_OBJECT(medium_widget), "Selection"); + | ^ +xsane.c: In function 'xsane_medium_rename_callback': +xsane.c:2666:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 2666 | selection = (int) gtk_object_get_data(GTK_OBJECT(medium_widget), "Selection"); + | ^ +xsane.c:2674:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 2674 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_medium_menu))), "Selection"); + | ^ +xsane.c: In function 'xsane_medium_add_callback': +xsane.c:2709:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 2709 | selection = 1 + (int) gtk_object_get_data(GTK_OBJECT(medium_widget), "Selection"); + | ^ +xsane.c:2715:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 2715 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_medium_menu))), "Selection"); + | ^ +xsane.c: In function 'xsane_medium_delete_callback': +xsane.c:2790:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 2790 | selection = (int) gtk_object_get_data(GTK_OBJECT(medium_widget), "Selection"); + | ^ +xsane.c: In function 'xsane_medium_context_menu_callback': +xsane.c:2846:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 2846 | selection = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); + | ^ +xsane.c: In function 'xsane_set_medium_callback': +xsane.c:2917:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 2917 | int medium_nr = (int) data; + | ^ +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-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 file included from /usr/include/stdio.h:867, + from xsane-multipage-project.c:26: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 file included from /usr/include/stdio.h:867, + from xsane-multipage-project.c:26: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 file included from /usr/include/stdio.h:867, + from xsane-multipage-project.c:26: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 file included from /usr/include/stdio.h:867, + from xsane-multipage-project.c:26: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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-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:2102:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] + 2102 | size_t bytes_read; + | ^~~~~~~~~~ +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:867, + from xsane.h:47, + from xsane-fax-project.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +xsane-preview.c:2096:6: warning: variable 'c' set but not used [-Wunused-but-set-variable] + 2096 | int c; + | ^ +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-batch-scan.c: In function 'xsane_batch_scan_rotate_mirror': +xsane-batch-scan.c:799:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 799 | int rotate_info = (int) data; + | ^ +xsane-batch-scan.c: In function 'xsane_batch_scan_rename_button_callback': +xsane-batch-scan.c:837:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 837 | xsane_batch_scan_rename = (int) data; + | ^ +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-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:867, + from xsane.h:47, + from xsane-email-project.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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: In function 'xsane_select_device_by_key_callback': +xsane.c:5370:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 5370 | xsane.selected_dev = (int) data; + | ^ +xsane.c: In function 'xsane_select_device_by_mouse_callback': +xsane.c:5379:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 5379 | xsane.selected_dev = (int) data; + | ^ 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; @@ -3767,54 +3934,145 @@ xsane-save.c:1349:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 1349 | size_t bytes_read; | ^~~~~~~~~~ -xsane-email-project.c:1947:5: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 1947 | setuid(getuid()); - | ^~~~~~~~~~~~~~~~ +xsane-preview.c: In function 'preview_create_preset_area_menu': +xsane-preview.c:4115:68: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 4115 | gtk_object_set_data(GTK_OBJECT(preset_area_item), "Selection", (void *) i); + | ^ +xsane-preview.c: In function 'preview_new': +xsane-preview.c:4471:65: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 4471 | gtk_object_set_data(GTK_OBJECT(rotation_item), "Selection", (void *) rot); + | ^ +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-save.c: In function 'xsane_save_blur_image': xsane-save.c:1550:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 1550 | size_t bytes_read; | ^~~~~~~~~~ +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-preview.c: In function 'preview_preset_area_rename_callback': +xsane-preview.c:5714:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 5714 | selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection"); + | ^ +xsane-preview.c:5721:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 5721 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection"); + | ^ xsane-save.c: In function 'xsane_write_flatedecode': xsane-save.c:2511:14: warning: variable 'count' set but not used [-Wunused-but-set-variable] 2511 | static int count = 0; | ^~~~~ +xsane-preview.c: In function 'preview_preset_area_add_callback': +xsane-preview.c:5764:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 5764 | selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection"); + | ^ xsane-save.c: In function 'xsane_write_compressed_a85': +xsane-preview.c:5769:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 5769 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection"); + | ^ xsane-save.c:2787:14: warning: variable 'linelen' set but not used [-Wunused-but-set-variable] 2787 | static int linelen = 0; | ^~~~~~~ +xsane-preview.c: In function 'preview_preset_area_delete_callback': +xsane-preview.c:5815:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 5815 | selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection"); + | ^ +xsane-preview.c:5835:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 5835 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection"); + | ^ +xsane-preview.c: In function 'preview_preset_area_move_up_callback': xsane-save.c:2786:14: warning: variable 'cbuflen' set but not used [-Wunused-but-set-variable] 2786 | static int cbuflen = 0; | ^~~~~~~ -In file included from /usr/include/string.h:495, - from /usr/include/memory.h:29, - from xsane.h:42, - from xsane-viewer.c:25: -In function 'strncpy', - inlined from 'xsane_viewer_save_callback' at xsane-viewer.c:281:5: -/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] - 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In function 'strncpy', - inlined from 'xsane_viewer_save_callback' at xsane-viewer.c:277:5: -/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] - 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +xsane-setup.c: In function 'xsane_setup_printer_callback': +xsane-setup.c:312:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 312 | preferences.printernr = (int) data; + | ^ +xsane-preview.c:5864:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 5864 | selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection"); + | ^ +In file included from /usr/include/glib-2.0/gobject/gobject.h:28, + from /usr/include/glib-2.0/gobject/gbinding.h:29, + from /usr/include/glib-2.0/glib-object.h:22, + from /usr/include/glib-2.0/gio/gioenums.h:28, + from /usr/include/glib-2.0/gio/giotypes.h:28, + from /usr/include/glib-2.0/gio/gio.h:26, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69, + from xsane-setup.c:25: +xsane-setup.c: In function 'xsane_setup_printer_menu_build': +xsane-setup.c:331:106: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 331 | g_signal_connect(GTK_OBJECT(printer_item), "activate", (GtkSignalFunc) xsane_setup_printer_callback, (void *) i); + | ^ +/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' + 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) + | ^~~~ +xsane-preview.c:5880:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 5880 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection"); + | ^ +xsane-preview.c: In function 'preview_preset_area_move_down_callback': +xsane-preview.c:5909:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 5909 | selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection"); + | ^ 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-preview.c:5926:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 5926 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection"); + | ^ +xsane-preview.c: In function 'preview_preset_area_context_menu_callback': +xsane-setup.c: In function 'xsane_setup_filename_counter_len_callback': +xsane-setup.c:457:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 457 | xsane_setup.filename_counter_len = (int) data; + | ^ +xsane-setup.c: In function 'xsane_setup_tiff_compression16_callback': +xsane-setup.c:467:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 467 | xsane_setup.tiff_compression16_nr = (int) data; + | ^ +xsane-setup.c: In function 'xsane_setup_tiff_compression8_callback': +xsane-setup.c:476:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 476 | xsane_setup.tiff_compression8_nr = (int) data; + | ^ +xsane-setup.c: In function 'xsane_setup_tiff_compression1_callback': +xsane-setup.c:484:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 484 | xsane_setup.tiff_compression1_nr = (int) data; + | ^ +xsane-setup.c: In function 'xsane_setup_color_management_apply_changes': +xsane-setup.c:572:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 572 | preferences.cms_intent = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(gtk_option_menu_get_menu(GTK_OPTION_MENU(xsane_setup.cms_intent_option_menu))))), "Selection"); + | ^ +xsane-preview.c:5957:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 5957 | selection = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); + | ^ +xsane-preview.c: In function 'preview_preset_area_callback': +xsane-preview.c:6034:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 6034 | selection = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); + | ^ +xsane-preview.c: In function 'preview_rotation_callback': xsane-save.c: In function 'xsane_save_ps_pdf_color': xsane-save.c:3355:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 3355 | size_t bytes_read; | ^~~~~~~~~~ -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-preview.c:6058:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 6058 | rot = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); + | ^ +xsane-setup.c: In function 'xsane_permission_toggled': +xsane-setup.c:846:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 846 | int mask = (int) data; + | ^ +xsane.c: In function 'xsane_pref_restore': xsane-save.c: In function 'xsane_save_jpeg': xsane-save.c:4426:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 4426 | size_t bytes_read; | ^~~~~~~~~~ +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: In function 'xsane_save_tiff_page': xsane-save.c:4672:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 4672 | size_t bytes_read; @@ -3842,22 +4100,30 @@ /usr/include/libpng16/png.h:2119:1: note: in expansion of macro 'PNG_EXPORT' 2119 | PNG_EXPORT(159, void, png_set_iCCP, (png_const_structrp png_ptr, | ^~~~~~~~~~ -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:867, - from xsane.h:47, - from xsane-fax-project.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-save.c: In function 'xsane_save_png': xsane-save.c:4935:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 4935 | size_t bytes_read; | ^~~~~~~~~~ +In file included from /usr/include/glib-2.0/gobject/gobject.h:28, + from /usr/include/glib-2.0/gobject/gbinding.h:29, + from /usr/include/glib-2.0/glib-object.h:22, + from /usr/include/glib-2.0/gio/gioenums.h:28, + from /usr/include/glib-2.0/gio/giotypes.h:28, + from /usr/include/glib-2.0/gio/gio.h:26, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69, + from xsane-setup.c:25: +xsane-setup.c: In function 'xsane_saving_notebook': +xsane-setup.c:1753:132: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 1753 | g_signal_connect(GTK_OBJECT(filename_counter_len_item), "activate", (GtkSignalFunc) xsane_setup_filename_counter_len_callback, (void *) i); + | ^ +/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' + 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) + | ^~~~ +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-save.c: In function 'xsane_save_png_16': xsane-save.c:5128:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5128 | size_t bytes_read; @@ -3866,11 +4132,39 @@ xsane-save.c:5313:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5313 | size_t bytes_read; | ^~~~~~~~~~ +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-setup.c: In function 'xsane_filetype_notebook': +xsane-setup.c:1986:126: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 1986 | g_signal_connect(GTK_OBJECT(tiff_compression_item), "activate", (GtkSignalFunc) xsane_setup_tiff_compression16_callback, (void *) tiff_compression16_strings[i-1].number); + | ^ +/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' + 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) + | ^~~~ xsane-save.c: In function 'xsane_save_pnm_16_ascii_color': xsane-save.c:5421:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5421 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_pnm_16_binary_gray': +xsane-setup.c:2022:125: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 2022 | g_signal_connect(GTK_OBJECT(tiff_compression_item), "activate", (GtkSignalFunc) xsane_setup_tiff_compression8_callback, (void *) tiff_compression8_strings[i-1].number); + | ^ +/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' + 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) + | ^~~~ +xsane-setup.c:2059:125: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 2059 | g_signal_connect(GTK_OBJECT(tiff_compression_item), "activate", (GtkSignalFunc) xsane_setup_tiff_compression1_callback, (void *) tiff_compression1_strings[i-1].number); + | ^ +/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' + 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) + | ^~~~ +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-save.c:5530:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5530 | size_t bytes_read; | ^~~~~~~~~~ @@ -3878,6 +4172,19 @@ xsane-save.c:5628:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5628 | size_t bytes_read; | ^~~~~~~~~~ +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-setup.c: In function 'xsane_fax_notebook': +xsane-setup.c:2254:121: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 2254 | g_signal_connect(GTK_OBJECT(button), "clicked", (GtkSignalFunc) xsane_fax_notebook_set_faxprogram_default_callback, (void *) i); + | ^ +/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' + 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) + | ^~~~ xsane-save.c: In function 'xsane_save_pnm_8_gray': xsane-save.c:5730:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5730 | size_t bytes_read; @@ -3886,44 +4193,32 @@ xsane-save.c:5826:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5826 | size_t bytes_read; | ^~~~~~~~~~ -xsane-setup.c: In function 'xsane_setup_printer_callback': -xsane-setup.c:312:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 312 | preferences.printernr = (int) data; - | ^ -In file included from /usr/include/glib-2.0/gobject/gobject.h:28, - from /usr/include/glib-2.0/gobject/gbinding.h:29, - from /usr/include/glib-2.0/glib-object.h:22, - from /usr/include/glib-2.0/gio/gioenums.h:28, - from /usr/include/glib-2.0/gio/giotypes.h:28, - from /usr/include/glib-2.0/gio/gio.h:26, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69, - from xsane-setup.c:25: -xsane-setup.c: In function 'xsane_setup_printer_menu_build': -xsane-setup.c:331:106: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 331 | g_signal_connect(GTK_OBJECT(printer_item), "activate", (GtkSignalFunc) xsane_setup_printer_callback, (void *) i); - | ^ +xsane-setup.c: In function 'xsane_email_notebook': +xsane-setup.c:2560:130: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 2560 | g_signal_connect(GTK_OBJECT(authentication_menu_item), "activate", (GtkSignalFunc) xsane_setup_authentication_type_callback, (void *) authentication_strings[i-1].number); + | ^ /usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ -xsane-setup.c: In function 'xsane_setup_filename_counter_len_callback': xsane-save.c: In function 'xsane_transfer_to_gimp': -xsane-setup.c:457:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 457 | xsane_setup.filename_counter_len = (int) data; - | ^ -xsane-setup.c: In function 'xsane_setup_tiff_compression16_callback': -xsane-setup.c:467:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 467 | xsane_setup.tiff_compression16_nr = (int) data; - | ^ -xsane-setup.c: In function 'xsane_setup_tiff_compression8_callback': -xsane-setup.c:476:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 476 | xsane_setup.tiff_compression8_nr = (int) data; - | ^ -xsane-setup.c: In function 'xsane_setup_tiff_compression1_callback': -xsane-setup.c:484:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 484 | xsane_setup.tiff_compression1_nr = (int) data; - | ^ +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:867, + from xsane.h:47, + from xsane-batch-scan.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 6 and 600 bytes into a destination of size 255 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3933,10 +4228,6 @@ /usr/include/gimp-2.0/libgimp/gimpimage.h:98:16: note: declared here 98 | gboolean gimp_image_parasite_attach (gint32 image_ID, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -xsane-setup.c: In function 'xsane_setup_color_management_apply_changes': -xsane-setup.c:572:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 572 | preferences.cms_intent = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(gtk_option_menu_get_menu(GTK_OPTION_MENU(xsane_setup.cms_intent_option_menu))))), "Selection"); - | ^ xsane-save.c:6951:3: warning: 'gimp_image_add_layer' is deprecated: Use 'gimp_image_insert_layer' instead [-Wdeprecated-declarations] 6951 | gimp_image_add_layer(image_ID, layer_ID, 0); | ^~~~~~~~~~~~~~~~~~~~ @@ -3947,6 +4238,13 @@ /usr/include/gimp-2.0/libgimp/gimpimage_pdb.h:75:26: note: declared here 75 | gboolean gimp_image_add_layer (gint32 image_ID, | ^~~~~~~~~~~~~~~~~~~~ +xsane-setup.c: In function 'xsane_display_notebook': +xsane-setup.c:2929:122: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 2929 | g_signal_connect(GTK_OBJECT(show_range_mode_item), "activate", (GtkSignalFunc) xsane_setup_show_range_mode_callback, (void *) show_range_mode_strings[i-1].number); + | ^ +/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' + 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) + | ^~~~ xsane-save.c:6952:3: warning: 'gimp_drawable_get' is deprecated: Use 'gimp_drawable_get_buffer' instead [-Wdeprecated-declarations] 6952 | drawable = gimp_drawable_get(layer_ID); | ^~~~~~~~ @@ -3956,10 +4254,6 @@ /usr/include/gimp-2.0/libgimp/gimpdrawable.h:52:16: note: declared here 52 | GimpDrawable * gimp_drawable_get (gint32 drawable_ID); | ^~~~~~~~~~~~~~~~~ -xsane-setup.c: In function 'xsane_permission_toggled': -xsane-setup.c:846:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 846 | int mask = (int) data; - | ^ xsane-save.c:6953:3: warning: 'gimp_pixel_rgn_init' is deprecated: Use 'gimp_drawable_get_buffer' instead [-Wdeprecated-declarations] 6953 | gimp_pixel_rgn_init(®ion, drawable, 0, 0, drawable->width, drawable->height, TRUE, FALSE); | ^~~~~~~~~~~~~~~~~~~ @@ -3978,6 +4272,11 @@ /usr/include/gimp-2.0/libgimp/gimppixelrgn.h:104:11: note: declared here 104 | void gimp_pixel_rgn_set_rect (GimpPixelRgn *pr, | ^~~~~~~~~~~~~~~~~~~~~~~ +xsane-setup.c: In function 'xsane_setup_authentication_type_callback': +xsane-setup.c:3132:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 3132 | xsane_setup.email_authentication = (int) data; + | ^ +xsane-setup.c: In function 'xsane_setup_show_range_mode_callback': xsane-save.c:7025:13: warning: 'gimp_pixel_rgn_set_rect' is deprecated: Use 'gegl_buffer_set' instead [-Wdeprecated-declarations] 7025 | gimp_pixel_rgn_set_rect(®ion, tile, 0, y - tile_height, image_info.image_width, tile_height); | ^~~~~~~~~~~~~~~~~~~~~~~ @@ -3996,6 +4295,71 @@ /usr/include/gimp-2.0/libgimp/gimppixelrgn.h:104:11: note: declared here 104 | void gimp_pixel_rgn_set_rect (GimpPixelRgn *pr, | ^~~~~~~~~~~~~~~~~~~~~~~ +xsane-setup.c:3141:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 3141 | xsane_setup.show_range_mode = (int) data; + | ^ +xsane-setup.c: In function 'xsane_setup_lineart_mode_callback': +xsane-setup.c:3148:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 3148 | xsane_setup.lineart_mode = (int) data; + | ^ +xsane-setup.c: In function 'xsane_setup_preview_pipette_range_callback': +xsane-setup.c:3171:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 3171 | xsane_setup.preview_pipette_range = (int) data; + | ^ +xsane-fax-project.c: In function 'xsane_fax_send': +In file included from /usr/include/glib-2.0/gobject/gobject.h:28, + from /usr/include/glib-2.0/gobject/gbinding.h:29, + from /usr/include/glib-2.0/glib-object.h:22, + from /usr/include/glib-2.0/gio/gioenums.h:28, + from /usr/include/glib-2.0/gio/giotypes.h:28, + from /usr/include/glib-2.0/gio/gio.h:26, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69, + from xsane-setup.c:25: +xsane-setup.c: In function 'xsane_enhance_notebook': +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 file included from /usr/include/stdio.h:867, + from xsane.h:47, + from xsane-fax-project.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 file included from /usr/include/stdio.h:867, + from xsane.h:47, + from xsane-fax-project.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 file included from /usr/include/stdio.h:867, + from xsane.h:47, + from xsane-fax-project.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-save.c:7111:13: warning: 'gimp_pixel_rgn_set_rect' is deprecated: Use 'gegl_buffer_set' instead [-Wdeprecated-declarations] 7111 | gimp_pixel_rgn_set_rect(®ion, tile, 0, y - tile_height, image_info.image_width, tile_height); | ^~~~~~~~~~~~~~~~~~~~~~~ @@ -4005,6 +4369,17 @@ /usr/include/gimp-2.0/libgimp/gimppixelrgn.h:104:11: note: declared here 104 | void gimp_pixel_rgn_set_rect (GimpPixelRgn *pr, | ^~~~~~~~~~~~~~~~~~~~~~~ +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 file included from /usr/include/stdio.h:867, + from xsane.h:47, + from xsane-fax-project.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-save.c:7152:13: warning: 'gimp_pixel_rgn_set_rect' is deprecated: Use 'gegl_buffer_set' instead [-Wdeprecated-declarations] 7152 | gimp_pixel_rgn_set_rect(®ion, tile, 0, y - tile_height, image_info.image_width, tile_height); | ^~~~~~~~~~~~~~~~~~~~~~~ @@ -4014,6 +4389,15 @@ /usr/include/gimp-2.0/libgimp/gimppixelrgn.h:104:11: note: declared here 104 | void gimp_pixel_rgn_set_rect (GimpPixelRgn *pr, | ^~~~~~~~~~~~~~~~~~~~~~~ +xsane-setup.c:3240:116: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 3240 | g_signal_connect(GTK_OBJECT(lineart_mode_item), "activate", (GtkSignalFunc) xsane_setup_lineart_mode_callback, (void *) lineart_mode_strings[i-1].number); + | ^ +/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' + 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) + | ^~~~ +xsane-setup.c:3364:22: warning: variable 'status' set but not used [-Wunused-but-set-variable] + 3364 | SANE_Status status; + | ^~~~~~ xsane-save.c:7225:5: warning: 'gimp_pixel_rgn_set_rect' is deprecated: Use 'gegl_buffer_set' instead [-Wdeprecated-declarations] 7225 | gimp_pixel_rgn_set_rect(®ion, tile, 0, y - remaining, image_info.image_width, remaining); | ^~~~~~~~~~~~~~~~~~~~~~~ @@ -4041,6 +4425,26 @@ /usr/include/gimp-2.0/libgimp/gimpdrawable.h:54:16: note: declared here 54 | void gimp_drawable_detach (GimpDrawable *drawable); | ^~~~~~~~~~~~~~~~~~~~ +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 */ + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/glib-2.0/gobject/gobject.h:28, + from /usr/include/glib-2.0/gobject/gbinding.h:29, + from /usr/include/glib-2.0/glib-object.h:22, + from /usr/include/glib-2.0/gio/gioenums.h:28, + from /usr/include/glib-2.0/gio/giotypes.h:28, + from /usr/include/glib-2.0/gio/gio.h:26, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69, + from xsane-setup.c:25: +xsane-setup.c:3464:134: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 3464 | g_signal_connect(GTK_OBJECT(preview_pipette_range_item), "activate", (GtkSignalFunc) xsane_setup_preview_pipette_range_callback, (void *) j); + | ^ +/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' + 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) + | ^~~~ xsane-save.c:6803:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 6803 | size_t bytes_read; | ^~~~~~~~~~ @@ -4049,6 +4453,29 @@ 7268 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_string_base64': +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 file included from /usr/include/stdio.h:867, + from xsane.h:47, + from xsane-email-project.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 file included from /usr/include/stdio.h:867, + from xsane.h:47, + from xsane-email-project.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-save.c:7299:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7299 | ssize_t bytes_written; | ^~~~~~~~~~~~~ @@ -4057,23 +4484,6 @@ 7334 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_email_header': -In file included from /usr/include/glib-2.0/gobject/gobject.h:28, - from /usr/include/glib-2.0/gobject/gbinding.h:29, - from /usr/include/glib-2.0/glib-object.h:22, - from /usr/include/glib-2.0/gio/gioenums.h:28, - from /usr/include/glib-2.0/gio/giotypes.h:28, - from /usr/include/glib-2.0/gio/gio.h:26, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69, - from xsane-setup.c:25: -xsane-setup.c: In function 'xsane_saving_notebook': -xsane-setup.c:1753:132: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 1753 | g_signal_connect(GTK_OBJECT(filename_counter_len_item), "activate", (GtkSignalFunc) xsane_setup_filename_counter_len_callback, (void *) i); - | ^ -/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' - 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) - | ^~~~ xsane-save.c:7386:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7386 | ssize_t bytes_written; | ^~~~~~~~~~~~~ @@ -4086,29 +4496,10 @@ 7434 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_email_mime_html': -xsane-setup.c: In function 'xsane_filetype_notebook': -xsane-setup.c:1986:126: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 1986 | g_signal_connect(GTK_OBJECT(tiff_compression_item), "activate", (GtkSignalFunc) xsane_setup_tiff_compression16_callback, (void *) tiff_compression16_strings[i-1].number); - | ^ -/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' - 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) - | ^~~~ xsane-save.c:7454:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7454 | ssize_t bytes_written; | ^~~~~~~~~~~~~ -xsane-setup.c:2022:125: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 2022 | g_signal_connect(GTK_OBJECT(tiff_compression_item), "activate", (GtkSignalFunc) xsane_setup_tiff_compression8_callback, (void *) tiff_compression8_strings[i-1].number); - | ^ -/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' - 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) - | ^~~~ xsane-save.c: In function 'write_email_attach_image': -xsane-setup.c:2059:125: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 2059 | g_signal_connect(GTK_OBJECT(tiff_compression_item), "activate", (GtkSignalFunc) xsane_setup_tiff_compression1_callback, (void *) tiff_compression1_strings[i-1].number); - | ^ -/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' - 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) - | ^~~~ xsane-save.c:7480:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7480 | ssize_t bytes_written; | ^~~~~~~~~~~~~ @@ -4116,26 +4507,7 @@ xsane-save.c:7514:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7514 | ssize_t bytes_written; | ^~~~~~~~~~~~~ -xsane-setup.c: In function 'xsane_fax_notebook': -xsane-viewer.c: In function 'xsane_viewer_read_image.isra': xsane-save.c: In function 'pop3_login': -xsane-setup.c:2254:121: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 2254 | g_signal_connect(GTK_OBJECT(button), "clicked", (GtkSignalFunc) xsane_fax_notebook_set_faxprogram_default_callback, (void *) i); - | ^ -/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' - 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) - | ^~~~ -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:867, - from xsane.h:47, - from xsane-viewer.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-save.c:7604:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7604 | ssize_t bytes_written; | ^~~~~~~~~~~~~ @@ -4143,13 +4515,6 @@ xsane-save.c:7660:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7660 | ssize_t bytes_written; | ^~~~~~~~~~~~~ -xsane-setup.c: In function 'xsane_email_notebook': -xsane-setup.c:2560:130: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 2560 | g_signal_connect(GTK_OBJECT(authentication_menu_item), "activate", (GtkSignalFunc) xsane_setup_authentication_type_callback, (void *) authentication_strings[i-1].number); - | ^ -/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' - 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) - | ^~~~ xsane-save.c: In function 'write_smtp_header': xsane-save.c:7760:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7760 | ssize_t bytes_written; @@ -4158,68 +4523,29 @@ xsane-save.c:7916:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7916 | ssize_t bytes_written; | ^~~~~~~~~~~~~ -xsane-setup.c: In function 'xsane_display_notebook': -xsane-setup.c:2929:122: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 2929 | g_signal_connect(GTK_OBJECT(show_range_mode_item), "activate", (GtkSignalFunc) xsane_setup_show_range_mode_callback, (void *) show_range_mode_strings[i-1].number); - | ^ -/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' - 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) - | ^~~~ -xsane-setup.c: In function 'xsane_setup_authentication_type_callback': -xsane-setup.c:3132:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 3132 | xsane_setup.email_authentication = (int) data; - | ^ -xsane-setup.c: In function 'xsane_setup_show_range_mode_callback': -xsane-setup.c:3141:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 3141 | xsane_setup.show_range_mode = (int) data; - | ^ -xsane-setup.c: In function 'xsane_setup_lineart_mode_callback': -xsane-setup.c:3148:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 3148 | xsane_setup.lineart_mode = (int) data; - | ^ -xsane-setup.c: In function 'xsane_setup_preview_pipette_range_callback': -xsane-setup.c:3171:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 3171 | xsane_setup.preview_pipette_range = (int) data; - | ^ -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, - | ~~~~~~~~~~~~~~~ -In file included from /usr/include/glib-2.0/gobject/gobject.h:28, - from /usr/include/glib-2.0/gobject/gbinding.h:29, - from /usr/include/glib-2.0/glib-object.h:22, - from /usr/include/glib-2.0/gio/gioenums.h:28, - from /usr/include/glib-2.0/gio/giotypes.h:28, - from /usr/include/glib-2.0/gio/gio.h:26, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69, - from xsane-setup.c:25: -xsane-setup.c: In function 'xsane_enhance_notebook': -xsane-batch-scan.c:662:31: note: format string is defined here - 662 | "%s\n" /* geometry_tl */ - | ^~ +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 file included from /usr/include/stdio.h:867, from xsane.h:47, - from xsane-batch-scan.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 6 and 600 bytes into a destination of size 255 + from xsane-email-project.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 22 and 276 bytes into a destination of size 255 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 file included from /usr/include/stdio.h:867, + from xsane.h:47, + from xsane-email-project.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 22 and 276 bytes into a destination of size 255 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -xsane-setup.c:3240:116: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 3240 | g_signal_connect(GTK_OBJECT(lineart_mode_item), "activate", (GtkSignalFunc) xsane_setup_lineart_mode_callback, (void *) lineart_mode_strings[i-1].number); - | ^ -/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' - 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) - | ^~~~ -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 -fdebug-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -I/usr/include/gimp-2.0 -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/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 xsane-icons.c -xsane-setup.c:3364:22: warning: variable 'status' set but not used [-Wunused-but-set-variable] - 3364 | SANE_Status status; - | ^~~~~~ xsane-save.c: In function 'xsane_read_pnm_header': xsane-save.c:432:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 432 | fgets(buf, sizeof(buf)-1, file); @@ -4227,84 +4553,10 @@ xsane-save.c:446:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 446 | fgets(buf, sizeof(buf)-1, file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/glib-2.0/gobject/gobject.h:28, - from /usr/include/glib-2.0/gobject/gbinding.h:29, - from /usr/include/glib-2.0/glib-object.h:22, - from /usr/include/glib-2.0/gio/gioenums.h:28, - from /usr/include/glib-2.0/gio/giotypes.h:28, - from /usr/include/glib-2.0/gio/gio.h:26, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69, - from xsane-setup.c:25: -xsane-setup.c:3464:134: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 3464 | g_signal_connect(GTK_OBJECT(preview_pipette_range_item), "activate", (GtkSignalFunc) xsane_setup_preview_pipette_range_callback, (void *) j); - | ^ -/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' - 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) - | ^~~~ xsane-save.c: In function 'xsane_save_image_as_text': 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-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 file included from /usr/include/stdio.h:867, - from xsane.h:47, - from xsane-fax-project.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 file included from /usr/include/stdio.h:867, - from xsane.h:47, - from xsane-fax-project.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 file included from /usr/include/stdio.h:867, - from xsane.h:47, - from xsane-fax-project.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __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 -fdebug-prefix-map=/build/xsane-0.999=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -I/usr/include/gimp-2.0 -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/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 xsane.c -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 file included from /usr/include/stdio.h:867, - from xsane.h:47, - from xsane-fax-project.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from /usr/include/memory.h:29, from xsane.h:42, @@ -4319,6 +4571,9 @@ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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-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)); @@ -4331,18 +4586,20 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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:867, - from xsane.h:47, - from xsane-email-project.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/string.h:495, + from /usr/include/memory.h:29, + from xsane.h:42, + from xsane-viewer.c:25: +In function 'strncpy', + inlined from 'xsane_viewer_save_callback' at xsane-viewer.c:281:5: +/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] + 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In function 'strncpy', + inlined from 'xsane_viewer_save_callback' at xsane-viewer.c:277:5: +/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] + 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 */ @@ -4366,24 +4623,14 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In function 'strncpy', - inlined from 'xsane_start_scan' at xsane-scan.c:1807:9: -/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] - 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In function 'strncpy', - inlined from 'xsane_start_scan' at xsane-scan.c:1800:9: -/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] - 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~ ~~~~~~~~ +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:867, from xsane.h:47, - from xsane-fax-project.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 1024 + from xsane-viewer.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); @@ -4400,240 +4647,88 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __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 */ - | ^ +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 file included from /usr/include/stdio.h:867, from xsane.h:47, - from xsane-email-project.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 + from xsane-fax-project.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 1024 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 'strncpy', + inlined from 'xsane_start_scan' at xsane-scan.c:1807:9: +/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] + 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In function 'strncpy', + inlined from 'xsane_start_scan' at xsane-scan.c:1800:9: +/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] + 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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:867, from xsane.h:47, - from xsane-email-project.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + from xsane.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 23 and 4118 bytes into a destination of size 255 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __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:24, - from /usr/include/glib-2.0/gobject/gbinding.h:29, - from /usr/include/glib-2.0/glib-object.h:22, - from /usr/include/glib-2.0/gio/gioenums.h:28, - from /usr/include/glib-2.0/gio/giotypes.h:28, - from /usr/include/glib-2.0/gio/gio.h:26, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69, - from xsane.c:25: -/usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here - 679 | { - | ^ -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); - | ^~ ~~~~~~~~~~ +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); + | ^~ ~~~~~~~~ In file included from /usr/include/stdio.h:867, from xsane.h:47, - from xsane-email-project.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 22 and 276 bytes into a destination of size 255 + from xsane.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 9 and 4104 bytes into a destination of size 4094 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~ ~~~~~~~~~~ +xsane.c:2050:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4094 [-Wformat-truncation=] + 2050 | snprintf(buf, sizeof(buf)-2, "%s%c%s", filename, SLASH, FAXPROJECT); + | ^~ ~~~~~~~~ In file included from /usr/include/stdio.h:867, from xsane.h:47, - from xsane-email-project.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 22 and 276 bytes into a destination of size 255 + from xsane.c:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 12 and 4107 bytes into a destination of size 4094 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __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, - from /usr/include/gtk-2.0/gtk/gtk.h:126, - from xsane.h:70, - from xsane.c:25: -/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:32, - from /usr/include/glib-2.0/glib.h:30, - from /usr/include/glib-2.0/gobject/gbinding.h:28, - from /usr/include/glib-2.0/glib-object.h:22, - from /usr/include/glib-2.0/gio/gioenums.h:28, - from /usr/include/glib-2.0/gio/giotypes.h:28, - from /usr/include/glib-2.0/gio/gio.h:26, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69, - from xsane.c:25: -/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here - 547 | struct _GTimeVal - | ^~~~~~~~~ -xsane.c: In function 'xsane_paper_orientation_callback': -xsane.c:581:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 581 | int pos = (int) data; - | ^ -xsane.c: In function 'xsane_printer_callback': -xsane.c:597:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 597 | preferences.printernr = (int) data; - | ^ -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_cms_function_menu_callback': -xsane.c:1161:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 1161 | preferences.cms_function = (int) data; - | ^ -In file included from /usr/include/glib-2.0/gobject/gobject.h:28, - from /usr/include/glib-2.0/gobject/gbinding.h:29, - from /usr/include/glib-2.0/glib-object.h:22, - from /usr/include/glib-2.0/gio/gioenums.h:28, - from /usr/include/glib-2.0/gio/giotypes.h:28, - from /usr/include/glib-2.0/gio/gio.h:26, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69, +xsane.c:2132:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4094 [-Wformat-truncation=] + 2132 | snprintf(buf, sizeof(buf)-2, "%s%c%s", filename, SLASH, EMAILPROJECT); + | ^~ ~~~~~~~~ +In file included from /usr/include/stdio.h:867, + from xsane.h:47, from xsane.c:25: -xsane.c: In function 'xsane_update_xsane_callback': -xsane.c:1398:122: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 1398 | g_signal_connect(GTK_OBJECT(paper_orientation_item), "activate", (GtkSignalFunc) xsane_paper_orientation_callback, (void *) i); - | ^ -/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' - 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) - | ^~~~ -xsane.c:1432:108: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 1432 | g_signal_connect(GTK_OBJECT(xsane_printer_item), "activate", (GtkSignalFunc) xsane_printer_callback, (void *) i); - | ^ -/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' - 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) - | ^~~~ -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; - | ^~~~~~ -In file included from /usr/include/glib-2.0/gobject/gobject.h:28, - from /usr/include/glib-2.0/gobject/gbinding.h:29, - from /usr/include/glib-2.0/glib-object.h:22, - from /usr/include/glib-2.0/gio/gioenums.h:28, - from /usr/include/glib-2.0/gio/giotypes.h:28, - from /usr/include/glib-2.0/gio/gio.h:26, - 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/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 14 and 4109 bytes into a destination of size 4094 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +xsane.c:2159:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4094 [-Wformat-truncation=] + 2159 | snprintf(buf, sizeof(buf)-2, "%s%c%s", filename, SLASH, MULTIPAGEPROJECT); + | ^~ ~~~~~~~~ +In file included from /usr/include/stdio.h:867, + from xsane.h:47, from xsane.c:25: -xsane.c:1580:129: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 1580 | g_signal_connect(GTK_OBJECT(xsane_medium_item), "button_press_event", (GtkSignalFunc) xsane_medium_context_menu_callback, (void *) i); - | ^ -/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' - 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) - | ^~~~ -xsane.c:1581:110: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 1581 | g_signal_connect(GTK_OBJECT(xsane_medium_item), "activate", (GtkSignalFunc) xsane_set_medium_callback, (void *) i); - | ^ -/usr/include/glib-2.0/gobject/gsignal.h:493:73: note: in definition of macro 'g_signal_connect' - 493 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) - | ^~~~ -xsane.c:1582:71: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 1582 | gtk_object_set_data(GTK_OBJECT(xsane_medium_item), "Selection", (void *) i); - | ^ -xsane.c: In function 'xsane_medium_move_up_callback': -xsane.c:2592:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 2592 | selection = (int) gtk_object_get_data(GTK_OBJECT(medium_widget), "Selection"); - | ^ -xsane.c: In function 'xsane_medium_move_down_callback': -xsane.c:2627:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 2627 | selection = (int) gtk_object_get_data(GTK_OBJECT(medium_widget), "Selection"); - | ^ -xsane.c: In function 'xsane_medium_rename_callback': -xsane.c:2666:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 2666 | selection = (int) gtk_object_get_data(GTK_OBJECT(medium_widget), "Selection"); - | ^ -xsane.c:2674:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 2674 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_medium_menu))), "Selection"); - | ^ -xsane.c: In function 'xsane_medium_add_callback': -xsane.c:2709:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 2709 | selection = 1 + (int) gtk_object_get_data(GTK_OBJECT(medium_widget), "Selection"); - | ^ -xsane.c:2715:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 2715 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_medium_menu))), "Selection"); - | ^ -xsane.c: In function 'xsane_medium_delete_callback': -xsane.c:2790:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 2790 | selection = (int) gtk_object_get_data(GTK_OBJECT(medium_widget), "Selection"); - | ^ -xsane.c: In function 'xsane_medium_context_menu_callback': -xsane.c:2846:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 2846 | selection = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); - | ^ -xsane.c: In function 'xsane_set_medium_callback': -xsane.c:2917:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 2917 | int medium_nr = (int) data; - | ^ -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_select_device_by_key_callback': -xsane.c:5370:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 5370 | xsane.selected_dev = (int) data; - | ^ -xsane.c: In function 'xsane_select_device_by_mouse_callback': -xsane.c:5379:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 5379 | xsane.selected_dev = (int) data; - | ^ -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()); - | ^~~~~~~~~~~~~~~~ +/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 18 and 4113 bytes into a destination of size 4094 + 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 68 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from /usr/include/memory.h:29, from xsane.h:42, @@ -4685,66 +4780,6 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __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:867, - from xsane.h:47, - from xsane.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 23 and 4118 bytes into a destination of size 255 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __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); - | ^~ ~~~~~~~~ -In file included from /usr/include/stdio.h:867, - from xsane.h:47, - from xsane.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 9 and 4104 bytes into a destination of size 4094 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -xsane.c:2050:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4094 [-Wformat-truncation=] - 2050 | snprintf(buf, sizeof(buf)-2, "%s%c%s", filename, SLASH, FAXPROJECT); - | ^~ ~~~~~~~~ -In file included from /usr/include/stdio.h:867, - from xsane.h:47, - from xsane.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 12 and 4107 bytes into a destination of size 4094 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -xsane.c:2132:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4094 [-Wformat-truncation=] - 2132 | snprintf(buf, sizeof(buf)-2, "%s%c%s", filename, SLASH, EMAILPROJECT); - | ^~ ~~~~~~~~ -In file included from /usr/include/stdio.h:867, - from xsane.h:47, - from xsane.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 14 and 4109 bytes into a destination of size 4094 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -xsane.c:2159:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4094 [-Wformat-truncation=] - 2159 | snprintf(buf, sizeof(buf)-2, "%s%c%s", filename, SLASH, MULTIPAGEPROJECT); - | ^~ ~~~~~~~~ -In file included from /usr/include/stdio.h:867, - from xsane.h:47, - from xsane.c:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 18 and 4113 bytes into a destination of size 4094 - 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 68 | __bos (__s), __fmt, __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; @@ -4827,13 +4862,13 @@ dh_prep dh_installdirs dh_auto_install - make -j15 install DESTDIR=/build/xsane-0.999/debian/tmp AM_UPDATE_INFO_DIR=no + make -j16 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 -j15 --jobserver-auth=3,4" in *k*) fail=yes;; *) exit 1;; esac; \ + || case "-w -j16 --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' @@ -5132,26 +5167,26 @@ dh_strip_nondeterminism Normalized debian/xsane-common/usr/share/locale/zh_CN/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/zh/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/tr/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/vi/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/sl/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/sk/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/tr/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/vi/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/ru/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/sv/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/sr/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/pl/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/pa/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/nl/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/ja/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/fr/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/fi/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/it/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/hu/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/da/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/cs/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/it/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/hu/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/es/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/de/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/ca/LC_MESSAGES/xsane.mo @@ -5169,8 +5204,8 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'xsane' in '../xsane_0.999-10_amd64.deb'. dpkg-deb: building package 'xsane-dbgsym' in '../xsane-dbgsym_0.999-10_amd64.deb'. +dpkg-deb: building package 'xsane' in '../xsane_0.999-10_amd64.deb'. dpkg-deb: building package 'xsane-common' in '../xsane-common_0.999-10_all.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../xsane_0.999-10_amd64.changes @@ -5179,12 +5214,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/244813/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/244813/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/3035717 and its subdirectories -I: Current time: Sun Jan 23 02:35:56 -12 2022 -I: pbuilder-time-stamp: 1642948556 +I: removing directory /srv/workspace/pbuilder/244813 and its subdirectories +I: Current time: Sun Feb 26 11:03:28 +14 2023 +I: pbuilder-time-stamp: 1677359008