Diff of the two buildlogs: -- --- b1/build.log 2024-05-18 03:27:51.391714249 +0000 +++ b2/build.log 2024-05-18 03:30:35.880713636 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri May 17 15:25:43 -12 2024 -I: pbuilder-time-stamp: 1716002743 +I: Current time: Fri Jun 20 23:50:54 +14 2025 +I: pbuilder-time-stamp: 1750413054 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -54,51 +54,83 @@ 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/4136131/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3644560/tmp/hooks/D01_modify_environment starting +debug: Running on infom02-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jun 20 09:51 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/3644560/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3644560/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='f98b469e01624eeebe02514d45aa1927' - 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='4136131' - PS1='# ' - PS2='> ' + INVOCATION_ID=57559c36706542f28de39ceaf6823ada + 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=3644560 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.h1Rvd5PZ/pbuilderrc_wnv1 --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.h1Rvd5PZ/b1 --logfile b1/build.log xsane_0.999-12.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.h1Rvd5PZ/pbuilderrc_rG3H --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.h1Rvd5PZ/b2 --logfile b2/build.log xsane_0.999-12.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' I: uname -a - Linux infom01-amd64 6.1.0-21-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.6.13+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.13-1~bpo12+1 (2024-02-15) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 16 07:42 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/4136131/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Jun 18 14:05 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3644560/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -536,7 +568,7 @@ Get: 382 http://deb.debian.org/debian unstable/main amd64 libsnmp40t64 amd64 5.9.4+dfsg-1.1+b1 [2577 kB] Get: 383 http://deb.debian.org/debian unstable/main amd64 libsane1 amd64 1.3.0-1 [2612 kB] Get: 384 http://deb.debian.org/debian unstable/main amd64 libsane-dev amd64 1.3.0-1 [2479 kB] -Fetched 189 MB in 2s (91.4 MB/s) +Fetched 189 MB in 3s (71.2 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 ... 19719 files and directories currently installed.) @@ -1777,8 +1809,8 @@ Setting up tzdata (2024a-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Sat May 18 03:27:06 UTC 2024. -Universal Time is now: Sat May 18 03:27:06 UTC 2024. +Local time is now: Fri Jun 20 09:52:29 UTC 2025. +Universal Time is now: Fri Jun 20 09:52:29 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libsysprof-capture-4-dev:amd64 (46.0-1) ... @@ -2128,7 +2160,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/xsane-0.999/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../xsane_0.999-12_source.changes +I: user script /srv/workspace/pbuilder/3644560/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/3644560/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/xsane-0.999/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../xsane_0.999-12_source.changes dpkg-buildpackage: info: source package xsane dpkg-buildpackage: info: source version 0.999-12 dpkg-buildpackage: info: source distribution unstable @@ -2526,7 +2562,7 @@ from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, - from xsane-batch-scan.c:25: + from xsane-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); | ^~~~ @@ -2551,7 +2587,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-front-gtk.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); | ^~~~ @@ -2592,6 +2628,19 @@ /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ +In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, + from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtk.h:126: +/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] + 73 | GTimeVal last_popdown; + | ^~~~~~~~ +In file included from /usr/include/glib-2.0/glib/galloca.h:34, + from /usr/include/glib-2.0/glib.h:32, + from /usr/include/glib-2.0/gobject/gbinding.h:30: +/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here + 580 | 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, @@ -2601,7 +2650,7 @@ from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, - from xsane-preferences.c:25: + from xsane-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); | ^~~~ @@ -2630,56 +2679,6 @@ /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-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:26, - from /usr/include/glib-2.0/gobject/gbinding.h:31, - from /usr/include/glib-2.0/glib-object.h:24, - from /usr/include/glib-2.0/gio/gioenums.h:30, - from /usr/include/glib-2.0/gio/giotypes.h:30, - from /usr/include/glib-2.0/gio/gio.h:28, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69: -/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here - 725 | { - | ^ -In file included from /usr/include/glib-2.0/gobject/gobject.h:26, - from /usr/include/glib-2.0/gobject/gbinding.h:31, - from /usr/include/glib-2.0/glib-object.h:24, - from /usr/include/glib-2.0/gio/gioenums.h:30, - from /usr/include/glib-2.0/gio/giotypes.h:30, - from /usr/include/glib-2.0/gio/gio.h:28, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69: -/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here - 725 | { - | ^ -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:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, @@ -2701,7 +2700,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-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); | ^~~~ @@ -2724,6 +2723,12 @@ /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ +In file included from /usr/include/glib-2.0/glib/galloca.h:34, + from /usr/include/glib-2.0/glib.h:32, + from /usr/include/glib-2.0/gobject/gbinding.h:30: +/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here + 580 | 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, @@ -2737,12 +2742,6 @@ /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ -In file included from /usr/include/glib-2.0/glib/galloca.h:34, - from /usr/include/glib-2.0/glib.h:32, - from /usr/include/glib-2.0/gobject/gbinding.h:30: -/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here - 580 | 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, @@ -2765,7 +2764,7 @@ from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from xsane.h:70, - from xsane-multipage-project.c:27: + from xsane-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); | ^~~~ @@ -2781,6 +2780,33 @@ /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ +xsane-viewer.c: In function 'xsane_viewer_scale_set_scale_value_and_adjustments': +xsane-viewer.c:509:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 509 | image_width = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_width"); + | ^ +xsane-viewer.c:510:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 510 | image_height = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_height"); + | ^ +xsane-viewer.c: In function 'xsane_viewer_scale_set_size_x_value_and_adjustments': +xsane-viewer.c:532:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 532 | image_width = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_width"); + | ^ +xsane-viewer.c:533:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 533 | image_height = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_height"); + | ^ +xsane-viewer.c:530:19: warning: variable 'image_height' set but not used [-Wunused-but-set-variable] + 530 | int image_width, image_height; + | ^~~~~~~~~~~~ +xsane-viewer.c: In function 'xsane_viewer_scale_set_size_y_value_and_adjustments': +xsane-viewer.c:556:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 556 | image_width = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_width"); + | ^ +xsane-viewer.c:557:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 557 | image_height = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_height"); + | ^ +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, @@ -2790,7 +2816,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-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); | ^~~~ @@ -2806,6 +2832,49 @@ /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ +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); + | ^ +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-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); + | ^ +xsane-viewer.c:726:78: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 726 | gtk_object_set_data(GTK_OBJECT(adjustment_size_x), "image_height", (void *) image_info.image_height); + | ^ +xsane-viewer.c:730:78: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 730 | gtk_object_set_data(GTK_OBJECT(adjustment_size_y), "image_width", (void *) image_info.image_width); + | ^ +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); + | ^ +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-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); + | ^ +xsane-viewer.c:770:78: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 770 | gtk_object_set_data(GTK_OBJECT(adjustment_size_x), "image_width", (void *) image_info.image_width); + | ^ +xsane-viewer.c:771:78: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 771 | gtk_object_set_data(GTK_OBJECT(adjustment_size_x), "image_height", (void *) image_info.image_height); + | ^ +xsane-viewer.c:805:73: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 805 | gtk_object_set_data(GTK_OBJECT(scaley_widget), "image_width", (void *) image_info.image_width); + | ^ +xsane-viewer.c:806:73: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 806 | gtk_object_set_data(GTK_OBJECT(scaley_widget), "image_height", (void *) image_info.image_height); + | ^ +xsane-viewer.c:809:78: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 809 | gtk_object_set_data(GTK_OBJECT(adjustment_size_y), "image_width", (void *) image_info.image_width); + | ^ +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); + | ^ 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, @@ -2831,6 +2900,26 @@ /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ +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"); + | ^ +xsane-viewer.c: In function 'xsane_viewer_set_cms_intent_callback': +xsane-viewer.c:1751:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 1751 | val = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); + | ^ +xsane-viewer.c: In function 'xsane_viewer_set_cms_proofing_intent_callback': +xsane-viewer.c:1777:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 1777 | val = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); + | ^ +xsane-viewer.c: In function 'xsane_viewer_set_cms_gamut_alarm_color_callback': +xsane-viewer.c:1809:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 1809 | val = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); + | ^ 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, @@ -2844,6 +2933,72 @@ /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ +xsane-viewer.c: In function 'xsane_viewer_read_image_header': +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-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); + | ^~~~ +In file included from /usr/include/glib-2.0/gobject/gobject.h:26, + from /usr/include/glib-2.0/gobject/gbinding.h:31, + from /usr/include/glib-2.0/glib-object.h:24, + from /usr/include/glib-2.0/gio/gioenums.h:30, + from /usr/include/glib-2.0/gio/giotypes.h:30, + from /usr/include/glib-2.0/gio/gio.h:28, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69: +/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here + 725 | { + | ^ +xsane-viewer.c:2151:6: warning: variable 'pos0' set but not used [-Wunused-but-set-variable] + 2151 | int pos0; + | ^~~~ +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-multipage-project.c:27: +/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] + 236 | void gtk_type_init (GTypeDebugFlags debug_flags); + | ^~~~ +xsane-viewer.c: In function 'xsane_viewer_read_image': +In file included from /usr/include/glib-2.0/gobject/gobject.h:26, + from /usr/include/glib-2.0/gobject/gbinding.h:31, + from /usr/include/glib-2.0/glib-object.h:24, + from /usr/include/glib-2.0/gio/gioenums.h:30, + from /usr/include/glib-2.0/gio/giotypes.h:30, + from /usr/include/glib-2.0/gio/gio.h:28, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69: +/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here + 725 | { + | ^ +xsane-viewer.c:2206:6: warning: variable 'nread' set but not used [-Wunused-but-set-variable] + 2206 | int nread; + | ^~~~~ +xsane-viewer.c: In function 'xsane_viewer_new': +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]); + | ^ +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)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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, @@ -2883,31 +3038,21 @@ /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | 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-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:26, - from /usr/include/glib-2.0/gobject/gbinding.h:31, - from /usr/include/glib-2.0/glib-object.h:24, - from /usr/include/glib-2.0/gio/gioenums.h:30, - from /usr/include/glib-2.0/gio/giotypes.h:30, - from /usr/include/glib-2.0/gio/gio.h:28, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69: -/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here - 725 | { - | ^ +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-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; + | ^~~~~ 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, @@ -2928,13 +3073,48 @@ /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ -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 | { - | ^ +In file included from /usr/include/glib-2.0/glib/galloca.h:34, + from /usr/include/glib-2.0/glib.h:32, + from /usr/include/glib-2.0/gobject/gbinding.h:30: +/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here + 580 | struct _GTimeVal + | ^~~~~~~~~ +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-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-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-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-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-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"); + | ^ 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, @@ -2942,18 +3122,31 @@ /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ +xsane-preview.c: In function 'preview_preset_area_move_down_callback': In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ -In file included from /usr/include/glib-2.0/glib/galloca.h:34, - from /usr/include/glib-2.0/glib.h:32, - from /usr/include/glib-2.0/gobject/gbinding.h:30: -/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here - 580 | struct _GTimeVal - | ^~~~~~~~~ +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-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-preview.c: In function 'preview_preset_area_callback': +xsane-batch-scan.c: In function 'xsane_batch_scan_save_list': +xsane-batch-scan.c:399:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 399 | if (!xsane_back_gtk_get_filename(windowname, filename, sizeof(filename), filename, NULL, NULL, XSANE_FILE_CHOOSER_ACTION_SAVE, XSANE_GET_FILENAME_SHOW_NOTHING, XSANE_FILE_FILTER_ALL | XSANE_FILE_FILTER_BATCHLIST, XSANE_FILE_FILTER_BATCHLIST)); + | ^~ +xsane-batch-scan.c:400:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 400 | { + | ^ xsane-batch-scan.c: In function 'xsane_batch_scan_create_list_entry': xsane-batch-scan.c:683:8: warning: variable 'data' set but not used [-Wunused-but-set-variable] 683 | char *data; @@ -2970,6 +3163,81 @@ 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; | ^ +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); + | ^~~~ +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"); + | ^ +In file included from /usr/include/glib-2.0/gobject/gobject.h:26, + from /usr/include/glib-2.0/gobject/gbinding.h:31, + from /usr/include/glib-2.0/glib-object.h:24, + from /usr/include/glib-2.0/gio/gioenums.h:30, + from /usr/include/glib-2.0/gio/giotypes.h:30, + from /usr/include/glib-2.0/gio/gio.h:28, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69: +/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here + 725 | { + | ^ +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; + | ^ +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-back-gtk.c: In function 'xsane_back_gtk_button_update': +xsane-email-project.c:1937:10: warning: variable 'ipc_file' set but not used [-Wunused-but-set-variable] + 1937 | FILE *ipc_file = NULL; + | ^~~~~~~~ +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; + | ^ +In file included from /usr/include/glib-2.0/gobject/gobject.h:30: +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:519:73: note: in definition of macro 'g_signal_connect' + 519 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) + | ^~~~ +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-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_restore_image_from_file': +xsane-preview.c:2482:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 2482 | fgets(buf, sizeof(buf), in); /* skip newline character. this made a lot of problems in the past, so I skip it this way */ + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-front-gtk.c: In function 'xsane_set_all_resolutions': xsane-front-gtk.c:351:6: warning: variable 'printer_resolution' set but not used [-Wunused-but-set-variable] 351 | int printer_resolution; @@ -2993,15 +3261,32 @@ /usr/include/glib-2.0/gobject/gsignal.h:519:73: note: in definition of macro 'g_signal_connect' 519 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ -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-batch-scan.c: In function 'xsane_batch_scan_update_label': 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-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-front-gtk.c: In function 'xsane_outputfilename_new': +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:964, + from xsane.h:47: +In function 'snprintf', + inlined from 'xsane_batch_scan_update_label' at xsane-batch-scan.c:660:3: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 6 and 600 bytes into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ xsane-front-gtk.c:1538:134: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1538 | g_signal_connect(GTK_OBJECT(xsane_filename_counter_step_item), "activate", (GtkSignalFunc) xsane_filename_counter_step_callback, (void *) j); | ^ @@ -3033,75 +3318,31 @@ 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; | ^ -In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, - from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtk.h:126: -/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] - 73 | GTimeVal last_popdown; - | ^~~~~~~~ -In file included from /usr/include/glib-2.0/glib/galloca.h:34, - from /usr/include/glib-2.0/glib.h:32, - from /usr/include/glib-2.0/gobject/gbinding.h:30: -/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here - 580 | struct _GTimeVal - | ^~~~~~~~~ -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:964, - from xsane.h:47: -In function 'snprintf', - inlined from 'xsane_batch_scan_update_label' at xsane-batch-scan.c:660:3: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 6 and 600 bytes into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-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; - | ^ -In file included from /usr/include/glib-2.0/gobject/gobject.h:30: -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:519:73: note: in definition of macro 'g_signal_connect' - 519 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) - | ^~~~ xsane-fax-project.c: In function 'xsane_fax_entry_rename_button_callback': 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-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-fax-project.c: In function 'xsane_fax_send': xsane-fax-project.c:1295:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] 1295 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ +xsane-fax-project.c: In function 'xsane_fax_show_callback': +xsane-fax-project.c:1069:9: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] + 1069 | setuid(getuid()); + | ^~~~~~~~~~~~~~~~ +xsane-fax-project.c: In function 'xsane_fax_entry_insert_callback': +xsane-fax-project.c:903:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 903 | fgets(buf, sizeof(buf), sourcefile); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +xsane-fax-project.c:944:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 944 | fgets(buf, sizeof(buf), sourcefile); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +xsane-viewer.c:281:5: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] + 281 | strncpy(outputfilename, preferences.filename, sizeof(outputfilename)); + | ^ +xsane-viewer.c:277:5: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] + 277 | strncpy(outputfilename, v->output_filename, sizeof(outputfilename)); + | ^ xsane-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)); @@ -3115,181 +3356,22 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -xsane-fax-project.c: In function 'xsane_fax_show_callback': -xsane-fax-project.c:1069:9: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 1069 | setuid(getuid()); - | ^~~~~~~~~~~~~~~~ -xsane-fax-project.c: In function 'xsane_fax_entry_insert_callback': -xsane-fax-project.c:903:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 903 | fgets(buf, sizeof(buf), sourcefile); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -xsane-fax-project.c:944:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 944 | fgets(buf, sizeof(buf), sourcefile); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -xsane-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-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-preview.c: In function 'preview_preset_area_add_callback': 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-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-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-preview.c: In function 'preview_preset_area_delete_callback': -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; - | ^ -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-email-project.c: In function 'xsane_create_email': -xsane-viewer.c: In function 'xsane_viewer_scale_set_scale_value_and_adjustments': -xsane-email-project.c:1518:9: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] - 1518 | size_t bytes_written; - | ^~~~~~~~~~~~~ -xsane-preview.c: In function 'preview_preset_area_move_up_callback': -xsane-viewer.c:509:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 509 | image_width = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_width"); - | ^ -xsane-viewer.c:510:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 510 | image_height = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_height"); - | ^ -xsane-viewer.c: In function 'xsane_viewer_scale_set_size_x_value_and_adjustments': -xsane-viewer.c:532:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 532 | image_width = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_width"); - | ^ -xsane-viewer.c:533:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 533 | image_height = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_height"); - | ^ -xsane-viewer.c:530:19: warning: variable 'image_height' set but not used [-Wunused-but-set-variable] - 530 | int image_width, image_height; - | ^~~~~~~~~~~~ -xsane-viewer.c: In function 'xsane_viewer_scale_set_size_y_value_and_adjustments': -xsane-viewer.c:556:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 556 | image_width = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_width"); - | ^ -xsane-viewer.c:557:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 557 | image_height = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_height"); - | ^ -xsane-email-project.c: In function 'xsane_email_send': -xsane-viewer.c:554:6: warning: variable 'image_width' set but not used [-Wunused-but-set-variable] - 554 | int image_width, image_height; - | ^~~~~~~~~~~ -xsane-email-project.c:1937:10: warning: variable 'ipc_file' set but not used [-Wunused-but-set-variable] - 1937 | FILE *ipc_file = NULL; - | ^~~~~~~~ -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-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); - | ^ -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-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); - | ^ -xsane-viewer.c:726:78: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 726 | gtk_object_set_data(GTK_OBJECT(adjustment_size_x), "image_height", (void *) image_info.image_height); - | ^ -xsane-viewer.c:730:78: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 730 | gtk_object_set_data(GTK_OBJECT(adjustment_size_y), "image_width", (void *) image_info.image_width); - | ^ -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); - | ^ -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-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); - | ^ -xsane-viewer.c:770:78: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 770 | gtk_object_set_data(GTK_OBJECT(adjustment_size_x), "image_width", (void *) image_info.image_width); - | ^ -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-viewer.c:771:78: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 771 | gtk_object_set_data(GTK_OBJECT(adjustment_size_x), "image_height", (void *) image_info.image_height); - | ^ -xsane-preview.c: In function 'preview_preset_area_move_down_callback': -xsane-viewer.c:805:73: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 805 | gtk_object_set_data(GTK_OBJECT(scaley_widget), "image_width", (void *) image_info.image_width); - | ^ -xsane-viewer.c:806:73: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 806 | gtk_object_set_data(GTK_OBJECT(scaley_widget), "image_height", (void *) image_info.image_height); - | ^ -xsane-viewer.c:809:78: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 809 | gtk_object_set_data(GTK_OBJECT(adjustment_size_y), "image_width", (void *) image_info.image_width); - | ^ -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-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-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-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_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-preview.c: In function 'preview_preset_area_callback': -xsane-viewer.c: In function 'xsane_viewer_zoom_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-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-preview.c: In function 'preview_rotation_callback': -xsane-viewer.c: In function 'xsane_viewer_set_cms_proofing_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-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"); - | ^ -xsane-viewer.c: In function 'xsane_viewer_set_cms_intent_callback': -xsane-viewer.c:1751:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 1751 | val = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); - | ^ -xsane-viewer.c: In function 'xsane_viewer_set_cms_proofing_intent_callback': -xsane-viewer.c:1777:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 1777 | val = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); - | ^ -xsane-viewer.c: In function 'xsane_viewer_set_cms_gamut_alarm_color_callback': -xsane-viewer.c:1809:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 1809 | val = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); - | ^ +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:964, + from xsane.h:47: +In function 'snprintf', + inlined from 'xsane_email_project_update_project_status' at xsane-email-project.c:899:3, + inlined from 'xsane_email_project_display_status' at xsane-email-project.c:559:9: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ xsane-fax-project.c: In function 'xsane_fax_project_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 */ @@ -3305,21 +3387,14 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -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; - | ^~~~ -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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xsane-0.999=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/pixman-1 -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/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-setup.c -xsane-viewer.c: In function 'xsane_viewer_read_image': -xsane-viewer.c:2206:6: warning: variable 'nread' set but not used [-Wunused-but-set-variable] - 2206 | int nread; - | ^~~~~ -xsane-batch-scan.c: In function 'xsane_batch_scan_load_list': -xsane-batch-scan.c:354:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] - 354 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, filename, strerror(errno)); - | ^~ ~~~~~~~~ +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:964, + from xsane.h:47: In function 'snprintf', - inlined from 'xsane_batch_scan_load_list' at xsane-batch-scan.c:354:7: + inlined from 'xsane_viewer_read_image.isra' at xsane-viewer.c:2312:7: /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3327,23 +3402,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -xsane-viewer.c: In function 'xsane_viewer_new': -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]); - | ^ -xsane-preview.c: In function 'preview_create_batch_icon_from_file': -xsane-preview.c:2126:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 2126 | fgets(buf, sizeof(buf), in); /* skip newline character. this made a lot of problems in the past, so I skip it this way */ - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -xsane-viewer.c: In function 'xsane_viewer_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-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 */ - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xsane-0.999=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/pixman-1 -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/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-save.c xsane-multipage-project.c: In function 'xsane_multipage_project_save': xsane-multipage-project.c:525:58: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] 525 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.multipage_status); /* fill 32 characters status line */ @@ -3372,6 +3430,47 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +xsane-email-project.c: In function 'xsane_email_project_save': +xsane-email-project.c:939:58: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] + 939 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.email_status); /* fill 32 characters status line */ + | ^ +In function 'snprintf', + inlined from 'xsane_email_project_save' at xsane-email-project.c:939:5: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +xsane-email-project.c: In function 'xsane_email_project_save': +xsane-email-project.c:928:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] + 928 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, filename); + | ^~ ~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_email_project_save' at xsane-email-project.c:928:5: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xsane-0.999=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/pixman-1 -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/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-setup.c +gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xsane-0.999=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/pixman-1 -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/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-save.c +xsane-batch-scan.c: In function 'xsane_batch_scan_load_list': +xsane-batch-scan.c:354:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] + 354 | snprintf(buf, sizeof(buf), "%s `%s': %s", ERR_OPEN_FAILED, filename, strerror(errno)); + | ^~ ~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_batch_scan_load_list' at xsane-batch-scan.c:354:7: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 + 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 55 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 56 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ xsane-fax-project.c: In function 'xsane_fax_send': xsane-fax-project.c: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); @@ -3436,7 +3535,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xsane-0.999=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/pixman-1 -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/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-scan.c 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); @@ -3489,47 +3587,36 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __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:964, - from xsane.h:47: +xsane-email-project.c: In function 'xsane_email_send': +xsane-email-project.c:1657:59: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 238 [-Wformat-truncation=] + 1657 | snprintf(buf, sizeof(buf), "

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

\r\n", content_id); + | ^~ ~~~~~~~~~~ +In function 'snprintf', + inlined from 'xsane_create_email' at xsane-email-project.c:1686:9, + inlined from 'xsane_email_send_process' at xsane-email-project.c:1854:3, + inlined from 'xsane_email_send' at xsane-email-project.c:1950:5: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 22 and 276 bytes into a destination of size 255 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, - from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, - from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, - from /usr/include/gtk-2.0/gtk/gtkbin.h:35, - from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, - from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, - from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, - from /usr/include/gtk-2.0/gtk/gtk.h:33, - from xsane.h:70, - from xsane-setup.c:25: -/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] - 236 | void gtk_type_init (GTypeDebugFlags debug_flags); - | ^~~~ -In file included from /usr/include/glib-2.0/gobject/gobject.h:26, - from /usr/include/glib-2.0/gobject/gbinding.h:31, - from /usr/include/glib-2.0/glib-object.h:24, - from /usr/include/glib-2.0/gio/gioenums.h:30, - from /usr/include/glib-2.0/gio/giotypes.h:30, - from /usr/include/glib-2.0/gio/gio.h:28, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69: -/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here - 725 | { - | ^ 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 */ @@ -3556,40 +3643,13 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xsane-0.999=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/pixman-1 -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/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-icons.c -In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, - from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtk.h:126: -/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] - 73 | GTimeVal last_popdown; - | ^~~~~~~~ -In file included from /usr/include/glib-2.0/glib/galloca.h:34, - from /usr/include/glib-2.0/glib.h:32, - from /usr/include/glib-2.0/gobject/gbinding.h:30: -/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here - 580 | struct _GTimeVal - | ^~~~~~~~~ -xsane-email-project.c: In function 'xsane_email_project_save': -xsane-email-project.c:939:58: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] - 939 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.email_status); /* fill 32 characters status line */ - | ^ -In function 'snprintf', - inlined from 'xsane_email_project_save' at xsane-email-project.c:939:5: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 33 or more bytes into a destination of size 32 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-email-project.c: In function 'xsane_email_project_save': -xsane-email-project.c:928:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 253 [-Wformat-truncation=] - 928 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, filename); - | ^~ ~~~~~~~~ +xsane-fax-project.c: In function 'xsane_fax_entry_insert_callback': +xsane-fax-project.c:931:45: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 1022 [-Wformat-truncation=] + 931 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, destpath); + | ^~ ~~~~~~~~ In function 'snprintf', - inlined from 'xsane_email_project_save' at xsane-email-project.c:928:5: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 255 + inlined from 'xsane_fax_entry_insert_callback' at xsane-fax-project.c:931:11: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 1024 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, @@ -3605,7 +3665,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-save.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); | ^~~~ @@ -3621,26 +3681,47 @@ /usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here 725 | { | ^ +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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xsane-0.999=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/pixman-1 -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/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-scan.c +gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xsane-0.999=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/pixman-1 -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/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane-icons.c gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/locale -I. -I. -I../include -I../include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane/xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xsane-0.999=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/pixman-1 -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/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread xsane.c -xsane-fax-project.c: In function 'xsane_fax_entry_insert_callback': -xsane-fax-project.c:931:45: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 1022 [-Wformat-truncation=] - 931 | snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, destpath); - | ^~ ~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_fax_entry_insert_callback' at xsane-fax-project.c:931:11: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4099) into a destination of size 1024 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-viewer.c:281:5: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] - 281 | strncpy(outputfilename, preferences.filename, sizeof(outputfilename)); - | ^ -xsane-viewer.c:277:5: warning: '__builtin_strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] - 277 | strncpy(outputfilename, v->output_filename, sizeof(outputfilename)); - | ^ +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:26, + from /usr/include/glib-2.0/gobject/gbinding.h:31, + from /usr/include/glib-2.0/glib-object.h:24, + from /usr/include/glib-2.0/gio/gioenums.h:30, + from /usr/include/glib-2.0/gio/giotypes.h:30, + from /usr/include/glib-2.0/gio/gio.h:28, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69: +/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here + 725 | { + | ^ +In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, + from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtk.h:126: +/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] + 73 | GTimeVal last_popdown; + | ^~~~~~~~ +In file included from /usr/include/glib-2.0/glib/galloca.h:34, + from /usr/include/glib-2.0/glib.h:32, + from /usr/include/glib-2.0/gobject/gbinding.h:30: +/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here + 580 | 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, @@ -3654,26 +3735,10 @@ /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ -xsane-email-project.c: In function 'xsane_email_send': xsane-setup.c: In function 'xsane_setup_printer_callback': -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-setup.c:312:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 312 | preferences.printernr = (int) data; | ^ -In function 'snprintf', - inlined from 'xsane_create_email' at xsane-email-project.c:1657:13, - inlined from 'xsane_email_send_process' at xsane-email-project.c:1854:3, - inlined from 'xsane_email_send' at xsane-email-project.c:1950:5: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 22 and 276 bytes into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -xsane-email-project.c: In function 'xsane_email_send': In file included from /usr/include/glib-2.0/gobject/gobject.h:30: 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] @@ -3682,20 +3747,6 @@ /usr/include/glib-2.0/gobject/gsignal.h:519:73: note: in definition of macro 'g_signal_connect' 519 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ -xsane-email-project.c:1686:55: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 238 [-Wformat-truncation=] - 1686 | snprintf(buf, sizeof(buf), "

\r\n", content_id); - | ^~ ~~~~~~~~~~ -In function 'snprintf', - inlined from 'xsane_create_email' at xsane-email-project.c:1686:9, - inlined from 'xsane_email_send_process' at xsane-email-project.c:1854:3, - inlined from 'xsane_email_send' at xsane-email-project.c:1950:5: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 22 and 276 bytes into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ xsane-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; @@ -3790,31 +3841,6 @@ /usr/include/glib-2.0/gobject/gsignal.h:519:73: note: in definition of macro 'g_signal_connect' 519 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ -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-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:26, - from /usr/include/glib-2.0/gobject/gbinding.h:31, - from /usr/include/glib-2.0/glib-object.h:24, - from /usr/include/glib-2.0/gio/gioenums.h:30, - from /usr/include/glib-2.0/gio/giotypes.h:30, - from /usr/include/glib-2.0/gio/gio.h:28, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69: -/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here - 725 | { - | ^ xsane-setup.c:3364:22: warning: variable 'status' set but not used [-Wunused-but-set-variable] 3364 | SANE_Status status; | ^~~~~~ @@ -3824,21 +3850,6 @@ /usr/include/glib-2.0/gobject/gsignal.h:519:73: note: in definition of macro 'g_signal_connect' 519 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ -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:964, - from xsane.h:47: -In function 'snprintf', - inlined from 'xsane_viewer_read_image.isra' at xsane-viewer.c:2312:7: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 255 - 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 55 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 56 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ xsane-save.c: In function 'xsane_read_pnm_header': xsane-save.c:428:6: warning: variable 'items_done' set but not used [-Wunused-but-set-variable] 428 | int items_done; @@ -3847,19 +3858,6 @@ xsane-save.c:1050:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 1050 | size_t bytes_read; | ^~~~~~~~~~ -In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, - from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtk.h:126: -/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] - 73 | GTimeVal last_popdown; - | ^~~~~~~~ -In file included from /usr/include/glib-2.0/glib/galloca.h:34, - from /usr/include/glib-2.0/glib.h:32, - from /usr/include/glib-2.0/gobject/gbinding.h:30: -/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here - 580 | struct _GTimeVal - | ^~~~~~~~~ xsane-save.c: In function 'xsane_save_despeckle_image': xsane-save.c:1349:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 1349 | size_t bytes_read; @@ -3884,6 +3882,31 @@ 3104 | size_t bytes_read; | ^~~~~~~~~~ xsane-save.c: In function 'xsane_save_ps_pdf_color': +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-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:26, + from /usr/include/glib-2.0/gobject/gbinding.h:31, + from /usr/include/glib-2.0/glib-object.h:24, + from /usr/include/glib-2.0/gio/gioenums.h:30, + from /usr/include/glib-2.0/gio/giotypes.h:30, + from /usr/include/glib-2.0/gio/gio.h:28, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69: +/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here + 725 | { + | ^ xsane-save.c:3355:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 3355 | size_t bytes_read; | ^~~~~~~~~~ @@ -3922,6 +3945,31 @@ 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/gtk-2.0/gtk/gtkobject.h:37, + from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, + from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, + from /usr/include/gtk-2.0/gtk/gtkbin.h:35, + from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, + from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, + from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, + from /usr/include/gtk-2.0/gtk/gtk.h:33, + from xsane.h:70, + from xsane.c:25: +/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] + 236 | void gtk_type_init (GTypeDebugFlags debug_flags); + | ^~~~ +In file included from /usr/include/glib-2.0/gobject/gobject.h:26, + from /usr/include/glib-2.0/gobject/gbinding.h:31, + from /usr/include/glib-2.0/glib-object.h:24, + from /usr/include/glib-2.0/gio/gioenums.h:30, + from /usr/include/glib-2.0/gio/giotypes.h:30, + from /usr/include/glib-2.0/gio/gio.h:28, + from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, + from /usr/include/gtk-2.0/gdk/gdk.h:32, + from xsane.h:69: +/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here + 725 | { + | ^ 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; @@ -3993,6 +4041,19 @@ /usr/include/gimp-2.0/libgimp/gimppixelrgn.h:104:11: note: declared here 104 | void gimp_pixel_rgn_set_rect (GimpPixelRgn *pr, | ^~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, + from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtk.h:126: +/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] + 73 | GTimeVal last_popdown; + | ^~~~~~~~ +In file included from /usr/include/glib-2.0/glib/galloca.h:34, + from /usr/include/glib-2.0/glib.h:32, + from /usr/include/glib-2.0/gobject/gbinding.h:30: +/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here + 580 | struct _GTimeVal + | ^~~~~~~~~ xsane-save.c:7063:13: warning: 'gimp_pixel_rgn_set_rect' is deprecated: Use 'gegl_buffer_set' instead [-Wdeprecated-declarations] 7063 | gimp_pixel_rgn_set_rect(®ion, tile, 0, y - tile_height, image_info.image_width, tile_height); | ^~~~~~~~~~~~~~~~~~~~~~~ @@ -4041,6 +4102,19 @@ 7299 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_base64': +In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, + from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, + from /usr/include/gtk-2.0/gtk/gtk.h:126: +/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] + 73 | GTimeVal last_popdown; + | ^~~~~~~~ +In file included from /usr/include/glib-2.0/glib/galloca.h:34, + from /usr/include/glib-2.0/glib.h:32, + from /usr/include/glib-2.0/gobject/gbinding.h:30: +/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here + 580 | struct _GTimeVal + | ^~~~~~~~~ xsane-save.c:7334:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7334 | ssize_t bytes_written; | ^~~~~~~~~~~~~ @@ -4060,19 +4134,11 @@ xsane-save.c:7454:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7454 | ssize_t bytes_written; | ^~~~~~~~~~~~~ -xsane-scan.c: In function 'xsane_read_image_data': xsane-save.c: In function 'write_email_attach_image': -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:7480:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7480 | ssize_t bytes_written; | ^~~~~~~~~~~~~ xsane-save.c: In function 'write_email_attach_file': -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-save.c:7514:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7514 | ssize_t bytes_written; | ^~~~~~~~~~~~~ @@ -4092,9 +4158,6 @@ xsane-save.c:7916:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7916 | ssize_t bytes_written; | ^~~~~~~~~~~~~ -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_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); @@ -4109,50 +4172,17 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, - from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, - from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, - from /usr/include/gtk-2.0/gtk/gtkbin.h:35, - from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, - from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, - from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, - from /usr/include/gtk-2.0/gtk/gtk.h:33, - from xsane.h:70, - from xsane.c:25: -/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] - 236 | void gtk_type_init (GTypeDebugFlags debug_flags); - | ^~~~ -In file included from /usr/include/glib-2.0/gobject/gobject.h:26, - from /usr/include/glib-2.0/gobject/gbinding.h:31, - from /usr/include/glib-2.0/glib-object.h:24, - from /usr/include/glib-2.0/gio/gioenums.h:30, - from /usr/include/glib-2.0/gio/giotypes.h:30, - from /usr/include/glib-2.0/gio/gio.h:28, - from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, - from /usr/include/gtk-2.0/gdk/gdk.h:32, - from xsane.h:69: -/usr/include/glib-2.0/gobject/gtype.h:725:1: note: declared here - 725 | { - | ^ -In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, - from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, - from /usr/include/gtk-2.0/gtk/gtk.h:126: -/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] - 73 | GTimeVal last_popdown; - | ^~~~~~~~ -In file included from /usr/include/glib-2.0/glib/galloca.h:34, - from /usr/include/glib-2.0/glib.h:32, - from /usr/include/glib-2.0/gobject/gbinding.h:30: -/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here - 580 | struct _GTimeVal - | ^~~~~~~~~ -xsane-scan.c:1110:11: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] - 1110 | strncpy(image_info.icm_profile, xsane.scanner_default_color_icm_profile, sizeof(image_info.icm_profile)); - | ^ -xsane-scan.c:1103:11: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] - 1103 | strncpy(image_info.icm_profile, xsane.scanner_default_gray_icm_profile, sizeof(image_info.icm_profile)); - | ^ +xsane-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-scan.c:1286:11: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] + 1286 | getcwd(pathname, sizeof(pathname)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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; @@ -4255,24 +4285,45 @@ 5370 | xsane.selected_dev = (int) data; | ^ xsane.c: In function 'xsane_select_device_by_mouse_callback': -xsane-setup.c: In function 'xsane_setup_browse_tmp_path_callback': -xsane-setup.c:1531:3: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] - 1531 | strncpy(tmp_path, old_tmp_path, sizeof(tmp_path)); - | ^ xsane.c:5379:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 5379 | xsane.selected_dev = (int) data; | ^ -xsane-setup.c: In function 'xsane_setup_browse_printer_icm_profile_callback': -xsane-setup.c:1064:5: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] - 1064 | strncpy(printer_icm_profile, old_printer_icm_profile, sizeof(printer_icm_profile)); - | ^ +xsane-scan.c:1110:11: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] + 1110 | strncpy(image_info.icm_profile, xsane.scanner_default_color_icm_profile, sizeof(image_info.icm_profile)); + | ^ +xsane-scan.c:1103:11: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] + 1103 | strncpy(image_info.icm_profile, xsane.scanner_default_gray_icm_profile, sizeof(image_info.icm_profile)); + | ^ +xsane.c: In function 'xsane_pref_restore': +xsane.c:2004:5: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] + 2004 | chdir(preferences.working_directory); /* set working directory */ + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +xsane.c: In function 'xsane_show_doc': +xsane.c:3906:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] + 3906 | setuid(getuid()); + | ^~~~~~~~~~~~~~~~ +xsane.c: In function 'xsane_show_doc_via_nsr': +xsane.c:3743:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] + 3743 | setuid(getuid()); + | ^~~~~~~~~~~~~~~~ +xsane.c:3785:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] + 3785 | setuid(getuid()); + | ^~~~~~~~~~~~~~~~ +xsane-setup.c: In function 'xsane_setup_browse_tmp_path_callback': xsane-scan.c: In function 'xsane_start_scan': +xsane-setup.c:1531:3: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] + 1531 | strncpy(tmp_path, old_tmp_path, sizeof(tmp_path)); + | ^ xsane-scan.c:1807:9: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 1807 | strncpy(image_info.icm_profile, xsane.scanner_default_color_icm_profile, sizeof(image_info.icm_profile)); | ^ xsane-scan.c:1800:9: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 1800 | strncpy(image_info.icm_profile, xsane.scanner_default_gray_icm_profile, sizeof(image_info.icm_profile)); | ^ +xsane-setup.c: In function 'xsane_setup_browse_printer_icm_profile_callback': +xsane-setup.c:1064:5: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] + 1064 | strncpy(printer_icm_profile, old_printer_icm_profile, sizeof(printer_icm_profile)); + | ^ xsane-setup.c: In function 'xsane_setup_browse_working_color_space_icm_profile_callback': xsane-setup.c:1627:3: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 1627 | strncpy(working_color_space_icm_profile, old_working_color_space_icm_profile, sizeof(working_color_space_icm_profile)); @@ -4285,29 +4336,14 @@ xsane-setup.c:1589:3: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 1589 | strncpy(display_icm_profile, old_display_icm_profile, sizeof(display_icm_profile)); | ^ -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-setup.c: In function 'xsane_setup_browse_scanner_default_gray_icm_profile_callback': xsane-setup.c:1570:3: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 1570 | strncpy(scanner_default_gray_icm_profile, old_scanner_default_gray_icm_profile, sizeof(scanner_default_gray_icm_profile)); | ^ -xsane.c: In function 'xsane_show_doc': xsane-setup.c: In function 'xsane_setup_browse_scanner_default_color_icm_profile_callback': xsane-setup.c:1551:3: warning: '__builtin_strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 1551 | strncpy(scanner_default_color_icm_profile, old_scanner_default_color_icm_profile, sizeof(scanner_default_color_icm_profile)); | ^ -xsane.c:3906:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 3906 | setuid(getuid()); - | ^~~~~~~~~~~~~~~~ -xsane.c: In function 'xsane_show_doc_via_nsr': -xsane.c:3743:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 3743 | setuid(getuid()); - | ^~~~~~~~~~~~~~~~ -xsane.c:3785:7: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 3785 | setuid(getuid()); - | ^~~~~~~~~~~~~~~~ xsane-save.c: In function 'xsane_create_cms_transform': xsane-save.c:889:44: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 251 [-Wformat-truncation=] 889 | snprintf(buf, sizeof(buf), "%s\n%s %s: %s\n", ERR_CMS_CONVERSION, ERR_CMS_OPEN_ICM_FILE, CMS_SCANNER_ICM, image_info->icm_profile); @@ -4451,8 +4487,8 @@ creating pt.gmo creating pt_BR.gmo creating ro.gmo -creating ru.gmo creating sk.gmo +creating ru.gmo creating sl.gmo creating sr.gmo creating sv.gmo @@ -4779,30 +4815,30 @@ dh_perl dh_link dh_strip_nondeterminism + Normalized debian/xsane-common/usr/share/locale/da/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/it/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/fr/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/ru/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/ja/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/sl/LC_MESSAGES/xsane.mo + 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/fi/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/ca/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/sv/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/es/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/ro/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/pt/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/it/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/pl/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/cs/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/sv/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/vi/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/sr/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/tr/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/zh/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/da/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/de/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/ru/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/zh_CN/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/es/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/pl/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/sk/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/nl/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/de/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/hu/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/ja/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/sl/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/vi/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/pt_BR/LC_MESSAGES/xsane.mo - Normalized debian/xsane-common/usr/share/locale/fr/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/pt/LC_MESSAGES/xsane.mo + Normalized debian/xsane-common/usr/share/locale/cs/LC_MESSAGES/xsane.mo Normalized debian/xsane-common/usr/share/locale/pa/LC_MESSAGES/xsane.mo debian/rules override_dh_compress make[1]: Entering directory '/build/reproducible-path/xsane-0.999' @@ -4818,9 +4854,9 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'xsane' in '../xsane_0.999-12_amd64.deb'. -dpkg-deb: building package 'xsane-common' in '../xsane-common_0.999-12_all.deb'. dpkg-deb: building package 'xsane-dbgsym' in '../xsane-dbgsym_0.999-12_amd64.deb'. +dpkg-deb: building package 'xsane-common' in '../xsane-common_0.999-12_all.deb'. +dpkg-deb: building package 'xsane' in '../xsane_0.999-12_amd64.deb'. dpkg-genbuildinfo --build=binary -O../xsane_0.999-12_amd64.buildinfo dpkg-genchanges --build=binary -O../xsane_0.999-12_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -4828,12 +4864,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/3644560/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3644560/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/4136131 and its subdirectories -I: Current time: Fri May 17 15:27:50 -12 2024 -I: pbuilder-time-stamp: 1716002870 +I: removing directory /srv/workspace/pbuilder/3644560 and its subdirectories +I: Current time: Fri Jun 20 23:53:34 +14 2025 +I: pbuilder-time-stamp: 1750413214