Diff of the two buildlogs: -- --- b1/build.log 2024-11-14 00:37:40.715393948 +0000 +++ b2/build.log 2024-11-14 00:41:13.719777151 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Nov 13 12:28:54 -12 2024 -I: pbuilder-time-stamp: 1731544134 +I: Current time: Wed Dec 17 21:00:42 +14 2025 +I: pbuilder-time-stamp: 1765954842 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -37,54 +37,86 @@ dpkg-source: info: applying 0007-fix-build-with-mupdf-0.23.0.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/32625/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/67388/tmp/hooks/D01_modify_environment starting +debug: Running on ionos6-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Dec 17 07:00 /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/67388/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/67388/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='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=11 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="32" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.32(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=21 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='4430bc4b84aa43849d705708bbc852e5' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='32625' - PS1='# ' - PS2='> ' + INVOCATION_ID=54983ea6021544eda263e884c1e7b31a + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=67388 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.18quwmcC/pbuilderrc_3LGQ --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.18quwmcC/b1 --logfile b1/build.log sioyek_2.0.0+dfsg-4.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.18quwmcC/pbuilderrc_1v3W --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.18quwmcC/b2 --logfile b2/build.log sioyek_2.0.0+dfsg-4.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos2-i386 6.1.0-27-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.115-1 (2024-11-01) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-27-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.115-1 (2024-11-01) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 4 21:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/32625/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 4 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/67388/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -478,7 +510,7 @@ Get: 319 http://deb.debian.org/debian unstable/main i386 qt3d5-dev i386 5.15.15+dfsg-3 [98.5 kB] Get: 320 http://deb.debian.org/debian unstable/main i386 texlive-pictures all 2024.20241102-1 [17.0 MB] Get: 321 http://deb.debian.org/debian unstable/main i386 texlive-latex-extra all 2024.20241102-1 [24.6 MB] -Fetched 308 MB in 17s (18.4 MB/s) +Fetched 308 MB in 8s (41.0 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package fonts-lato. (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 ... 19954 files and directories currently installed.) @@ -1513,8 +1545,8 @@ Setting up tzdata (2024b-3) ... Current default time zone: 'Etc/UTC' -Local time is now: Thu Nov 14 00:31:22 UTC 2024. -Universal Time is now: Thu Nov 14 00:31:22 UTC 2024. +Local time is now: Wed Dec 17 07:01:29 UTC 2025. +Universal Time is now: Wed Dec 17 07:01:29 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libxcb-present0:i386 (1.17.0-2+b1) ... @@ -1822,7 +1854,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/sioyek-2.0.0+dfsg/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../sioyek_2.0.0+dfsg-4_source.changes +I: user script /srv/workspace/pbuilder/67388/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/67388/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/sioyek-2.0.0+dfsg/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../sioyek_2.0.0+dfsg-4_source.changes dpkg-buildpackage: info: source package sioyek dpkg-buildpackage: info: source version 2.0.0+dfsg-4 dpkg-buildpackage: info: source distribution unstable @@ -1841,7 +1877,7 @@ qmake -makefile "QMAKE_CFLAGS_RELEASE=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CFLAGS_DEBUG=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CXXFLAGS_RELEASE=-g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CXXFLAGS_DEBUG=-g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_LFLAGS_RELEASE=-Wl,-z,relro -Wl,-z,now" "QMAKE_LFLAGS_DEBUG=-Wl,-z,relro -Wl,-z,now" QMAKE_STRIP=: PREFIX=/usr Info: creating stash file /build/reproducible-path/sioyek-2.0.0+dfsg/.qmake.stash dh_auto_build - make -j11 + make -j21 make[1]: Entering directory '/build/reproducible-path/sioyek-2.0.0+dfsg' g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o book.o pdf_viewer/book.cpp g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o config.o pdf_viewer/config.cpp @@ -1854,6 +1890,20 @@ g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o pdf_renderer.o pdf_viewer/pdf_renderer.cpp g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o pdf_view_opengl_widget.o pdf_viewer/pdf_view_opengl_widget.cpp g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o checksum.o pdf_viewer/checksum.cpp +g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o new_file_checker.o pdf_viewer/new_file_checker.cpp +g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o coordinates.o pdf_viewer/coordinates.cpp +g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o ui.o pdf_viewer/ui.cpp +g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o path.o pdf_viewer/path.cpp +g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o utils.o pdf_viewer/utils.cpp +g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o RunGuard.o pdf_viewer/RunGuard.cpp +g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o OpenWithApplication.o pdf_viewer/OpenWithApplication.cpp +g++ -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -dM -E -o moc_predefs.h /usr/lib/i386-linux-gnu/qt5/mkspecs/features/data/dummy.cpp +/usr/lib/qt5/bin/moc -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /build/reproducible-path/sioyek-2.0.0+dfsg/moc_predefs.h -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -I/build/reproducible-path/sioyek-2.0.0+dfsg -I/build/reproducible-path/sioyek-2.0.0+dfsg/pdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/c++/14 -I/usr/include/i386-linux-gnu/c++/14 -I/usr/include/c++/14/backward -I/usr/lib/gcc/i686-linux-gnu/14/include -I/usr/local/include -I/usr/include/i386-linux-gnu -I/usr/include pdf_viewer/pdf_renderer.h -o moc_pdf_renderer.cpp +/usr/lib/qt5/bin/moc -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /build/reproducible-path/sioyek-2.0.0+dfsg/moc_predefs.h -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -I/build/reproducible-path/sioyek-2.0.0+dfsg -I/build/reproducible-path/sioyek-2.0.0+dfsg/pdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/c++/14 -I/usr/include/i386-linux-gnu/c++/14 -I/usr/include/c++/14/backward -I/usr/lib/gcc/i686-linux-gnu/14/include -I/usr/local/include -I/usr/include/i386-linux-gnu -I/usr/include pdf_viewer/RunGuard.h -o moc_RunGuard.cpp +/usr/lib/qt5/bin/moc -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /build/reproducible-path/sioyek-2.0.0+dfsg/moc_predefs.h -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -I/build/reproducible-path/sioyek-2.0.0+dfsg -I/build/reproducible-path/sioyek-2.0.0+dfsg/pdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/c++/14 -I/usr/include/i386-linux-gnu/c++/14 -I/usr/include/c++/14/backward -I/usr/lib/gcc/i686-linux-gnu/14/include -I/usr/local/include -I/usr/include/i386-linux-gnu -I/usr/include pdf_viewer/OpenWithApplication.h -o moc_OpenWithApplication.cpp +g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o moc_RunGuard.o moc_RunGuard.cpp +g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o moc_pdf_renderer.o moc_pdf_renderer.cpp +g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o moc_OpenWithApplication.o moc_OpenWithApplication.cpp pdf_viewer/database.cpp:408:1: warning: multi-line comment [-Wcomment] 408 | // const char* insert_books_sql = ""\ | ^ @@ -1862,14 +1912,15 @@ | ^ In file included from pdf_viewer/utf8.h:31, from pdf_viewer/utils.h:21, - from pdf_viewer/pdf_renderer.cpp:2: + from pdf_viewer/path.h:5, + from pdf_viewer/config.h:9, + from pdf_viewer/config.cpp:1: pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 268 | class iterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:65, from /usr/include/c++/14/vector:62, - from pdf_viewer/pdf_renderer.h:3, - from pdf_viewer/pdf_renderer.cpp:1: + from pdf_viewer/config.h:3: /usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -1880,18 +1931,71 @@ /usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ +pdf_viewer/config.cpp: In constructor 'ConfigManager::ConfigManager(const Path&, const Path&, const std::vector&)': +pdf_viewer/config.cpp:294:14: warning: unused variable 'vec3_deserializer' [-Wunused-variable] + 294 | auto vec3_deserializer = vec_n_deserializer<3, float>; + | ^~~~~~~~~~~~~~~~~ +pdf_viewer/config.cpp:295:14: warning: unused variable 'vec4_deserializer' [-Wunused-variable] + 295 | auto vec4_deserializer = vec_n_deserializer<4, float>; + | ^~~~~~~~~~~~~~~~~ In file included from pdf_viewer/utf8.h:31, from pdf_viewer/utils.h:21, from pdf_viewer/database.h:9, from pdf_viewer/document.h:22, from pdf_viewer/document_view.h:22, - from pdf_viewer/document_view.cpp:1: + from pdf_viewer/main_widget.h:17, + from pdf_viewer/new_file_checker.h:3, + from pdf_viewer/new_file_checker.cpp:1: +pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 268 | class iterator : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/14/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/14/string:47, + from pdf_viewer/main_widget.h:3: +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from pdf_viewer/utf8.h:32: +pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 179 | class iterator : public std::iterator { + | ^~~~~~~~ +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from pdf_viewer/utf8.h:31, + from pdf_viewer/utils.h:21, + from pdf_viewer/pdf_renderer.cpp:2: pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 268 | class iterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:65, from /usr/include/c++/14/vector:62, - from pdf_viewer/document_view.h:3: + from pdf_viewer/pdf_renderer.h:3, + from pdf_viewer/pdf_renderer.cpp:1: +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from pdf_viewer/utf8.h:32: +pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 179 | class iterator : public std::iterator { + | ^~~~~~~~ +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from pdf_viewer/utf8.h:31, + from pdf_viewer/utils.h:21, + from pdf_viewer/path.h:5, + from pdf_viewer/path.cpp:2: +pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 268 | class iterator : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/14/bits/stl_algobase.h:65, + from /usr/include/c++/14/algorithm:60, + from /usr/include/i386-linux-gnu/qt5/QtCore/qglobal.h:142, + from /usr/include/i386-linux-gnu/qt5/QtCore/qchar.h:43, + from /usr/include/i386-linux-gnu/qt5/QtCore/qstring.h:49, + from /usr/include/i386-linux-gnu/qt5/QtCore/qdir.h:43, + from pdf_viewer/path.cpp:1: /usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -1902,6 +2006,11 @@ /usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ +pdf_viewer/path.cpp: In member function 'std::string Path::get_path_utf8() const': +pdf_viewer/path.cpp:56:25: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] + 56 | return std::move(utf8_encode(get_path())); + | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ +pdf_viewer/path.cpp:56:25: note: remove 'std::move' call In file included from pdf_viewer/utf8.h:31, from pdf_viewer/utils.h:21, from pdf_viewer/database.h:9, @@ -1927,6 +2036,77 @@ /usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ +In file included from pdf_viewer/utf8.h:31, + from pdf_viewer/utils.h:21, + from pdf_viewer/input.h:12, + from pdf_viewer/input.cpp:10: +pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 268 | class iterator : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/14/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/14/string:47, + from /usr/include/c++/14/bits/locale_classes.h:40, + from /usr/include/c++/14/bits/ios_base.h:41, + from /usr/include/c++/14/ios:44, + from /usr/include/c++/14/ostream:40, + from /usr/include/c++/14/iostream:41, + from pdf_viewer/input.cpp:1: +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from pdf_viewer/utf8.h:32: +pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 179 | class iterator : public std::iterator { + | ^~~~~~~~ +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from pdf_viewer/utf8.h:31, + from pdf_viewer/utils.h:21, + from pdf_viewer/database.h:9, + from pdf_viewer/document.h:22, + from pdf_viewer/document.cpp:1: +pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 268 | class iterator : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/14/bits/stl_algobase.h:65, + from /usr/include/c++/14/vector:62, + from pdf_viewer/document.h:2: +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from pdf_viewer/utf8.h:32: +pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 179 | class iterator : public std::iterator { + | ^~~~~~~~ +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from pdf_viewer/utf8.h:31, + from pdf_viewer/utils.h:21, + from pdf_viewer/input.h:12, + from pdf_viewer/main_widget.cpp:38: +pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 268 | class iterator : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/14/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/14/string:47, + from /usr/include/c++/14/bits/locale_classes.h:40, + from /usr/include/c++/14/bits/ios_base.h:41, + from /usr/include/c++/14/ios:44, + from /usr/include/c++/14/ostream:40, + from /usr/include/c++/14/iostream:41, + from pdf_viewer/main_widget.cpp:2: +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from pdf_viewer/utf8.h:32: +pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 179 | class iterator : public std::iterator { + | ^~~~~~~~ +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ pdf_viewer/database.cpp: In function 'int null_callback(void*, int, char**, char**)': pdf_viewer/database.cpp:30:32: warning: unused parameter 'notused' [-Wunused-parameter] 30 | static int null_callback(void* notused, int argc, char** argv, char** col_name) { @@ -1948,10 +2128,37 @@ pdf_viewer/database.cpp:49:78: warning: unused parameter 'col_name' [-Wunused-parameter] 49 | static int prev_doc_callback(void* res_vector, int argc, char** argv, char** col_name) { | ~~~~~~~^~~~~~~~ +pdf_viewer/input.cpp: In constructor 'CommandManager::CommandManager(ConfigManager*)': +pdf_viewer/input.cpp:176:35: warning: missing initializer for member 'Command::special_symbols' [-Wmissing-field-initializers] + 176 | commands.push_back({ utf8_encode(command_name) , false, false, false, false, true}); + | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pdf_viewer/input.cpp:180:35: warning: missing initializer for member 'Command::special_symbols' [-Wmissing-field-initializers] + 180 | commands.push_back({ utf8_encode(command_name) , false, false, false, false, true}); + | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pdf_viewer/database.cpp: In function 'int mark_select_callback(void*, int, char**, char**)': pdf_viewer/database.cpp:60:81: warning: unused parameter 'col_name' [-Wunused-parameter] 60 | static int mark_select_callback(void* res_vector, int argc, char** argv, char** col_name) { | ~~~~~~~^~~~~~~~ +In file included from pdf_viewer/utf8.h:31, + from pdf_viewer/utils.h:21, + from pdf_viewer/utils.cpp:6: +pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 268 | class iterator : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/14/bits/stl_algobase.h:65, + from /usr/include/c++/14/bits/specfun.h:43, + from /usr/include/c++/14/cmath:3898, + from pdf_viewer/utils.cpp:4: +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from pdf_viewer/utf8.h:32: +pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 179 | class iterator : public std::iterator { + | ^~~~~~~~ +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ pdf_viewer/database.cpp: In function 'int global_mark_select_callback(void*, int, char**, char**)': pdf_viewer/database.cpp:72:88: warning: unused parameter 'col_name' [-Wunused-parameter] 72 | static int global_mark_select_callback(void* res_vector, int argc, char** argv, char** col_name) { @@ -1990,135 +2197,16 @@ | ~~~~~~~^~~~~~~~ In file included from pdf_viewer/utf8.h:31, from pdf_viewer/utils.h:21, - from pdf_viewer/path.h:5, - from pdf_viewer/config.h:9, - from pdf_viewer/config.cpp:1: -pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 268 | class iterator : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/14/bits/stl_algobase.h:65, - from /usr/include/c++/14/vector:62, - from pdf_viewer/config.h:3: -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -In file included from pdf_viewer/utf8.h:32: -pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 179 | class iterator : public std::iterator { - | ^~~~~~~~ -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -In file included from pdf_viewer/utf8.h:31, - from pdf_viewer/utils.h:21, - from pdf_viewer/input.h:12, - from pdf_viewer/input.cpp:10: -pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 268 | class iterator : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/14/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/14/string:47, - from /usr/include/c++/14/bits/locale_classes.h:40, - from /usr/include/c++/14/bits/ios_base.h:41, - from /usr/include/c++/14/ios:44, - from /usr/include/c++/14/ostream:40, - from /usr/include/c++/14/iostream:41, - from pdf_viewer/input.cpp:1: -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -In file included from pdf_viewer/utf8.h:32: -pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 179 | class iterator : public std::iterator { - | ^~~~~~~~ -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -pdf_viewer/input.cpp: In constructor 'CommandManager::CommandManager(ConfigManager*)': -pdf_viewer/input.cpp:176:35: warning: missing initializer for member 'Command::special_symbols' [-Wmissing-field-initializers] - 176 | commands.push_back({ utf8_encode(command_name) , false, false, false, false, true}); - | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pdf_viewer/input.cpp:180:35: warning: missing initializer for member 'Command::special_symbols' [-Wmissing-field-initializers] - 180 | commands.push_back({ utf8_encode(command_name) , false, false, false, false, true}); - | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o new_file_checker.o pdf_viewer/new_file_checker.cpp -pdf_viewer/config.cpp: In constructor 'ConfigManager::ConfigManager(const Path&, const Path&, const std::vector&)': -pdf_viewer/config.cpp:294:14: warning: unused variable 'vec3_deserializer' [-Wunused-variable] - 294 | auto vec3_deserializer = vec_n_deserializer<3, float>; - | ^~~~~~~~~~~~~~~~~ -pdf_viewer/config.cpp:295:14: warning: unused variable 'vec4_deserializer' [-Wunused-variable] - 295 | auto vec4_deserializer = vec_n_deserializer<4, float>; - | ^~~~~~~~~~~~~~~~~ -pdf_viewer/database.cpp: In member function 'void DatabaseManager::import_json(std::wstring, CachedChecksummer*)': -pdf_viewer/database.cpp:1102:43: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] - 1102 | auto bookmarks = std::move(load_from_json_array(current_json_doc["bookmarks"].toArray())); - | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pdf_viewer/database.cpp:1102:43: note: remove 'std::move' call -g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o coordinates.o pdf_viewer/coordinates.cpp -In file included from pdf_viewer/utf8.h:31, - from pdf_viewer/utils.h:21, from pdf_viewer/database.h:9, from pdf_viewer/document.h:22, - from pdf_viewer/document.cpp:1: + from pdf_viewer/document_view.h:22, + from pdf_viewer/document_view.cpp:1: pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 268 | class iterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:65, from /usr/include/c++/14/vector:62, - from pdf_viewer/document.h:2: -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -In file included from pdf_viewer/utf8.h:32: -pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 179 | class iterator : public std::iterator { - | ^~~~~~~~ -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -pdf_viewer/document_view.cpp: In member function 'std::optional DocumentView::find_closest_bookmark()': -pdf_viewer/document_view.cpp:149:62: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] - 149 | if ((bookmark_index >= 0) && (bookmark_index < bookmarks.size())) { - | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o ui.o pdf_viewer/ui.cpp -pdf_viewer/document_view.cpp: In member function 'int DocumentView::get_line_index_of_pos(DocumentPos)': -pdf_viewer/document_view.cpp:1068:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] - 1068 | for (int i = 0; i < rects.size(); i++) { - | ~~^~~~~~~~~~~~~~ -pdf_viewer/document_view.cpp:1071:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] - 1071 | for (int i = 0; i < rects.size(); i++) { - | ~~^~~~~~~~~~~~~~ -pdf_viewer/document_view.cpp:1066:13: warning: unused variable 'page_width' [-Wunused-variable] - 1066 | int page_width = current_document->get_page_width(line_doc_pos.page); - | ^~~~~~~~~~ -pdf_viewer/document_view.cpp: In member function 'std::vector DocumentView::find_line_definitions()': -pdf_viewer/document_view.cpp:1110:49: warning: unknown escape sequence: '\.' - 1110 | std::wstring item_regex(L"[a-zA-Z]{2,}[ \t]+[0-9]+(\.[0-9]+)*"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pdf_viewer/document_view.cpp:1159:49: warning: comparison of integer expressions of different signedness: 'std::vector::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] - 1159 | if (vec->size() > max_size) { - | ~~~~~~~~~~~~^~~~~~~~~~ -pdf_viewer/document_view.cpp:1166:47: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] - 1166 | if (i < vec->size()) { - | ~~^~~~~~~~~~~~~ -pdf_viewer/document_view.cpp:1155:29: warning: unused variable 'index' [-Wunused-variable] - 1155 | int index = 0; - | ^~~~~ -In file included from pdf_viewer/utf8.h:31, - from pdf_viewer/utils.h:21, - from pdf_viewer/input.h:12, - from pdf_viewer/main.cpp:53: -pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 268 | class iterator : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/14/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/14/string:47, - from /usr/include/c++/14/bits/locale_classes.h:40, - from /usr/include/c++/14/bits/ios_base.h:41, - from /usr/include/c++/14/ios:44, - from /usr/include/c++/14/ostream:40, - from /usr/include/c++/14/iostream:41, - from pdf_viewer/main.cpp:1: + from pdf_viewer/document_view.h:3: /usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -2129,14 +2217,25 @@ /usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ +pdf_viewer/utils.cpp: In function 'void install_app(const char*)': +pdf_viewer/utils.cpp:175:30: warning: unused parameter 'argv0' [-Wunused-parameter] + 175 | void install_app(const char *argv0) + | ~~~~~~~~~~~~^~~~~ pdf_viewer/document.cpp: In member function 'void Document::delete_highlight(Highlight)': pdf_viewer/document.cpp:195:50: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits] 195 | for (size_t i = (highlights.size()-1); i >= 0; i--) { | ~~^~~~ -pdf_viewer/database.cpp: At global scope: -pdf_viewer/database.cpp:149:12: warning: 'int string_select_callback(void*, int, char**, char**)' defined but not used [-Wunused-function] - 149 | static int string_select_callback(void* res_vector, int argc, char** argv, char** col_name) { - | ^~~~~~~~~~~~~~~~~~~~~~ +pdf_viewer/utils.cpp: In lambda function: +pdf_viewer/utils.cpp:845:94: warning: unused parameter 'error' [-Wunused-parameter] + 845 | QObject::connect(process, &QProcess::errorOccurred, [process](QProcess::ProcessError error) { + | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ +pdf_viewer/utils.cpp: In lambda function: +pdf_viewer/utils.cpp:850:109: warning: unused parameter 'exit_code' [-Wunused-parameter] + 850 | QObject::connect(process, qOverload(&QProcess::finished), [process](int exit_code, QProcess::ExitStatus stat) { + | ~~~~^~~~~~~~~ +pdf_viewer/utils.cpp:850:141: warning: unused parameter 'stat' [-Wunused-parameter] + 850 | QObject::connect(process, qOverload(&QProcess::finished), [process](int exit_code, QProcess::ExitStatus stat) { + | ~~~~~~~~~~~~~~~~~~~~~^~~~ pdf_viewer/document.cpp: In member function 'float Document::get_page_height(int)': pdf_viewer/document.cpp:360:46: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] 360 | if ((page_index >= 0) && (page_index < page_heights.size())) { @@ -2149,78 +2248,78 @@ pdf_viewer/document.cpp:449:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] 449 | if (page_index < 0 || (page_index >= accum_page_heights.size())) { | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pdf_viewer/utils.cpp: In function 'void index_generic(const std::vector&, int, std::vector&)': +pdf_viewer/utils.cpp:1059:37: warning: unknown escape sequence: '\.' + 1059 | std::wregex index_dst_regex(L"(^|\n)[A-Z][a-zA-Z]{2,}[ \t]+[0-9]+(\.[0-9]+)*"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pdf_viewer/document.cpp: In member function 'fz_rect Document::get_page_absolute_rect(int)': pdf_viewer/document.cpp:760:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] 760 | if (page >= page_widths.size()) { | ~~~~~^~~~~~~~~~~~~~~~~~~~~ -In file included from pdf_viewer/utf8.h:31, - from pdf_viewer/utils.h:21, - from pdf_viewer/input.h:12, - from pdf_viewer/main_widget.cpp:38: -pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 268 | class iterator : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/14/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/14/string:47, - from /usr/include/c++/14/bits/locale_classes.h:40, - from /usr/include/c++/14/bits/ios_base.h:41, - from /usr/include/c++/14/ios:44, - from /usr/include/c++/14/ostream:40, - from /usr/include/c++/14/iostream:41, - from pdf_viewer/main_widget.cpp:2: -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -In file included from pdf_viewer/utf8.h:32: -pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 179 | class iterator : public std::iterator { - | ^~~~~~~~ -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ pdf_viewer/document.cpp: In member function 'DocumentPos Document::absolute_to_page_pos(AbsoluteDocumentPos)': pdf_viewer/document.cpp:906:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] 906 | if (i < accum_page_heights.size()) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from pdf_viewer/document_view.h:25: -pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]' - 111 | if (!on_text_change(text)) { - | ^~~~~~~~~~~~~~ -pdf_viewer/ui.h:569:32: required from here - 569 | on_done(on_done) - | ^ -pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] - 141 | virtual bool on_text_change(const QString& text) { - | ~~~~~~~~~~~~~~~^~~~ -pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]' - 111 | if (!on_text_change(text)) { - | ^~~~~~~~~~~~~~ -pdf_viewer/ui.h:643:18: required from here - 643 | on_done(on_done) - | ^ -pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] - 141 | virtual bool on_text_change(const QString& text) { - | ~~~~~~~~~~~~~~~^~~~ +pdf_viewer/utils.cpp: In function 'void sleep_ms(unsigned int)': +pdf_viewer/utils.cpp:1198:35: warning: narrowing conversion of '(ms / 1000)' from 'unsigned int' to '__time_t' {aka 'long int'} [-Wnarrowing] + 1198 | struct timespec ts = { ms / 1000, (ms % 1000) * 1000 * 1000 }; + | ~~~^~~~~~ +pdf_viewer/utils.cpp:1198:62: warning: narrowing conversion of '(((ms % 1000) * 1000) * 1000)' from 'unsigned int' to '__syscall_slong_t' {aka 'long int'} [-Wnarrowing] + 1198 | struct timespec ts = { ms / 1000, (ms % 1000) * 1000 * 1000 }; + | ~~~~~~~~~~~~~~~~~~~^~~~~~ +pdf_viewer/database.cpp: In member function 'void DatabaseManager::import_json(std::wstring, CachedChecksummer*)': +pdf_viewer/database.cpp:1102:43: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] + 1102 | auto bookmarks = std::move(load_from_json_array(current_json_doc["bookmarks"].toArray())); + | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pdf_viewer/database.cpp:1102:43: note: remove 'std::move' call +pdf_viewer/utils.cpp: In function 'std::wstring get_canonical_path(const std::wstring&)': +pdf_viewer/utils.cpp:1617:25: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] + 1617 | return std::move(dir.absolutePath().toStdWString()); + | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pdf_viewer/utils.cpp:1617:25: note: remove 'std::move' call +pdf_viewer/utils.cpp: In function 'std::wstring lowercase(const std::wstring&)': +pdf_viewer/utils.cpp:1747:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'unsigned int'} [-Wsign-compare] + 1747 | for (int i = 0; i < input.size(); i++) { + | ~~^~~~~~~~~~~~~~ +pdf_viewer/utils.cpp: In function 'std::wifstream open_wifstream(const std::wstring&)': +pdf_viewer/utils.cpp:1830:25: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] + 1830 | return std::move(std::wifstream(encoded_file_name.c_str())); + | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pdf_viewer/utils.cpp:1830:25: note: remove 'std::move' call +pdf_viewer/utils.cpp: In function 'float line_num_penalty(int)': +pdf_viewer/utils.cpp:1902:28: warning: unused parameter 'num' [-Wunused-parameter] + 1902 | float line_num_penalty(int num) { + | ~~~~^~~ +pdf_viewer/utils.cpp: In function 'bool command_requires_text(const std::wstring&)': +pdf_viewer/utils.cpp:2121:34: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] + 2121 | if ((command.find(L"%5") != -1) || (command.find(L"command_text") != -1)) { + | ~~~~~~~~~~~~~~~~~~~~^~~~~ +pdf_viewer/utils.cpp:2121:75: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] + 2121 | if ((command.find(L"%5") != -1) || (command.find(L"command_text") != -1)) { + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ +pdf_viewer/utils.cpp: In function 'bool command_requires_rect(const std::wstring&)': +pdf_viewer/utils.cpp:2128:47: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] + 2128 | if (command.find(L"%{selected_rect}") != -1) { + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ +pdf_viewer/utils.cpp: In function 'void flat_char_prism(std::vector, int, std::wstring&, std::vector&, std::vector&)': +pdf_viewer/utils.cpp:2174:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] + 2174 | for (int j = 0; j < chars.size(); j++) { + | ~~^~~~~~~~~~~~~~ +pdf_viewer/document.cpp: In member function 'std::optional, std::__cxx11::basic_string > > Document::get_generic_link_name_at_position(const std::vector&, float, float)': +pdf_viewer/document.cpp:1166:27: warning: unknown escape sequence: '\.' + 1166 | std::wregex regex(L"[a-zA-Z]{3,}(\.){0,1}[ \t]+[0-9]+(\.[0-9]+)*"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pdf_viewer/document.cpp:1166:27: warning: unknown escape sequence: '\.' In file included from pdf_viewer/utf8.h:31, from pdf_viewer/utils.h:21, - from pdf_viewer/database.h:9, - from pdf_viewer/document.h:22, - from pdf_viewer/document_view.h:22, - from pdf_viewer/pdf_view_opengl_widget.h:40, - from pdf_viewer/pdf_view_opengl_widget.cpp:1: + from pdf_viewer/ui.h:39, + from pdf_viewer/ui.cpp:1: pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 268 | class iterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/14/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/14/string:47, - from /usr/include/c++/14/bits/locale_classes.h:40, - from /usr/include/c++/14/bits/ios_base.h:41, - from /usr/include/c++/14/ios:44, - from /usr/include/c++/14/ostream:40, - from /usr/include/c++/14/iostream:41, - from pdf_viewer/pdf_view_opengl_widget.h:3: + from pdf_viewer/ui.h:2: /usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -2231,11 +2330,6 @@ /usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -pdf_viewer/document.cpp: In member function 'std::optional, std::__cxx11::basic_string > > Document::get_generic_link_name_at_position(const std::vector&, float, float)': -pdf_viewer/document.cpp:1166:27: warning: unknown escape sequence: '\.' - 1166 | std::wregex regex(L"[a-zA-Z]{3,}(\.){0,1}[ \t]+[0-9]+(\.[0-9]+)*"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pdf_viewer/document.cpp:1166:27: warning: unknown escape sequence: '\.' pdf_viewer/document.cpp: In member function 'float Document::document_to_absolute_y(int, float)': pdf_viewer/document.cpp:1947:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] 1947 | if ((page < accum_page_heights.size()) && (page >= 0)) { @@ -2248,100 +2342,10 @@ pdf_viewer/document.cpp:2152:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] 2152 | for (int i = 0; i < line_rects.size(); i++) { | ~~^~~~~~~~~~~~~~~~~~~ -pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_delete(const QModelIndex&, const QModelIndex&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:132:15: required from here - 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} - | ^~~~~~~~~ -pdf_viewer/ui.h:132:51: warning: unused parameter 'source_index' [-Wunused-parameter] - 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ -pdf_viewer/ui.h:132:84: warning: unused parameter 'selected_index' [-Wunused-parameter] - 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_return_no_select(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:134:15: required from here - 134 | virtual void on_return_no_select(const QString& text) { - | ^~~~~~~~~~~~~~~~~~~ -pdf_viewer/ui.h:134:57: warning: unused parameter 'text' [-Wunused-parameter] - 134 | virtual void on_return_no_select(const QString& text) { - | ~~~~~~~~~~~~~~~^~~~ -pdf_viewer/main.cpp: In function 'void focus_on_widget(QWidget*)': -pdf_viewer/main.cpp:657:54: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] - 657 | widget->setWindowState(widget->windowState() & ~Qt::WindowMinimized | Qt::WindowActive); - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_delete(const QModelIndex&, const QModelIndex&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:132:15: required from here - 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} - | ^~~~~~~~~ -pdf_viewer/ui.h:132:51: warning: unused parameter 'source_index' [-Wunused-parameter] - 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ -pdf_viewer/ui.h:132:84: warning: unused parameter 'selected_index' [-Wunused-parameter] - 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_return_no_select(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:134:15: required from here - 134 | virtual void on_return_no_select(const QString& text) { - | ^~~~~~~~~~~~~~~~~~~ -pdf_viewer/ui.h:134:57: warning: unused parameter 'text' [-Wunused-parameter] - 134 | virtual void on_return_no_select(const QString& text) { - | ~~~~~~~~~~~~~~~^~~~ -pdf_viewer/main.cpp: In function 'int main(int, char**)': -pdf_viewer/main.cpp:695:14: warning: variable 'use_single_instance' set but not used [-Wunused-but-set-variable] - 695 | bool use_single_instance = (!SHOULD_LAUNCH_NEW_INSTANCE) && (!SHOULD_LAUNCH_NEW_WINDOW); - | ^~~~~~~~~~~~~~~~~~~ -pdf_viewer/document_view.cpp: In member function 'NormalizedWindowPos DocumentView::document_to_window_pos(DocumentPos)': -pdf_viewer/document_view.cpp:351:1: warning: control reaches end of non-void function [-Wreturn-type] - 351 | } - | ^ -In file included from pdf_viewer/ui.h:36: -pdf_viewer/fts_fuzzy_match.h: At global scope: -pdf_viewer/fts_fuzzy_match.h:59:17: warning: 'bool fts::fuzzy_match_simple(const char*, const char*)' defined but not used [-Wunused-function] - 59 | static bool fuzzy_match_simple(char const * pattern, char const * str) { - | ^~~~~~~~~~~~~~~~~~ -pdf_viewer/pdf_view_opengl_widget.cpp: In member function 'void PdfViewOpenGLWidget::render_overview(OverviewState)': -pdf_viewer/pdf_view_opengl_widget.cpp:567:17: warning: variable 'page_rect' set but not used [-Wunused-but-set-variable] - 567 | fz_rect page_rect; - | ^~~~~~~~~ -pdf_viewer/pdf_view_opengl_widget.cpp: In member function 'void PdfViewOpenGLWidget::render(QPainter*)': -pdf_viewer/pdf_view_opengl_widget.cpp:747:32: warning: unused variable 'texture' [-Wunused-variable] - 747 | GLuint texture = pdf_renderer->find_rendered_page(document_view->get_document()->get_path(), - | ^~~~~~~ -In file included from pdf_viewer/main.cpp:57: -pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]' - 111 | if (!on_text_change(text)) { - | ^~~~~~~~~~~~~~ -pdf_viewer/ui.h:569:32: required from here - 569 | on_done(on_done) - | ^ -pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] - 141 | virtual bool on_text_change(const QString& text) { - | ~~~~~~~~~~~~~~~^~~~ -pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]' - 111 | if (!on_text_change(text)) { - | ^~~~~~~~~~~~~~ -pdf_viewer/ui.h:643:18: required from here - 643 | on_done(on_done) - | ^ -pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] - 141 | virtual bool on_text_change(const QString& text) { - | ~~~~~~~~~~~~~~~^~~~ -pdf_viewer/pdf_view_opengl_widget.cpp:943:45: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'unsigned int'} [-Wsign-compare] - 943 | for (int j = i+1; j < all_visible_links.size(); j++) { - | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -pdf_viewer/pdf_view_opengl_widget.cpp: In member function 'void PdfViewOpenGLWidget::draw_empty_helper_message(QPainter*)': -pdf_viewer/pdf_view_opengl_widget.cpp:1232:37: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] - 1232 | int message_width = fm.width(message); - | ~~~~~~~~^~~~~~~~~ -In file included from /usr/include/i386-linux-gnu/qt5/QtWidgets/qwidget.h:50, - from /usr/include/i386-linux-gnu/qt5/QtWidgets/qabstractbutton.h:46, - from /usr/include/i386-linux-gnu/qt5/QtWidgets/qpushbutton.h:44, - from pdf_viewer/pdf_view_opengl_widget.h:16: -/usr/include/i386-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here - 106 | int width(const QString &, int len = -1) const; - | ^~~~~ +pdf_viewer/new_file_checker.cpp: In lambda function: +pdf_viewer/new_file_checker.cpp:80:128: warning: unused parameter 'path' [-Wunused-parameter] + 80 | QObject::connect(&paper_folder_watcher, &QFileSystemWatcher::directoryChanged, [&, main_widget](const QString& path) { + | ~~~~~~~~~~~~~~~^~~~ pdf_viewer/main_widget.cpp: In member function 'void MainWidget::set_overview_position(int, float)': pdf_viewer/main_widget.cpp:165:23: warning: unused variable 'page_height' [-Wunused-variable] 165 | float page_height = main_document_view->get_document()->get_page_height(page); @@ -2373,6 +2377,51 @@ pdf_viewer/main_widget.cpp:845:56: warning: unused parameter 'new_config' [-Wunused-parameter] 845 | void MainWidget::on_config_file_changed(ConfigManager* new_config) { | ~~~~~~~~~~~~~~~^~~~~~~~~~ +In file included from pdf_viewer/document_view.h:25: +pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]' + 111 | if (!on_text_change(text)) { + | ^~~~~~~~~~~~~~ +pdf_viewer/ui.h:569:32: required from here + 569 | on_done(on_done) + | ^ +pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] + 141 | virtual bool on_text_change(const QString& text) { + | ~~~~~~~~~~~~~~~^~~~ +pdf_viewer/document_view.cpp: In member function 'std::optional DocumentView::find_closest_bookmark()': +pdf_viewer/document_view.cpp:149:62: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] + 149 | if ((bookmark_index >= 0) && (bookmark_index < bookmarks.size())) { + | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ +pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]' + 111 | if (!on_text_change(text)) { + | ^~~~~~~~~~~~~~ +pdf_viewer/ui.h:643:18: required from here + 643 | on_done(on_done) + | ^ +pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] + 141 | virtual bool on_text_change(const QString& text) { + | ~~~~~~~~~~~~~~~^~~~ +pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]' + 111 | if (!on_text_change(text)) { + | ^~~~~~~~~~~~~~ +pdf_viewer/ui.h:569:32: required from here + 569 | on_done(on_done) + | ^ +pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] + 141 | virtual bool on_text_change(const QString& text) { + | ~~~~~~~~~~~~~~~^~~~ +pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]' + 111 | if (!on_text_change(text)) { + | ^~~~~~~~~~~~~~ +pdf_viewer/ui.h:643:18: required from here + 643 | on_done(on_done) + | ^ +pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] + 141 | virtual bool on_text_change(const QString& text) { + | ~~~~~~~~~~~~~~~^~~~ pdf_viewer/main_widget.cpp: In member function 'void MainWidget::next_state()': pdf_viewer/main_widget.cpp:1535:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] 1535 | if (current_history_index + 1 < history.size()) { @@ -2381,10 +2430,33 @@ pdf_viewer/main_widget.cpp:1570:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] 1570 | if (current_history_index == (history.size() - 1)) { | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ +pdf_viewer/document_view.cpp: In member function 'int DocumentView::get_line_index_of_pos(DocumentPos)': +pdf_viewer/document_view.cpp:1068:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] + 1068 | for (int i = 0; i < rects.size(); i++) { + | ~~^~~~~~~~~~~~~~ +pdf_viewer/document_view.cpp:1071:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] + 1071 | for (int i = 0; i < rects.size(); i++) { + | ~~^~~~~~~~~~~~~~ +pdf_viewer/document_view.cpp:1066:13: warning: unused variable 'page_width' [-Wunused-variable] + 1066 | int page_width = current_document->get_page_width(line_doc_pos.page); + | ^~~~~~~~~~ pdf_viewer/main_widget.cpp: In member function 'void MainWidget::update_current_history_index()': pdf_viewer/main_widget.cpp:1588:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] 1588 | if (index_to_update < history.size()-1) { | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ +pdf_viewer/document_view.cpp: In member function 'std::vector DocumentView::find_line_definitions()': +pdf_viewer/document_view.cpp:1110:49: warning: unknown escape sequence: '\.' + 1110 | std::wstring item_regex(L"[a-zA-Z]{2,}[ \t]+[0-9]+(\.[0-9]+)*"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pdf_viewer/document_view.cpp:1159:49: warning: comparison of integer expressions of different signedness: 'std::vector::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] + 1159 | if (vec->size() > max_size) { + | ~~~~~~~~~~~~^~~~~~~~~~ +pdf_viewer/document_view.cpp:1166:47: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] + 1166 | if (i < vec->size()) { + | ~~^~~~~~~~~~~~~ +pdf_viewer/document_view.cpp:1155:29: warning: unused variable 'index' [-Wunused-variable] + 1155 | int index = 0; + | ^~~~~ pdf_viewer/main_widget.cpp: In member function 'virtual void MainWidget::wheelEvent(QWheelEvent*)': pdf_viewer/main_widget.cpp:1806:24: warning: 'QPoint QWheelEvent::pos() const' is deprecated: Use position() [-Wdeprecated-declarations] 1806 | int x = wevent->pos().x(); @@ -2413,27 +2485,10 @@ /usr/include/i386-linux-gnu/qt5/QtGui/qevent.h:219:16: note: declared here 219 | inline int delta() const { return qt4D; } | ^~~~~ -In file included from pdf_viewer/document_view.h:25: -pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]' - 111 | if (!on_text_change(text)) { - | ^~~~~~~~~~~~~~ -pdf_viewer/ui.h:569:32: required from here - 569 | on_done(on_done) - | ^ -pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] - 141 | virtual bool on_text_change(const QString& text) { - | ~~~~~~~~~~~~~~~^~~~ -pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]' - 111 | if (!on_text_change(text)) { - | ^~~~~~~~~~~~~~ -pdf_viewer/ui.h:643:18: required from here - 643 | on_done(on_done) - | ^ -pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] - 141 | virtual bool on_text_change(const QString& text) { - | ~~~~~~~~~~~~~~~^~~~ +pdf_viewer/database.cpp: At global scope: +pdf_viewer/database.cpp:149:12: warning: 'int string_select_callback(void*, int, char**, char**)' defined but not used [-Wunused-function] + 149 | static int string_select_callback(void* res_vector, int argc, char** argv, char** col_name) { + | ^~~~~~~~~~~~~~~~~~~~~~ pdf_viewer/main_widget.cpp: In member function 'void MainWidget::handle_command(const Command*, int)': pdf_viewer/main_widget.cpp:2368:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] 2368 | for (int i = 0; i < windows.size(); i++) { @@ -2459,7 +2514,7 @@ pdf_viewer/ui.h:134:57: warning: unused parameter 'text' [-Wunused-parameter] 134 | virtual void on_return_no_select(const QString& text) { | ~~~~~~~~~~~~~~~^~~~ -pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_delete(const QModelIndex&, const QModelIndex&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_delete(const QModelIndex&, const QModelIndex&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': pdf_viewer/ui.h:132:15: required from here 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} | ^~~~~~~~~ @@ -2469,14 +2524,14 @@ pdf_viewer/ui.h:132:84: warning: unused parameter 'selected_index' [-Wunused-parameter] 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_return_no_select(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_return_no_select(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': pdf_viewer/ui.h:134:15: required from here 134 | virtual void on_return_no_select(const QString& text) { | ^~~~~~~~~~~~~~~~~~~ pdf_viewer/ui.h:134:57: warning: unused parameter 'text' [-Wunused-parameter] 134 | virtual void on_return_no_select(const QString& text) { | ~~~~~~~~~~~~~~~^~~~ -pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_delete(const QModelIndex&, const QModelIndex&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_delete(const QModelIndex&, const QModelIndex&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': pdf_viewer/ui.h:132:15: required from here 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} | ^~~~~~~~~ @@ -2486,7 +2541,7 @@ pdf_viewer/ui.h:132:84: warning: unused parameter 'selected_index' [-Wunused-parameter] 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_return_no_select(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_return_no_select(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': pdf_viewer/ui.h:134:15: required from here 134 | virtual void on_return_no_select(const QString& text) { | ^~~~~~~~~~~~~~~~~~~ @@ -2510,20 +2565,128 @@ pdf_viewer/ui.h:134:57: warning: unused parameter 'text' [-Wunused-parameter] 134 | virtual void on_return_no_select(const QString& text) { | ~~~~~~~~~~~~~~~^~~~ -pdf_viewer/pdf_renderer.cpp: In member function 'fz_document* PdfRenderer::get_document_with_path(int, fz_context*, std::wstring)': -pdf_viewer/pdf_renderer.cpp:379:22: warning: variable 'ret_val' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] - 379 | fz_document* ret_val = nullptr; - | ^~~~~~~ -pdf_viewer/pdf_view_opengl_widget.cpp: In member function 'float PdfViewOpenGLWidget::get_overview_side_pos(int)': -pdf_viewer/pdf_view_opengl_widget.cpp:1365:1: warning: control reaches end of non-void function [-Wreturn-type] - 1365 | } - | ^ In file included from pdf_viewer/ui.h:36: pdf_viewer/fts_fuzzy_match.h: At global scope: pdf_viewer/fts_fuzzy_match.h:59:17: warning: 'bool fts::fuzzy_match_simple(const char*, const char*)' defined but not used [-Wunused-function] 59 | static bool fuzzy_match_simple(char const * pattern, char const * str) { | ^~~~~~~~~~~~~~~~~~ In file included from pdf_viewer/ui.h:36: +pdf_viewer/fts_fuzzy_match.h:59:17: warning: 'bool fts::fuzzy_match_simple(const char*, const char*)' defined but not used [-Wunused-function] + 59 | static bool fuzzy_match_simple(char const * pattern, char const * str) { + | ^~~~~~~~~~~~~~~~~~ +In file included from pdf_viewer/document_view.h:25: +pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]' + 111 | if (!on_text_change(text)) { + | ^~~~~~~~~~~~~~ +pdf_viewer/ui.h:569:32: required from here + 569 | on_done(on_done) + | ^ +pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] + 141 | virtual bool on_text_change(const QString& text) { + | ~~~~~~~~~~~~~~~^~~~ +pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]' + 111 | if (!on_text_change(text)) { + | ^~~~~~~~~~~~~~ +pdf_viewer/ui.h:643:18: required from here + 643 | on_done(on_done) + | ^ +pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] + 141 | virtual bool on_text_change(const QString& text) { + | ~~~~~~~~~~~~~~~^~~~ +In file included from pdf_viewer/utf8.h:31, + from pdf_viewer/utils.h:21, + from pdf_viewer/input.h:12, + from pdf_viewer/main.cpp:53: +pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 268 | class iterator : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/14/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/14/string:47, + from /usr/include/c++/14/bits/locale_classes.h:40, + from /usr/include/c++/14/bits/ios_base.h:41, + from /usr/include/c++/14/ios:44, + from /usr/include/c++/14/ostream:40, + from /usr/include/c++/14/iostream:41, + from pdf_viewer/main.cpp:1: +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from pdf_viewer/utf8.h:32: +pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 179 | class iterator : public std::iterator { + | ^~~~~~~~ +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from pdf_viewer/utf8.h:31, + from pdf_viewer/utils.h:21, + from pdf_viewer/database.h:9, + from pdf_viewer/document.h:22, + from pdf_viewer/document_view.h:22, + from pdf_viewer/pdf_view_opengl_widget.h:40, + from pdf_viewer/pdf_view_opengl_widget.cpp:1: +pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 268 | class iterator : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/14/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/14/string:47, + from /usr/include/c++/14/bits/locale_classes.h:40, + from /usr/include/c++/14/bits/ios_base.h:41, + from /usr/include/c++/14/ios:44, + from /usr/include/c++/14/ostream:40, + from /usr/include/c++/14/iostream:41, + from pdf_viewer/pdf_view_opengl_widget.h:3: +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from pdf_viewer/utf8.h:32: +pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 179 | class iterator : public std::iterator { + | ^~~~~~~~ +/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_delete(const QModelIndex&, const QModelIndex&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:132:15: required from here + 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} + | ^~~~~~~~~ +pdf_viewer/ui.h:132:51: warning: unused parameter 'source_index' [-Wunused-parameter] + 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ +pdf_viewer/ui.h:132:84: warning: unused parameter 'selected_index' [-Wunused-parameter] + 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ +pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_return_no_select(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:134:15: required from here + 134 | virtual void on_return_no_select(const QString& text) { + | ^~~~~~~~~~~~~~~~~~~ +pdf_viewer/ui.h:134:57: warning: unused parameter 'text' [-Wunused-parameter] + 134 | virtual void on_return_no_select(const QString& text) { + | ~~~~~~~~~~~~~~~^~~~ +pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_delete(const QModelIndex&, const QModelIndex&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:132:15: required from here + 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} + | ^~~~~~~~~ +pdf_viewer/ui.h:132:51: warning: unused parameter 'source_index' [-Wunused-parameter] + 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ +pdf_viewer/ui.h:132:84: warning: unused parameter 'selected_index' [-Wunused-parameter] + 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ +pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_return_no_select(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:134:15: required from here + 134 | virtual void on_return_no_select(const QString& text) { + | ^~~~~~~~~~~~~~~~~~~ +pdf_viewer/ui.h:134:57: warning: unused parameter 'text' [-Wunused-parameter] + 134 | virtual void on_return_no_select(const QString& text) { + | ~~~~~~~~~~~~~~~^~~~ +pdf_viewer/document_view.cpp: In member function 'NormalizedWindowPos DocumentView::document_to_window_pos(DocumentPos)': +pdf_viewer/document_view.cpp:351:1: warning: control reaches end of non-void function [-Wreturn-type] + 351 | } + | ^ +In file included from pdf_viewer/ui.h:36: pdf_viewer/fts_fuzzy_match.h: At global scope: pdf_viewer/fts_fuzzy_match.h:59:17: warning: 'bool fts::fuzzy_match_simple(const char*, const char*)' defined but not used [-Wunused-function] 59 | static bool fuzzy_match_simple(char const * pattern, char const * str) { @@ -2636,7 +2799,32 @@ pdf_viewer/main_widget.cpp:4302:37: warning: variable 'srect_' set but not used [-Wunused-but-set-variable] 4302 | std::optional srect_ = get_tag_window_rect(parts.at(0).toStdString(), &schar_rects); | ^~~~~~ -g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o path.o pdf_viewer/path.cpp +pdf_viewer/pdf_renderer.cpp: In member function 'fz_document* PdfRenderer::get_document_with_path(int, fz_context*, std::wstring)': +pdf_viewer/pdf_renderer.cpp:379:22: warning: variable 'ret_val' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] + 379 | fz_document* ret_val = nullptr; + | ^~~~~~~ +pdf_viewer/pdf_view_opengl_widget.cpp: In member function 'void PdfViewOpenGLWidget::render_overview(OverviewState)': +pdf_viewer/pdf_view_opengl_widget.cpp:567:17: warning: variable 'page_rect' set but not used [-Wunused-but-set-variable] + 567 | fz_rect page_rect; + | ^~~~~~~~~ +pdf_viewer/pdf_view_opengl_widget.cpp: In member function 'void PdfViewOpenGLWidget::render(QPainter*)': +pdf_viewer/pdf_view_opengl_widget.cpp:747:32: warning: unused variable 'texture' [-Wunused-variable] + 747 | GLuint texture = pdf_renderer->find_rendered_page(document_view->get_document()->get_path(), + | ^~~~~~~ +pdf_viewer/pdf_view_opengl_widget.cpp:943:45: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'unsigned int'} [-Wsign-compare] + 943 | for (int j = i+1; j < all_visible_links.size(); j++) { + | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ +pdf_viewer/pdf_view_opengl_widget.cpp: In member function 'void PdfViewOpenGLWidget::draw_empty_helper_message(QPainter*)': +pdf_viewer/pdf_view_opengl_widget.cpp:1232:37: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] + 1232 | int message_width = fm.width(message); + | ~~~~~~~~^~~~~~~~~ +In file included from /usr/include/i386-linux-gnu/qt5/QtWidgets/qwidget.h:50, + from /usr/include/i386-linux-gnu/qt5/QtWidgets/qabstractbutton.h:46, + from /usr/include/i386-linux-gnu/qt5/QtWidgets/qpushbutton.h:44, + from pdf_viewer/pdf_view_opengl_widget.h:16: +/usr/include/i386-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here + 106 | int width(const QString &, int len = -1) const; + | ^~~~~ In file included from pdf_viewer/main_widget.cpp:42: pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]' @@ -2658,6 +2846,35 @@ pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] 141 | virtual bool on_text_change(const QString& text) { | ~~~~~~~~~~~~~~~^~~~ +pdf_viewer/main.cpp: In function 'void focus_on_widget(QWidget*)': +pdf_viewer/main.cpp:657:54: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] + 657 | widget->setWindowState(widget->windowState() & ~Qt::WindowMinimized | Qt::WindowActive); + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ +pdf_viewer/main.cpp: In function 'int main(int, char**)': +pdf_viewer/main.cpp:695:14: warning: variable 'use_single_instance' set but not used [-Wunused-but-set-variable] + 695 | bool use_single_instance = (!SHOULD_LAUNCH_NEW_INSTANCE) && (!SHOULD_LAUNCH_NEW_WINDOW); + | ^~~~~~~~~~~~~~~~~~~ +In file included from pdf_viewer/document_view.h:25: +pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]' + 111 | if (!on_text_change(text)) { + | ^~~~~~~~~~~~~~ +pdf_viewer/ui.h:569:32: required from here + 569 | on_done(on_done) + | ^ +pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] + 141 | virtual bool on_text_change(const QString& text) { + | ~~~~~~~~~~~~~~~^~~~ +pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]' + 111 | if (!on_text_change(text)) { + | ^~~~~~~~~~~~~~ +pdf_viewer/ui.h:643:18: required from here + 643 | on_done(on_done) + | ^ +pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] + 141 | virtual bool on_text_change(const QString& text) { + | ~~~~~~~~~~~~~~~^~~~ pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = int; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = int; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]' 111 | if (!on_text_change(text)) { @@ -2736,6 +2953,65 @@ pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] 141 | virtual bool on_text_change(const QString& text) { | ~~~~~~~~~~~~~~~^~~~ +In file included from pdf_viewer/main.cpp:57: +pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]' + 111 | if (!on_text_change(text)) { + | ^~~~~~~~~~~~~~ +pdf_viewer/ui.h:569:32: required from here + 569 | on_done(on_done) + | ^ +pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] + 141 | virtual bool on_text_change(const QString& text) { + | ~~~~~~~~~~~~~~~^~~~ +pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]' + 111 | if (!on_text_change(text)) { + | ^~~~~~~~~~~~~~ +pdf_viewer/ui.h:643:18: required from here + 643 | on_done(on_done) + | ^ +pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] + 141 | virtual bool on_text_change(const QString& text) { + | ~~~~~~~~~~~~~~~^~~~ +pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_delete(const QModelIndex&, const QModelIndex&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:132:15: required from here + 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} + | ^~~~~~~~~ +pdf_viewer/ui.h:132:51: warning: unused parameter 'source_index' [-Wunused-parameter] + 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ +pdf_viewer/ui.h:132:84: warning: unused parameter 'selected_index' [-Wunused-parameter] + 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ +pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_return_no_select(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:134:15: required from here + 134 | virtual void on_return_no_select(const QString& text) { + | ^~~~~~~~~~~~~~~~~~~ +pdf_viewer/ui.h:134:57: warning: unused parameter 'text' [-Wunused-parameter] + 134 | virtual void on_return_no_select(const QString& text) { + | ~~~~~~~~~~~~~~~^~~~ +pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_delete(const QModelIndex&, const QModelIndex&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:132:15: required from here + 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} + | ^~~~~~~~~ +pdf_viewer/ui.h:132:51: warning: unused parameter 'source_index' [-Wunused-parameter] + 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ +pdf_viewer/ui.h:132:84: warning: unused parameter 'selected_index' [-Wunused-parameter] + 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ +pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_return_no_select(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': +pdf_viewer/ui.h:134:15: required from here + 134 | virtual void on_return_no_select(const QString& text) { + | ^~~~~~~~~~~~~~~~~~~ +pdf_viewer/ui.h:134:57: warning: unused parameter 'text' [-Wunused-parameter] + 134 | virtual void on_return_no_select(const QString& text) { + | ~~~~~~~~~~~~~~~^~~~ +pdf_viewer/pdf_view_opengl_widget.cpp: In member function 'float PdfViewOpenGLWidget::get_overview_side_pos(int)': +pdf_viewer/pdf_view_opengl_widget.cpp:1365:1: warning: control reaches end of non-void function [-Wreturn-type] + 1365 | } + | ^ pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_return_no_select(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': pdf_viewer/ui.h:134:15: required from here 134 | virtual void on_return_no_select(const QString& text) { @@ -2743,6 +3019,11 @@ pdf_viewer/ui.h:134:57: warning: unused parameter 'text' [-Wunused-parameter] 134 | virtual void on_return_no_select(const QString& text) { | ~~~~~~~~~~~~~~~^~~~ +In file included from pdf_viewer/ui.h:36: +pdf_viewer/fts_fuzzy_match.h: At global scope: +pdf_viewer/fts_fuzzy_match.h:59:17: warning: 'bool fts::fuzzy_match_simple(const char*, const char*)' defined but not used [-Wunused-function] + 59 | static bool fuzzy_match_simple(char const * pattern, char const * str) { + | ^~~~~~~~~~~~~~~~~~ pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_return_no_select(const QString&) [with T = BookState; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': pdf_viewer/ui.h:134:15: required from here 134 | virtual void on_return_no_select(const QString& text) { @@ -2777,30 +3058,6 @@ pdf_viewer/ui.h:132:84: warning: unused parameter 'selected_index' [-Wunused-parameter] 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from pdf_viewer/utf8.h:31, - from pdf_viewer/utils.h:21, - from pdf_viewer/database.h:9, - from pdf_viewer/document.h:22, - from pdf_viewer/document_view.h:22, - from pdf_viewer/main_widget.h:17, - from pdf_viewer/new_file_checker.h:3, - from pdf_viewer/new_file_checker.cpp:1: -pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 268 | class iterator : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/14/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/14/string:47, - from pdf_viewer/main_widget.h:3: -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -In file included from pdf_viewer/utf8.h:32: -pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 179 | class iterator : public std::iterator { - | ^~~~~~~~ -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_return_no_select(const QString&) [with T = float; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': pdf_viewer/ui.h:134:15: required from here 134 | virtual void on_return_no_select(const QString& text) { @@ -2896,65 +3153,6 @@ pdf_viewer/ui.h:134:57: warning: unused parameter 'text' [-Wunused-parameter] 134 | virtual void on_return_no_select(const QString& text) { | ~~~~~~~~~~~~~~~^~~~ -In file included from pdf_viewer/utf8.h:31, - from pdf_viewer/utils.h:21, - from pdf_viewer/ui.h:39, - from pdf_viewer/ui.cpp:1: -pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 268 | class iterator : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/14/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/14/string:47, - from pdf_viewer/ui.h:2: -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -In file included from pdf_viewer/utf8.h:32: -pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 179 | class iterator : public std::iterator { - | ^~~~~~~~ -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o utils.o pdf_viewer/utils.cpp -pdf_viewer/main_widget.cpp: In member function 'bool MainWidget::execute_predefined_command(char)': -pdf_viewer/main_widget.cpp:4076:1: warning: control reaches end of non-void function [-Wreturn-type] - 4076 | } - | ^ -pdf_viewer/main_widget.cpp: In member function 'bool CharacterAddress::backspace()': -pdf_viewer/main_widget.cpp:4516:34: warning: control reaches end of non-void function [-Wreturn-type] - 4516 | this->previous_character = nullptr; - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ -In file included from pdf_viewer/ui.h:36: -pdf_viewer/fts_fuzzy_match.h: At global scope: -pdf_viewer/fts_fuzzy_match.h:59:17: warning: 'bool fts::fuzzy_match_simple(const char*, const char*)' defined but not used [-Wunused-function] - 59 | static bool fuzzy_match_simple(char const * pattern, char const * str) { - | ^~~~~~~~~~~~~~~~~~ -pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]' - 111 | if (!on_text_change(text)) { - | ^~~~~~~~~~~~~~ -pdf_viewer/ui.h:569:32: required from here - 569 | on_done(on_done) - | ^ -pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] - 141 | virtual bool on_text_change(const QString& text) { - | ~~~~~~~~~~~~~~~^~~~ -pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]' - 111 | if (!on_text_change(text)) { - | ^~~~~~~~~~~~~~ -pdf_viewer/ui.h:643:18: required from here - 643 | on_done(on_done) - | ^ -pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] - 141 | virtual bool on_text_change(const QString& text) { - | ~~~~~~~~~~~~~~~^~~~ -g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o RunGuard.o pdf_viewer/RunGuard.cpp -pdf_viewer/new_file_checker.cpp: In lambda function: -pdf_viewer/new_file_checker.cpp:80:128: warning: unused parameter 'path' [-Wunused-parameter] - 80 | QObject::connect(&paper_folder_watcher, &QFileSystemWatcher::directoryChanged, [&, main_widget](const QString& path) { - | ~~~~~~~~~~~~~~~^~~~ pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_delete(const QModelIndex&, const QModelIndex&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': pdf_viewer/ui.h:132:15: required from here 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} @@ -2989,65 +3187,19 @@ pdf_viewer/ui.h:134:57: warning: unused parameter 'text' [-Wunused-parameter] 134 | virtual void on_return_no_select(const QString& text) { | ~~~~~~~~~~~~~~~^~~~ +pdf_viewer/main_widget.cpp: In member function 'bool MainWidget::execute_predefined_command(char)': +pdf_viewer/main_widget.cpp:4076:1: warning: control reaches end of non-void function [-Wreturn-type] + 4076 | } + | ^ +pdf_viewer/main_widget.cpp: In member function 'bool CharacterAddress::backspace()': +pdf_viewer/main_widget.cpp:4516:34: warning: control reaches end of non-void function [-Wreturn-type] + 4516 | this->previous_character = nullptr; + | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from pdf_viewer/ui.h:36: +pdf_viewer/fts_fuzzy_match.h: At global scope: pdf_viewer/fts_fuzzy_match.h:59:17: warning: 'bool fts::fuzzy_match_simple(const char*, const char*)' defined but not used [-Wunused-function] 59 | static bool fuzzy_match_simple(char const * pattern, char const * str) { | ^~~~~~~~~~~~~~~~~~ -In file included from pdf_viewer/document_view.h:25: -pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]' - 111 | if (!on_text_change(text)) { - | ^~~~~~~~~~~~~~ -pdf_viewer/ui.h:569:32: required from here - 569 | on_done(on_done) - | ^ -pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] - 141 | virtual bool on_text_change(const QString& text) { - | ~~~~~~~~~~~~~~~^~~~ -pdf_viewer/ui.h: In instantiation of 'bool BaseSelectorWidget::on_text_change(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:111:9: required from 'BaseSelectorWidget::BaseSelectorWidget(QStandardItemModel*, QWidget*) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]' - 111 | if (!on_text_change(text)) { - | ^~~~~~~~~~~~~~ -pdf_viewer/ui.h:643:18: required from here - 643 | on_done(on_done) - | ^ -pdf_viewer/ui.h:141:52: warning: unused parameter 'text' [-Wunused-parameter] - 141 | virtual bool on_text_change(const QString& text) { - | ~~~~~~~~~~~~~~~^~~~ -pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_delete(const QModelIndex&, const QModelIndex&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:132:15: required from here - 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} - | ^~~~~~~~~ -pdf_viewer/ui.h:132:51: warning: unused parameter 'source_index' [-Wunused-parameter] - 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ -pdf_viewer/ui.h:132:84: warning: unused parameter 'selected_index' [-Wunused-parameter] - 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_return_no_select(const QString&) [with T = std::__cxx11::basic_string; ViewType = QListView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:134:15: required from here - 134 | virtual void on_return_no_select(const QString& text) { - | ^~~~~~~~~~~~~~~~~~~ -pdf_viewer/ui.h:134:57: warning: unused parameter 'text' [-Wunused-parameter] - 134 | virtual void on_return_no_select(const QString& text) { - | ~~~~~~~~~~~~~~~^~~~ -pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_delete(const QModelIndex&, const QModelIndex&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:132:15: required from here - 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} - | ^~~~~~~~~ -pdf_viewer/ui.h:132:51: warning: unused parameter 'source_index' [-Wunused-parameter] - 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ -pdf_viewer/ui.h:132:84: warning: unused parameter 'selected_index' [-Wunused-parameter] - 132 | virtual void on_delete(const QModelIndex& source_index, const QModelIndex& selected_index) {} - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -pdf_viewer/ui.h: In instantiation of 'void BaseSelectorWidget::on_return_no_select(const QString&) [with T = std::__cxx11::basic_string; ViewType = QTableView; ProxyModelType = QSortFilterProxyModel]': -pdf_viewer/ui.h:134:15: required from here - 134 | virtual void on_return_no_select(const QString& text) { - | ^~~~~~~~~~~~~~~~~~~ -pdf_viewer/ui.h:134:57: warning: unused parameter 'text' [-Wunused-parameter] - 134 | virtual void on_return_no_select(const QString& text) { - | ~~~~~~~~~~~~~~~^~~~ In file included from pdf_viewer/ui.h:36: pdf_viewer/fts_fuzzy_match.h: At global scope: pdf_viewer/fts_fuzzy_match.h:59:17: warning: 'bool fts::fuzzy_match_simple(const char*, const char*)' defined but not used [-Wunused-function] @@ -3057,122 +3209,6 @@ pdf_viewer/main.cpp:738:14: warning: variable 'fail' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] 738 | bool fail = false; | ^~~~ -g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o OpenWithApplication.o pdf_viewer/OpenWithApplication.cpp -In file included from pdf_viewer/utf8.h:31, - from pdf_viewer/utils.h:21, - from pdf_viewer/path.h:5, - from pdf_viewer/path.cpp:2: -pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 268 | class iterator : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/14/bits/stl_algobase.h:65, - from /usr/include/c++/14/algorithm:60, - from /usr/include/i386-linux-gnu/qt5/QtCore/qglobal.h:142, - from /usr/include/i386-linux-gnu/qt5/QtCore/qchar.h:43, - from /usr/include/i386-linux-gnu/qt5/QtCore/qstring.h:49, - from /usr/include/i386-linux-gnu/qt5/QtCore/qdir.h:43, - from pdf_viewer/path.cpp:1: -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -In file included from pdf_viewer/utf8.h:32: -pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 179 | class iterator : public std::iterator { - | ^~~~~~~~ -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -pdf_viewer/path.cpp: In member function 'std::string Path::get_path_utf8() const': -pdf_viewer/path.cpp:56:25: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] - 56 | return std::move(utf8_encode(get_path())); - | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -pdf_viewer/path.cpp:56:25: note: remove 'std::move' call -g++ -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -dM -E -o moc_predefs.h /usr/lib/i386-linux-gnu/qt5/mkspecs/features/data/dummy.cpp -/usr/lib/qt5/bin/moc -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /build/reproducible-path/sioyek-2.0.0+dfsg/moc_predefs.h -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -I/build/reproducible-path/sioyek-2.0.0+dfsg -I/build/reproducible-path/sioyek-2.0.0+dfsg/pdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/c++/14 -I/usr/include/i386-linux-gnu/c++/14 -I/usr/include/c++/14/backward -I/usr/lib/gcc/i686-linux-gnu/14/include -I/usr/local/include -I/usr/include/i386-linux-gnu -I/usr/include pdf_viewer/pdf_renderer.h -o moc_pdf_renderer.cpp -/usr/lib/qt5/bin/moc -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /build/reproducible-path/sioyek-2.0.0+dfsg/moc_predefs.h -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -I/build/reproducible-path/sioyek-2.0.0+dfsg -I/build/reproducible-path/sioyek-2.0.0+dfsg/pdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/c++/14 -I/usr/include/i386-linux-gnu/c++/14 -I/usr/include/c++/14/backward -I/usr/lib/gcc/i686-linux-gnu/14/include -I/usr/local/include -I/usr/include/i386-linux-gnu -I/usr/include pdf_viewer/RunGuard.h -o moc_RunGuard.cpp -/usr/lib/qt5/bin/moc -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /build/reproducible-path/sioyek-2.0.0+dfsg/moc_predefs.h -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -I/build/reproducible-path/sioyek-2.0.0+dfsg -I/build/reproducible-path/sioyek-2.0.0+dfsg/pdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/c++/14 -I/usr/include/i386-linux-gnu/c++/14 -I/usr/include/c++/14/backward -I/usr/lib/gcc/i686-linux-gnu/14/include -I/usr/local/include -I/usr/include/i386-linux-gnu -I/usr/include pdf_viewer/OpenWithApplication.h -o moc_OpenWithApplication.cpp -g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o moc_RunGuard.o moc_RunGuard.cpp -g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o moc_OpenWithApplication.o moc_OpenWithApplication.cpp -g++ -c -pipe -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/sioyek-2.0.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DLINUX_STANDARD_PATHS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtOpenGL -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5/Qt3DInput -I/usr/include/i386-linux-gnu/qt5/Qt3DCore -I/usr/include/i386-linux-gnu/qt5/QtOpenGLExtensions -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5/QtCore -I. -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o moc_pdf_renderer.o moc_pdf_renderer.cpp -In file included from pdf_viewer/utf8.h:31, - from pdf_viewer/utils.h:21, - from pdf_viewer/utils.cpp:6: -pdf_viewer/utf8/checked.h:268:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 268 | class iterator : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/14/bits/stl_algobase.h:65, - from /usr/include/c++/14/bits/specfun.h:43, - from /usr/include/c++/14/cmath:3898, - from pdf_viewer/utils.cpp:4: -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -In file included from pdf_viewer/utf8.h:32: -pdf_viewer/utf8/unchecked.h:179:40: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 179 | class iterator : public std::iterator { - | ^~~~~~~~ -/usr/include/c++/14/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -pdf_viewer/utils.cpp: In function 'void install_app(const char*)': -pdf_viewer/utils.cpp:175:30: warning: unused parameter 'argv0' [-Wunused-parameter] - 175 | void install_app(const char *argv0) - | ~~~~~~~~~~~~^~~~~ -pdf_viewer/utils.cpp: In lambda function: -pdf_viewer/utils.cpp:845:94: warning: unused parameter 'error' [-Wunused-parameter] - 845 | QObject::connect(process, &QProcess::errorOccurred, [process](QProcess::ProcessError error) { - | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -pdf_viewer/utils.cpp: In lambda function: -pdf_viewer/utils.cpp:850:109: warning: unused parameter 'exit_code' [-Wunused-parameter] - 850 | QObject::connect(process, qOverload(&QProcess::finished), [process](int exit_code, QProcess::ExitStatus stat) { - | ~~~~^~~~~~~~~ -pdf_viewer/utils.cpp:850:141: warning: unused parameter 'stat' [-Wunused-parameter] - 850 | QObject::connect(process, qOverload(&QProcess::finished), [process](int exit_code, QProcess::ExitStatus stat) { - | ~~~~~~~~~~~~~~~~~~~~~^~~~ -pdf_viewer/utils.cpp: In function 'void index_generic(const std::vector&, int, std::vector&)': -pdf_viewer/utils.cpp:1059:37: warning: unknown escape sequence: '\.' - 1059 | std::wregex index_dst_regex(L"(^|\n)[A-Z][a-zA-Z]{2,}[ \t]+[0-9]+(\.[0-9]+)*"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pdf_viewer/utils.cpp: In function 'void sleep_ms(unsigned int)': -pdf_viewer/utils.cpp:1198:35: warning: narrowing conversion of '(ms / 1000)' from 'unsigned int' to '__time_t' {aka 'long int'} [-Wnarrowing] - 1198 | struct timespec ts = { ms / 1000, (ms % 1000) * 1000 * 1000 }; - | ~~~^~~~~~ -pdf_viewer/utils.cpp:1198:62: warning: narrowing conversion of '(((ms % 1000) * 1000) * 1000)' from 'unsigned int' to '__syscall_slong_t' {aka 'long int'} [-Wnarrowing] - 1198 | struct timespec ts = { ms / 1000, (ms % 1000) * 1000 * 1000 }; - | ~~~~~~~~~~~~~~~~~~~^~~~~~ -pdf_viewer/utils.cpp: In function 'std::wstring get_canonical_path(const std::wstring&)': -pdf_viewer/utils.cpp:1617:25: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] - 1617 | return std::move(dir.absolutePath().toStdWString()); - | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pdf_viewer/utils.cpp:1617:25: note: remove 'std::move' call -pdf_viewer/utils.cpp: In function 'std::wstring lowercase(const std::wstring&)': -pdf_viewer/utils.cpp:1747:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'unsigned int'} [-Wsign-compare] - 1747 | for (int i = 0; i < input.size(); i++) { - | ~~^~~~~~~~~~~~~~ -pdf_viewer/utils.cpp: In function 'std::wifstream open_wifstream(const std::wstring&)': -pdf_viewer/utils.cpp:1830:25: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] - 1830 | return std::move(std::wifstream(encoded_file_name.c_str())); - | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pdf_viewer/utils.cpp:1830:25: note: remove 'std::move' call -pdf_viewer/utils.cpp: In function 'float line_num_penalty(int)': -pdf_viewer/utils.cpp:1902:28: warning: unused parameter 'num' [-Wunused-parameter] - 1902 | float line_num_penalty(int num) { - | ~~~~^~~ -pdf_viewer/utils.cpp: In function 'bool command_requires_text(const std::wstring&)': -pdf_viewer/utils.cpp:2121:34: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] - 2121 | if ((command.find(L"%5") != -1) || (command.find(L"command_text") != -1)) { - | ~~~~~~~~~~~~~~~~~~~~^~~~~ -pdf_viewer/utils.cpp:2121:75: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] - 2121 | if ((command.find(L"%5") != -1) || (command.find(L"command_text") != -1)) { - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -pdf_viewer/utils.cpp: In function 'bool command_requires_rect(const std::wstring&)': -pdf_viewer/utils.cpp:2128:47: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] - 2128 | if (command.find(L"%{selected_rect}") != -1) { - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -pdf_viewer/utils.cpp: In function 'void flat_char_prism(std::vector, int, std::wstring&, std::vector&, std::vector&)': -pdf_viewer/utils.cpp:2174:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'unsigned int'} [-Wsign-compare] - 2174 | for (int j = 0; j < chars.size(); j++) { - | ~~^~~~~~~~~~~~~~ pdf_viewer/document.cpp: In member function 'fz_outline* Document::get_toc_outline()': pdf_viewer/document.cpp:457:21: warning: variable 'res' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] 457 | fz_outline* res = nullptr; @@ -3877,11 +3913,11 @@ dumping object inventory... done ====================== slowest reading durations ======================= -0.133 commands -0.127 usage -0.121 configuration -0.096 scripting -0.026 installation +0.068 commands +0.063 usage +0.062 configuration +0.043 scripting +0.014 installation build succeeded. The HTML pages are in docs/docs/html. @@ -3892,15 +3928,15 @@ debian/rules override_dh_auto_install make[1]: Entering directory '/build/reproducible-path/sioyek-2.0.0+dfsg' dh_auto_install --destdir debian/tmp - make -j11 install DESTDIR=/build/reproducible-path/sioyek-2.0.0\+dfsg/debian/tmp AM_UPDATE_INFO_DIR=no INSTALL_ROOT=/build/reproducible-path/sioyek-2.0.0\+dfsg/debian/tmp + make -j21 install DESTDIR=/build/reproducible-path/sioyek-2.0.0\+dfsg/debian/tmp AM_UPDATE_INFO_DIR=no INSTALL_ROOT=/build/reproducible-path/sioyek-2.0.0\+dfsg/debian/tmp make[2]: Entering directory '/build/reproducible-path/sioyek-2.0.0+dfsg' -/usr/lib/qt5/bin/qmake -install qinstall /build/reproducible-path/sioyek-2.0.0+dfsg/pdf_viewer/prefs.config /build/reproducible-path/sioyek-2.0.0+dfsg/debian/tmp/usr/etc/sioyek/prefs.config /usr/lib/qt5/bin/qmake -install qinstall -exe sioyek /build/reproducible-path/sioyek-2.0.0+dfsg/debian/tmp/usr/bin/sioyek /usr/lib/qt5/bin/qmake -install qinstall /build/reproducible-path/sioyek-2.0.0+dfsg/resources/sioyek.desktop /build/reproducible-path/sioyek-2.0.0+dfsg/debian/tmp/usr/share/applications/sioyek.desktop /usr/lib/qt5/bin/qmake -install qinstall /build/reproducible-path/sioyek-2.0.0+dfsg/resources/sioyek-icon-linux.png /build/reproducible-path/sioyek-2.0.0+dfsg/debian/tmp/usr/share/pixmaps/sioyek-icon-linux.png /usr/lib/qt5/bin/qmake -install qinstall /build/reproducible-path/sioyek-2.0.0+dfsg/pdf_viewer/shaders /build/reproducible-path/sioyek-2.0.0+dfsg/debian/tmp/usr/share/sioyek/shaders /usr/lib/qt5/bin/qmake -install qinstall /build/reproducible-path/sioyek-2.0.0+dfsg/tutorial.pdf /build/reproducible-path/sioyek-2.0.0+dfsg/debian/tmp/usr/share/sioyek/tutorial.pdf /usr/lib/qt5/bin/qmake -install qinstall /build/reproducible-path/sioyek-2.0.0+dfsg/pdf_viewer/keys.config /build/reproducible-path/sioyek-2.0.0+dfsg/debian/tmp/usr/etc/sioyek/keys.config +/usr/lib/qt5/bin/qmake -install qinstall /build/reproducible-path/sioyek-2.0.0+dfsg/pdf_viewer/prefs.config /build/reproducible-path/sioyek-2.0.0+dfsg/debian/tmp/usr/etc/sioyek/prefs.config : /build/reproducible-path/sioyek-2.0.0+dfsg/debian/tmp/usr/bin/sioyek make[2]: Leaving directory '/build/reproducible-path/sioyek-2.0.0+dfsg' make[1]: Leaving directory '/build/reproducible-path/sioyek-2.0.0+dfsg' @@ -3934,12 +3970,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/67388/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/67388/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/32625 and its subdirectories -I: Current time: Wed Nov 13 12:37:39 -12 2024 -I: pbuilder-time-stamp: 1731544659 +I: removing directory /srv/workspace/pbuilder/67388 and its subdirectories +I: Current time: Wed Dec 17 21:04:12 +14 2025 +I: pbuilder-time-stamp: 1765955052