Diff of the two buildlogs: -- --- b1/build.log 2025-10-21 18:36:42.870339126 +0000 +++ b2/build.log 2025-10-21 18:37:52.202418167 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Nov 23 12:59:00 -12 2026 -I: pbuilder-time-stamp: 1795481940 +I: Current time: Wed Oct 22 08:36:45 +14 2025 +I: pbuilder-time-stamp: 1761071805 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/forky-reproducible-base.tgz] I: copying local configuration @@ -27,53 +27,85 @@ dpkg-source: info: applying strlcpy.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2948040/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3195369/tmp/hooks/D01_modify_environment starting +debug: Running on codethink04-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Oct 21 18:37 /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/3195369/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3195369/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="3" [2]="3" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.3.3(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='forky' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=forky + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='c1bebfd422bb4643bf5cca949ddc041b' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='2948040' - PS1='# ' - PS2='> ' + INVOCATION_ID=85a5c738999b4c80a016313d99fd7c97 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=3195369 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.Tg4hWqnP/pbuilderrc_1bbq --distribution forky --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Tg4hWqnP/b1 --logfile b1/build.log fte_0.50.2b6-20110708-8.dsc' - SUDO_GID='109' - SUDO_HOME='/var/lib/jenkins' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.Tg4hWqnP/pbuilderrc_htEg --distribution forky --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Tg4hWqnP/b2 --logfile b2/build.log fte_0.50.2b6-20110708-8.dsc' + SUDO_GID=109 + SUDO_HOME=/var/lib/jenkins + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink03-arm64 6.12.48+deb13-cloud-arm64 #1 SMP Debian 6.12.48-1 (2025-09-20) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.12.48+deb13-cloud-arm64 #1 SMP Debian 6.12.48-1 (2025-09-20) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2948040/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3195369/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -183,7 +215,7 @@ Get: 58 http://deb.debian.org/debian forky/main arm64 libxpm-dev arm64 1:3.5.17-1+b3 [129 kB] Get: 59 http://deb.debian.org/debian forky/main arm64 libxt6t64 arm64 1:1.2.1-1.3 [182 kB] Get: 60 http://deb.debian.org/debian forky/main arm64 libxt-dev arm64 1:1.2.1-1.3 [415 kB] -Fetched 18.6 MB in 0s (113 MB/s) +Fetched 18.6 MB in 0s (79.9 MB/s) Preconfiguring packages ... Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20000 files and directories currently installed.) @@ -440,7 +472,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/fte-0.50.2b6-20110708/ && 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 > ../fte_0.50.2b6-20110708-8_source.changes +I: user script /srv/workspace/pbuilder/3195369/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for forky +I: user script /srv/workspace/pbuilder/3195369/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/fte-0.50.2b6-20110708/ && 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 > ../fte_0.50.2b6-20110708-8_source.changes dpkg-buildpackage: info: source package fte dpkg-buildpackage: info: source version 0.50.2b6-20110708-8 dpkg-buildpackage: info: source distribution unstable @@ -483,8 +519,7 @@ g++ -c e_block.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from sysdep.h:13, - from c_config.h:13, - from e_block.cpp:10: + from s_files.cpp:12: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -530,7 +565,8 @@ stl_fte.h:173:17: note: remove the '< >' In file included from fte.h:39, from sysdep.h:13, - from s_files.cpp:12: + from c_config.h:13, + from e_block.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -545,10 +581,8 @@ stl_fte.h:173:17: note: remove the '< >' In file included from fte.h:39, from console.h:13, - from o_model.h:13, - from o_list.h:14, - from o_buflist.h:13, - from c_hilit.cpp:10: + from c_bind.h:14, + from c_mode.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -563,8 +597,8 @@ stl_fte.h:173:17: note: remove the '< >' In file included from fte.h:39, from console.h:13, - from c_hilit.h:14, - from cfte.cpp:11: + from c_bind.h:14, + from c_bind.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -577,10 +611,13 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +c_mode.cpp: In function 'EMode* GetModeForName(const char*)': +c_mode.cpp:104:21: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] + 104 | int l = read(fd, buf, sizeof(buf) - 1); + | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fte.h:39, - from console.h:13, - from c_bind.h:14, - from c_bind.cpp:10: + from sysdep.h:13, + from s_string.cpp:1: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -594,8 +631,8 @@ | ^ stl_fte.h:173:17: note: remove the '< >' In file included from fte.h:39, - from sysdep.h:13, - from s_string.cpp:1: + from o_routine.h:13, + from c_color.cpp:11: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -608,42 +645,66 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -c_history.cpp: In function 'int LoadHistory(const char*)': -c_history.cpp:129:23: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 129 | r = strtol(p, &e, 10); - | ~~~~~~^~~~~~~~~~~ -c_history.cpp:136:23: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 136 | c = strtol(p = e, &e, 10); - | ~~~~~~^~~~~~~~~~~~~~~ -c_history.cpp:168:27: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 168 | r = strtol(p, &e, 10); - | ~~~~~~^~~~~~~~~~~ -c_history.cpp:175:27: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 175 | c = strtol(p = e, &e, 10); - | ~~~~~~^~~~~~~~~~~~~~~ -c_history.cpp:202:23: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 202 | i = strtol(p, &e, 10); - | ~~~~~~^~~~~~~~~~~ -c_history.cpp: In function 'int AddInputHistory(int, const char*)': -c_history.cpp:307:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 307 | for (i = 0; i < inputHistory.Count; i++) { - | ~~^~~~~~~~~~~~~~~~~~~~ -c_history.cpp: In function 'int CountInputHistory(int)': -c_history.cpp:339:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 339 | for (i = 0; i < inputHistory.Count; i++) - | ~~^~~~~~~~~~~~~~~~~~~~ -c_history.cpp: In function 'int GetInputHistory(int, char*, int, int)': -c_history.cpp:349:14: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 349 | while (i < inputHistory.Count) { - | ~~^~~~~~~~~~~~~~~~~~~~ +In file included from fte.h:39, + from c_desktop.h:13, + from c_desktop.cpp:10: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ +stl_fte.h:161:17: note: remove the '< >' +stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 166 | vector(size_type prealloc) : + | ^~~~~~~~~ +stl_fte.h:166:18: note: remove the '< >' +stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 173 | vector(const vector& t) : + | ^ +stl_fte.h:173:17: note: remove the '< >' +g++ -c e_buffer.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX c_bind.cpp: In function 'int ParseKey(const char*, KeySel&)': c_bind.cpp:107:37: warning: conversion from 'TKeyCode' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 107 | ks.Key = toupper(ks.Key); | ~~~^~~ +g++ -c e_cmds.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from console.h:13, - from c_bind.h:14, - from c_mode.cpp:10: + from o_model.h:13, + from o_list.h:14, + from o_buflist.h:13, + from c_hilit.cpp:10: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ +stl_fte.h:161:17: note: remove the '< >' +stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 166 | vector(size_type prealloc) : + | ^~~~~~~~~ +stl_fte.h:166:18: note: remove the '< >' +stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 173 | vector(const vector& t) : + | ^ +stl_fte.h:173:17: note: remove the '< >' +In file included from fte.h:39, + from console.h:13, + from gui.h:13, + from egui.h:13, + from egui.cpp:10: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ +stl_fte.h:161:17: note: remove the '< >' +stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 166 | vector(size_type prealloc) : + | ^~~~~~~~~ +stl_fte.h:166:18: note: remove the '< >' +stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 173 | vector(const vector& t) : + | ^ +stl_fte.h:173:17: note: remove the '< >' +In file included from fte.h:39, + from console.h:13, + from c_hilit.h:14, + from cfte.cpp:11: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -656,6 +717,13 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +e_block.cpp: In member function 'int EBuffer::BlockSelectWord()': +e_block.cpp:623:11: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 623 | if (P >= L->Count) return 0; + | ~~^~~~~~~~~~~ +e_block.cpp:628:15: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 628 | while ((P < L->Count) && (C == ChClassK(L->Chars[P]))) P++; + | ~~^~~~~~~~~~ c_bind.cpp: In function 'int MatchKey(TKeyCode, KeySel)': c_bind.cpp:431:30: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 431 | else if (isascii(key)) @@ -673,21 +741,6 @@ c_bind.cpp:648:16: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 648 | || Pos >= Macros[Macro].Count) | ~~~~^~~~~~~~~~~~~~~~~~~~~~ -In file included from fte.h:39, - from o_routine.h:13, - from c_color.cpp:11: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ -stl_fte.h:161:17: note: remove the '< >' -stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 166 | vector(size_type prealloc) : - | ^~~~~~~~~ -stl_fte.h:166:18: note: remove the '< >' -stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 173 | vector(const vector& t) : - | ^ -stl_fte.h:173:17: note: remove the '< >' c_bind.cpp:656:55: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 656 | if (view->GetStrVar(Macros[Macro].cmds[Pos].u.num, str, maxlen) == 0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ @@ -701,35 +754,38 @@ c_bind.cpp:684:44: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 684 | *value = Macros[Macro].cmds[Pos].u.num; | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ +c_history.cpp: In function 'int LoadHistory(const char*)': +c_history.cpp:129:23: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 129 | r = strtol(p, &e, 10); + | ~~~~~~^~~~~~~~~~~ +c_history.cpp:136:23: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 136 | c = strtol(p = e, &e, 10); + | ~~~~~~^~~~~~~~~~~~~~~ +c_history.cpp:168:27: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 168 | r = strtol(p, &e, 10); + | ~~~~~~^~~~~~~~~~~ +c_history.cpp:175:27: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 175 | c = strtol(p = e, &e, 10); + | ~~~~~~^~~~~~~~~~~~~~~ +c_history.cpp:202:23: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 202 | i = strtol(p, &e, 10); + | ~~~~~~^~~~~~~~~~~ +c_history.cpp: In function 'int AddInputHistory(int, const char*)': +c_history.cpp:307:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 307 | for (i = 0; i < inputHistory.Count; i++) { + | ~~^~~~~~~~~~~~~~~~~~~~ +c_history.cpp: In function 'int CountInputHistory(int)': +c_history.cpp:339:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 339 | for (i = 0; i < inputHistory.Count; i++) + | ~~^~~~~~~~~~~~~~~~~~~~ +c_history.cpp: In function 'int GetInputHistory(int, char*, int, int)': +c_history.cpp:349:14: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 349 | while (i < inputHistory.Count) { + | ~~^~~~~~~~~~~~~~~~~~~~ c_bind.cpp:687:55: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 687 | if (view->GetIntVar(Macros[Macro].cmds[Pos].u.num, value) == 0) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ -c_mode.cpp: In function 'EMode* GetModeForName(const char*)': -c_mode.cpp:104:21: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] - 104 | int l = read(fd, buf, sizeof(buf) - 1); - | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -e_block.cpp: In member function 'int EBuffer::BlockSelectWord()': -e_block.cpp:623:11: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 623 | if (P >= L->Count) return 0; - | ~~^~~~~~~~~~~ -In file included from fte.h:39, - from c_desktop.h:13, - from c_desktop.cpp:10: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ -stl_fte.h:161:17: note: remove the '< >' -stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 166 | vector(size_type prealloc) : - | ^~~~~~~~~ -stl_fte.h:166:18: note: remove the '< >' -stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 173 | vector(const vector& t) : - | ^ -stl_fte.h:173:17: note: remove the '< >' -e_block.cpp:628:15: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 628 | while ((P < L->Count) && (C == ChClassK(L->Chars[P]))) P++; - | ~~^~~~~~~~~~ +g++ -c e_cvslog.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX e_block.cpp: In member function 'int EBuffer::BlockWriteTo(const char*, int)': e_block.cpp:677:25: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 677 | Z = LL->Count; @@ -770,12 +826,11 @@ e_block.cpp:956:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 956 | while (O < L->Count) { | ~~^~~~~~~~~~ -g++ -c e_buffer.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from console.h:13, from gui.h:13, from egui.h:13, - from egui.cpp:10: + from e_cmds.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -788,143 +843,11 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c e_cmds.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c e_cvslog.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c e_file.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX egui.cpp: In member function 'virtual int EGUI::ExecMacro(GxView*, int)': egui.cpp:189:22: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 189 | for (; State.Pos < m->Count; State.Pos++) { | ~~~~~~~~~~^~~~~~~~~~ -g++ -c e_file.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -In file included from fte.h:39, - from console.h:13, - from c_hilit.h:14, - from e_buffer.h:13, - from e_buffer.cpp:10: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ -stl_fte.h:161:17: note: remove the '< >' -stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 166 | vector(size_type prealloc) : - | ^~~~~~~~~ -stl_fte.h:166:18: note: remove the '< >' -stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 173 | vector(const vector& t) : - | ^ -stl_fte.h:173:17: note: remove the '< >' -g++ -c e_fold.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -In file included from fte.h:39, - from console.h:13, - from gui.h:13, - from egui.h:13, - from e_cmds.cpp:10: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ -stl_fte.h:161:17: note: remove the '< >' -stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 166 | vector(size_type prealloc) : - | ^~~~~~~~~ -stl_fte.h:166:18: note: remove the '< >' -stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 173 | vector(const vector& t) : - | ^ -stl_fte.h:173:17: note: remove the '< >' -g++ -c e_line.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -e_buffer.cpp: In member function 'int EBuffer::LineLen(int)': -e_buffer.cpp:593:28: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 593 | return ScreenPos(L, L->Count); - | ~~~^~~~~ -e_buffer.cpp: In member function 'int EBuffer::LineChars(int)': -e_buffer.cpp:598:24: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 598 | return RLine(Row)->Count; - | ~~~~~~~~~~~~^~~~~ -In file included from fte.h:39, - from console.h:13, - from c_hilit.h:14, - from e_buffer.h:13, - from e_cvslog.h:14, - from e_cvslog.cpp:11: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ -e_buffer.cpp: In member function 'int EBuffer::DelChars(int, int, size_t)': -e_buffer.cpp:751:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 751 | if (Ofs >= L->Count) return 0; - | ~~~~^~~~~~~~~~~ -e_buffer.cpp: In member function 'int EBuffer::InsChars(int, int, size_t, const char*)': -e_buffer.cpp:787:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 787 | if (Ofs > L->Count) return 0; - | ~~~~^~~~~~~~~~ -e_buffer.cpp:801:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 801 | if (L->Count > Ofs) - | ~~~~~~~~~^~~~~ -e_buffer.cpp: In member function 'int EBuffer::UnTabPoint(int, int)': -e_buffer.cpp:821:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 821 | if (Ofs >= L->Count) - | ~~~~^~~~~~~~~~~ -e_buffer.cpp: In member function 'int EBuffer::ChgChars(int, int, size_t, const char*)': -e_buffer.cpp:843:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 843 | if (Ofs > L->Count) return 0; - | ~~~~^~~~~~~~~~ -e_buffer.cpp: In member function 'int EBuffer::DelText(int, int, size_t, int)': -e_buffer.cpp:878:16: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 878 | if (ACount == -1 || ACount + Col > L) - | ~~~~~~~^~~~~ -e_buffer.cpp:878:38: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 878 | if (ACount == -1 || ACount + Col > L) - | ~~~~~~~~~~~~~^~~ -e_buffer.cpp:882:29: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 882 | if (UnTabPoint(Row, Col + ACount) == 0) - | ~~~~^~~~~~~~ -e_buffer.cpp:885:36: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 885 | C = CharOffset(RLine(Row), Col + ACount); - | ~~~~^~~~~~~~ -stl_fte.h:161:17: note: remove the '< >' -stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 166 | vector(size_type prealloc) : - | ^~~~~~~~~ -stl_fte.h:166:18: note: remove the '< >' -stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 173 | vector(const vector& t) : - | ^ -stl_fte.h:173:17: note: remove the '< >' -e_buffer.cpp:888:57: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 888 | if (DoMark) UpdateMarker(umDelete, Row, Col, 0, ACount); - | ^~~~~~ -e_buffer.cpp: In member function 'int EBuffer::InsText(int, int, size_t, const char*, int)': -e_buffer.cpp:902:53: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 902 | if (DoMark) UpdateMarker(umInsert, Row, Col, 0, ACount); - | ^~~~~~ -e_buffer.cpp:905:39: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 905 | if (InsChars(Row, RLine(Row)->Count, Col - L, 0) == 0) - | ~~~~~~~~~~~~^~~~~ -e_buffer.cpp: In member function 'int EBuffer::PadLine(int, size_t)': -e_buffer.cpp:920:39: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 920 | if (InsChars(Row, RLine(Row)->Count, Length - L, 0) == 0) - | ~~~~~~~~~~~~^~~~~ -e_buffer.cpp: In member function 'int EBuffer::InsLineText(int, int, size_t, int, PELine)': -e_buffer.cpp:933:31: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 933 | L = ScreenPos(Line, Line->Count); - | ~~~~~~^~~~~ -e_buffer.cpp:935:16: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 935 | if (ACount == -1) ACount = L - LCol; - | ~~~~~~~^~~~~ -e_buffer.cpp:936:23: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 936 | if (ACount + LCol > L) ACount = L - LCol; - | ~~~~~~~~~~~~~~^~~ -e_buffer.cpp:941:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 941 | if (Ofs < Line->Count && Line->Chars[Ofs] == '\t') { - | ~~~~^~~~~~~~~~~~~ -e_buffer.cpp:953:37: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 953 | C = Ofs = CharOffset(Line, LCol + ACount); - | ~~~~~^~~~~~~~ -e_buffer.cpp:954:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 954 | if (Ofs < Line->Count && Line->Chars[Ofs] == '\t') { - | ~~~~^~~~~~~~~~~~~ -e_buffer.cpp:956:17: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 956 | if (Pos < LCol + ACount) { - | ~~~~^~~~~~~~~~~~~~~ e_cmds.cpp: In member function 'int EBuffer::MoveWordLeftX(int)': e_cmds.cpp:62:15: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 62 | if (P > L->Count) P = L->Count; @@ -969,6 +892,24 @@ e_cmds.cpp:184:34: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 184 | if (P > L->Count) P = L->Count; | ~~~^~~~~ +g++ -c e_fold.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +In file included from fte.h:39, + from console.h:13, + from c_hilit.h:14, + from e_buffer.h:13, + from e_buffer.cpp:10: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ +stl_fte.h:161:17: note: remove the '< >' +stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 166 | vector(size_type prealloc) : + | ^~~~~~~~~ +stl_fte.h:166:18: note: remove the '< >' +stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 173 | vector(const vector& t) : + | ^ +stl_fte.h:173:17: note: remove the '< >' e_cmds.cpp: In member function 'int EBuffer::MoveWordOrCapEndRight()': e_cmds.cpp:202:11: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 202 | if (P >= L->Count) return 0; @@ -990,31 +931,6 @@ e_cmds.cpp:412:11: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 412 | if (C < X->Count) | ~~^~~~~~~~~~ -In file included from o_cvs.h:16, - from e_cvslog.cpp:16: -o_cvsbase.h:60:22: warning: 'virtual void ECvsBase::ParseLine(const char*, size_t)' was hidden [-Woverloaded-virtual=] - 60 | virtual void ParseLine (const char *line, size_t len); - | ^~~~~~~~~ -o_cvs.h:34:22: note: by 'virtual void ECvs::ParseLine(char*, int)' - 34 | virtual void ParseLine (char *line,int len); - | ^~~~~~~~~ -In file included from fte.h:39, - from console.h:13, - from i_oview.h:13, - from i_modelview.h:13, - from e_file.cpp:10: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ -stl_fte.h:161:17: note: remove the '< >' -stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 166 | vector(size_type prealloc) : - | ^~~~~~~~~ -stl_fte.h:166:18: note: remove the '< >' -stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 173 | vector(const vector& t) : - | ^ -stl_fte.h:173:17: note: remove the '< >' e_cmds.cpp: In member function 'int EBuffer::MoveTabEnd()': e_cmds.cpp:422:11: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 422 | if (C < X->Count) @@ -1030,31 +946,9 @@ e_cmds.cpp:570:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 570 | while ((P < L->Count) && (WGETBIT(Flags.WordChars, L->Chars[P]) == 1) && (WGETBIT(Flags.CapitalChars, L->Chars[P]) == 0)) P++; | ~~^~~~~~~~~~ -e_cvslog.cpp: In member function 'void ECvsLog::ListFiles(int&, int, const char*, int, const int*, const int*, const char*, const char*, const char*, int)': -e_cvslog.cpp:112:22: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 112 | int i=strlen (title); - | ~~~~~~~^~~~~~~ e_cmds.cpp:571:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 571 | } else while ((P < L->Count) && (ChClassK(L->Chars[P]) == Class)) P++; | ~~^~~~~~~~~~ -In file included from fte.h:39, - from console.h:13, - from o_model.h:13, - from o_list.h:14, - from o_buflist.h:13, - from e_line.cpp:10: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ -stl_fte.h:161:17: note: remove the '< >' -stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 166 | vector(size_type prealloc) : - | ^~~~~~~~~ -stl_fte.h:166:18: note: remove the '< >' -stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 173 | vector(const vector& t) : - | ^ -stl_fte.h:173:17: note: remove the '< >' e_cmds.cpp: In member function 'int EBuffer::TypeChar(char)': e_cmds.cpp:833:25: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 833 | if (P >= 0 && P <= L->Count) { @@ -1062,7 +956,6 @@ e_cmds.cpp:854:41: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 854 | Len = strlen(ab->Replace); | ~~~~~~^~~~~~~~~~~~~ -g++ -c e_loadsave.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX e_cmds.cpp: In member function 'int EBuffer::InsertString(const char*, size_t)': e_cmds.cpp:894:7: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 894 | P += aCount; @@ -1082,37 +975,12 @@ e_cmds.cpp:1090:27: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 1090 | for (X = 0; X < lp->Count; X++) { | ~~^~~~~~~~~~~ -e_cmds.cpp:1103:40: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 1103 | firstwordend = lp->Count; - | ~~~~^~~~~ -e_cmds.cpp: In member function 'int EBuffer::InsPrevLineToEol()': -e_cmds.cpp:1199:31: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 1199 | Len = RLine(L)->Count - P; - | ~~~~~~~~~~~~~~~~^~~ -e_line.cpp: In member function 'int EBuffer::ScreenPos(ELine*, int)': -e_line.cpp:53:18: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 53 | int Len = L->Count; - | ~~~^~~~~ -e_line.cpp:65:13: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 65 | Pos += Ofs - L->Count; - | ~~~~^~~~~~~~~~~~~~~~~ -e_line.cpp: In member function 'int EBuffer::CharOffset(ELine*, int)': -e_line.cpp:88:18: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 88 | int Len = L->Count; - | ~~~^~~~~ -e_cmds.cpp: In member function 'int EBuffer::TrimLine(int)': -e_cmds.cpp:1218:12: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 1218 | P = L->Count; - | ~~~^~~~~ -e_cmds.cpp:1222:25: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 1222 | E = ScreenPos(L, L->Count); - | ~~~^~~~~ In file included from fte.h:39, from console.h:13, - from o_model.h:13, - from o_list.h:14, - from o_buflist.h:13, - from e_fold.cpp:11: + from c_hilit.h:14, + from e_buffer.h:13, + from e_cvslog.h:14, + from e_cvslog.cpp:11: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -1125,32 +993,11 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c e_mark.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -e_cvslog.cpp: In constructor 'ECvsLog::ECvsLog(int, EModel**, char*, char*)': -e_cvslog.cpp:91:16: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] - 91 | delete position;delete len;delete status; - | ^~~~~~~~ -e_cvslog.cpp:58:34: note: returned from 'void* operator new [](long unsigned int)' - 58 | int *position=new int[cnt]; - | ^ -e_cvslog.cpp:91:32: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] - 91 | delete position;delete len;delete status; - | ^~~ -e_cvslog.cpp:59:29: note: returned from 'void* operator new [](long unsigned int)' - 59 | int *len=new int[cnt]; - | ^ -e_cvslog.cpp:91:43: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] - 91 | delete position;delete len;delete status; - | ^~~~~~ -e_cvslog.cpp:60:34: note: returned from 'void* operator new [](long unsigned int)' - 60 | char *status=new char[cnt]; - | ^ In file included from fte.h:39, from console.h:13, - from c_hilit.h:14, - from e_buffer.h:13, - from e_cvslog.h:14, - from e_loadsave.cpp:10: + from i_oview.h:13, + from i_modelview.h:13, + from e_file.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -1163,61 +1010,118 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +In file included from o_cvs.h:16, + from e_cvslog.cpp:16: +o_cvsbase.h:60:22: warning: 'virtual void ECvsBase::ParseLine(const char*, size_t)' was hidden [-Woverloaded-virtual=] + 60 | virtual void ParseLine (const char *line, size_t len); + | ^~~~~~~~~ +o_cvs.h:34:22: note: by 'virtual void ECvs::ParseLine(char*, int)' + 34 | virtual void ParseLine (char *line,int len); + | ^~~~~~~~~ +e_cvslog.cpp: In member function 'void ECvsLog::ListFiles(int&, int, const char*, int, const int*, const int*, const char*, const char*, const char*, int)': +e_cvslog.cpp:112:22: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 112 | int i=strlen (title); + | ~~~~~~~^~~~~~~ +e_cmds.cpp:1103:40: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 1103 | firstwordend = lp->Count; + | ~~~~^~~~~ +e_cmds.cpp: In member function 'int EBuffer::InsPrevLineToEol()': +e_cmds.cpp:1199:31: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 1199 | Len = RLine(L)->Count - P; + | ~~~~~~~~~~~~~~~~^~~ +e_cmds.cpp: In member function 'int EBuffer::TrimLine(int)': +e_cmds.cpp:1218:12: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 1218 | P = L->Count; + | ~~~^~~~~ +e_cmds.cpp:1222:25: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 1222 | E = ScreenPos(L, L->Count); + | ~~~^~~~~ +e_buffer.cpp: In member function 'int EBuffer::LineLen(int)': +e_buffer.cpp:593:28: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 593 | return ScreenPos(L, L->Count); + | ~~~^~~~~ +e_buffer.cpp: In member function 'int EBuffer::LineChars(int)': +e_buffer.cpp:598:24: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 598 | return RLine(Row)->Count; + | ~~~~~~~~~~~~^~~~~ +e_buffer.cpp: In member function 'int EBuffer::DelChars(int, int, size_t)': +e_buffer.cpp:751:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 751 | if (Ofs >= L->Count) return 0; + | ~~~~^~~~~~~~~~~ +e_buffer.cpp: In member function 'int EBuffer::InsChars(int, int, size_t, const char*)': +e_buffer.cpp:787:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 787 | if (Ofs > L->Count) return 0; + | ~~~~^~~~~~~~~~ +e_buffer.cpp:801:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 801 | if (L->Count > Ofs) + | ~~~~~~~~~^~~~~ +e_buffer.cpp: In member function 'int EBuffer::UnTabPoint(int, int)': +e_buffer.cpp:821:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 821 | if (Ofs >= L->Count) + | ~~~~^~~~~~~~~~~ +e_buffer.cpp: In member function 'int EBuffer::ChgChars(int, int, size_t, const char*)': +e_buffer.cpp:843:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 843 | if (Ofs > L->Count) return 0; + | ~~~~^~~~~~~~~~ +e_buffer.cpp: In member function 'int EBuffer::DelText(int, int, size_t, int)': +e_buffer.cpp:878:16: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 878 | if (ACount == -1 || ACount + Col > L) + | ~~~~~~~^~~~~ +e_buffer.cpp:878:38: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 878 | if (ACount == -1 || ACount + Col > L) + | ~~~~~~~~~~~~~^~~ +e_buffer.cpp:882:29: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 882 | if (UnTabPoint(Row, Col + ACount) == 0) + | ~~~~^~~~~~~~ +e_buffer.cpp:885:36: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 885 | C = CharOffset(RLine(Row), Col + ACount); + | ~~~~^~~~~~~~ +e_buffer.cpp:888:57: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 888 | if (DoMark) UpdateMarker(umDelete, Row, Col, 0, ACount); + | ^~~~~~ +e_buffer.cpp: In member function 'int EBuffer::InsText(int, int, size_t, const char*, int)': +e_buffer.cpp:902:53: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 902 | if (DoMark) UpdateMarker(umInsert, Row, Col, 0, ACount); + | ^~~~~~ +e_buffer.cpp:905:39: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 905 | if (InsChars(Row, RLine(Row)->Count, Col - L, 0) == 0) + | ~~~~~~~~~~~~^~~~~ +e_buffer.cpp: In member function 'int EBuffer::PadLine(int, size_t)': +e_buffer.cpp:920:39: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 920 | if (InsChars(Row, RLine(Row)->Count, Length - L, 0) == 0) + | ~~~~~~~~~~~~^~~~~ +e_buffer.cpp: In member function 'int EBuffer::InsLineText(int, int, size_t, int, PELine)': +e_buffer.cpp:933:31: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 933 | L = ScreenPos(Line, Line->Count); + | ~~~~~~^~~~~ +e_buffer.cpp:935:16: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 935 | if (ACount == -1) ACount = L - LCol; + | ~~~~~~~^~~~~ +e_buffer.cpp:936:23: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 936 | if (ACount + LCol > L) ACount = L - LCol; + | ~~~~~~~~~~~~~~^~~ +e_buffer.cpp:941:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 941 | if (Ofs < Line->Count && Line->Chars[Ofs] == '\t') { + | ~~~~^~~~~~~~~~~~~ +e_buffer.cpp:953:37: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 953 | C = Ofs = CharOffset(Line, LCol + ACount); + | ~~~~~^~~~~~~~ +e_buffer.cpp:954:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 954 | if (Ofs < Line->Count && Line->Chars[Ofs] == '\t') { + | ~~~~^~~~~~~~~~~~~ +e_buffer.cpp:956:17: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 956 | if (Pos < LCol + ACount) { + | ~~~~^~~~~~~~~~~~~~~ +g++ -c e_line.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c e_loadsave.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c e_mark.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX g++ -c e_print.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -e_loadsave.cpp: In member function 'int EBuffer::LoadFrom(const char*)': -e_loadsave.cpp:147:16: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] - 147 | lm += partLen; - | ~~~^~~~~~~~~~ -e_loadsave.cpp:234:32: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 234 | else len_start = strlen(BFS(this, BFS_CommentStart)); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -e_loadsave.cpp:236:30: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 236 | else len_end = strlen(BFS(this, BFS_CommentEnd)); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -e_loadsave.cpp:255:30: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 255 | if (LL[l]->Count >= len_start + len_end + 6) { - | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -e_loadsave.cpp:265:44: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 265 | pos = LL[l]->Count - len_end; - | ~~~~~~~~~~~~~^~~~~~~~~ -e_loadsave.cpp:286:44: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 286 | if (LL[l]->Count - pos == len_start + len_end) continue; - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -e_loadsave.cpp:298:81: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 298 | if (BFI(this, BFI_SaveFolds) == where && (pos + len_end + 6 <= LL[l]->Count)) { - | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ -e_loadsave.cpp:321:86: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 321 | if (BFI(this, BFI_SaveBookmarks) == where && (pos + len_end + 10 <= LL[l]->Count) && memcmp(LL[l]->Chars + pos, "BOOK", 4) == 0) { - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ -e_loadsave.cpp:327:54: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 327 | while (pos + len_end + 6 + 6 <= LL[l]->Count) { - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ -e_loadsave.cpp:340:55: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 340 | if (pos + i + 6 + len_end > LL[l]->Count || i == 0) { - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -e_loadsave.cpp:364:39: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 364 | if (pos + len_end > LL[l]->Count) continue; - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -e_loadsave.cpp:367:52: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 367 | if (where == 2 && LL[l]->Count != pos + len_end) continue; - | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -e_loadsave.cpp: In member function 'int EBuffer::SaveTo(const char*)': -e_loadsave.cpp:495:56: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] - 495 | if (BFS(this, BFS_CommentStart)) len_start = strlen(BFS(this, BFS_CommentStart)); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -e_loadsave.cpp:496:52: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] - 496 | if (BFS(this, BFS_CommentEnd)) len_end = strlen(BFS(this, BFS_CommentEnd)); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -e_loadsave.cpp:556:62: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 556 | if ((int)(fwrite(L->Chars, 1, L->Count, fp)) != L->Count) - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ -g++ -c e_redraw.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from console.h:13, from c_hilit.h:14, from e_buffer.h:13, - from e_mark.h:4, - from e_mark.cpp:1: + from e_cvslog.h:14, + from e_loadsave.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -1230,11 +1134,12 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c e_regex.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, - from sysdep.h:13, - from c_config.h:13, - from e_print.cpp:10: + from console.h:13, + from c_hilit.h:14, + from e_buffer.h:13, + from e_mark.h:4, + from e_mark.cpp:1: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -1249,8 +1154,10 @@ stl_fte.h:173:17: note: remove the '< >' In file included from fte.h:39, from console.h:13, - from c_bind.h:14, - from e_redraw.cpp:10: + from o_model.h:13, + from o_list.h:14, + from o_buflist.h:13, + from e_fold.cpp:11: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -1263,7 +1170,6 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c e_search.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX cfte.cpp: In function 'int LoadFile(const char*, const char*, int)': cfte.cpp:1885:29: warning: 'localconfig/' directive writing 12 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] 1885 | sprintf(tmp, "%slocalconfig/%s", StartDir, CfgName); @@ -1294,7 +1200,67 @@ | ~~~~~~~~~~~~~~~~~ In file included from fte.h:39, from sysdep.h:13, - from e_regex.cpp:12: + from c_config.h:13, + from e_print.cpp:10: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ +e_loadsave.cpp: In member function 'int EBuffer::LoadFrom(const char*)': +e_loadsave.cpp:147:16: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] + 147 | lm += partLen; + | ~~~^~~~~~~~~~ +e_loadsave.cpp:234:32: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 234 | else len_start = strlen(BFS(this, BFS_CommentStart)); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +e_loadsave.cpp:236:30: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 236 | else len_end = strlen(BFS(this, BFS_CommentEnd)); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +e_loadsave.cpp:255:30: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 255 | if (LL[l]->Count >= len_start + len_end + 6) { + | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ +e_loadsave.cpp:265:44: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 265 | pos = LL[l]->Count - len_end; + | ~~~~~~~~~~~~~^~~~~~~~~ +e_loadsave.cpp:286:44: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 286 | if (LL[l]->Count - pos == len_start + len_end) continue; + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ +e_loadsave.cpp:298:81: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 298 | if (BFI(this, BFI_SaveFolds) == where && (pos + len_end + 6 <= LL[l]->Count)) { + | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ +e_loadsave.cpp:321:86: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 321 | if (BFI(this, BFI_SaveBookmarks) == where && (pos + len_end + 10 <= LL[l]->Count) && memcmp(LL[l]->Chars + pos, "BOOK", 4) == 0) { + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ +e_loadsave.cpp:327:54: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 327 | while (pos + len_end + 6 + 6 <= LL[l]->Count) { + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ +e_loadsave.cpp:340:55: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 340 | if (pos + i + 6 + len_end > LL[l]->Count || i == 0) { + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ +stl_fte.h:161:17: note: remove the '< >' +stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 166 | vector(size_type prealloc) : + | ^~~~~~~~~ +stl_fte.h:166:18: note: remove the '< >' +stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 173 | vector(const vector& t) : + | ^ +stl_fte.h:173:17: note: remove the '< >' +e_loadsave.cpp:364:39: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 364 | if (pos + len_end > LL[l]->Count) continue; + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ +e_loadsave.cpp:367:52: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 367 | if (where == 2 && LL[l]->Count != pos + len_end) continue; + | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ +e_loadsave.cpp: In member function 'int EBuffer::SaveTo(const char*)': +e_loadsave.cpp:495:56: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] + 495 | if (BFS(this, BFS_CommentStart)) len_start = strlen(BFS(this, BFS_CommentStart)); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from fte.h:39, + from console.h:13, + from o_model.h:13, + from o_list.h:14, + from o_buflist.h:13, + from e_line.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -1307,6 +1273,31 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +e_loadsave.cpp:496:52: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] + 496 | if (BFS(this, BFS_CommentEnd)) len_end = strlen(BFS(this, BFS_CommentEnd)); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +e_loadsave.cpp:556:62: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 556 | if ((int)(fwrite(L->Chars, 1, L->Count, fp)) != L->Count) + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ +e_cvslog.cpp: In constructor 'ECvsLog::ECvsLog(int, EModel**, char*, char*)': +e_cvslog.cpp:91:16: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] + 91 | delete position;delete len;delete status; + | ^~~~~~~~ +e_cvslog.cpp:58:34: note: returned from 'void* operator new [](long unsigned int)' + 58 | int *position=new int[cnt]; + | ^ +e_cvslog.cpp:91:32: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] + 91 | delete position;delete len;delete status; + | ^~~ +e_cvslog.cpp:59:29: note: returned from 'void* operator new [](long unsigned int)' + 59 | int *len=new int[cnt]; + | ^ +e_cvslog.cpp:91:43: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] + 91 | delete position;delete len;delete status; + | ^~~~~~ +e_cvslog.cpp:60:34: note: returned from 'void* operator new [](long unsigned int)' + 60 | char *status=new char[cnt]; + | ^ e_print.cpp: In member function 'int EBuffer::BlockPrint()': e_print.cpp:51:25: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 51 | Z = LL->Count; @@ -1336,6 +1327,25 @@ e_print.cpp:166:33: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 166 | BChars += RLine(l)->Count; | ^~~~~ +g++ -c e_redraw.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c e_regex.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +In file included from fte.h:39, + from console.h:13, + from c_bind.h:14, + from e_redraw.cpp:10: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ +stl_fte.h:161:17: note: remove the '< >' +stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 166 | vector(size_type prealloc) : + | ^~~~~~~~~ +stl_fte.h:166:18: note: remove the '< >' +stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 173 | vector(const vector& t) : + | ^ +stl_fte.h:173:17: note: remove the '< >' +g++ -c e_search.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX e_redraw.cpp: In member function 'void EBuffer::Redraw()': e_redraw.cpp:430:48: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 430 | int NumChars = RLine(ActLine)->Count; @@ -1355,6 +1365,33 @@ e_redraw.cpp:494:20: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 494 | fw -= strlen(num); | ~~~^~~~~~~~~~~~~~ +e_line.cpp: In member function 'int EBuffer::ScreenPos(ELine*, int)': +e_line.cpp:53:18: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 53 | int Len = L->Count; + | ~~~^~~~~ +e_line.cpp:65:13: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 65 | Pos += Ofs - L->Count; + | ~~~~^~~~~~~~~~~~~~~~~ +e_line.cpp: In member function 'int EBuffer::CharOffset(ELine*, int)': +e_line.cpp:88:18: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 88 | int Len = L->Count; + | ~~~^~~~~ +In file included from fte.h:39, + from sysdep.h:13, + from e_regex.cpp:12: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ +stl_fte.h:161:17: note: remove the '< >' +stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 166 | vector(size_type prealloc) : + | ^~~~~~~~~ +stl_fte.h:166:18: note: remove the '< >' +stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 173 | vector(const vector& t) : + | ^ +stl_fte.h:173:17: note: remove the '< >' +g++ -c e_svnlog.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from c_history.h:12, from e_search.cpp:10: @@ -1370,7 +1407,7 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c e_svnlog.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c e_tags.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX e_search.cpp: In member function 'int EBuffer::FindStr(const char*, int, SearchReplaceOptions&)': e_search.cpp:148:23: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] 148 | int Options = opt.Options; @@ -1387,7 +1424,6 @@ e_search.cpp:242:19: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 242 | LLen = X->Count; | ~~~^~~~~ -g++ -c e_tags.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX e_search.cpp:303:31: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 303 | C = RLine(L)->Count; | ~~~~~~~~~~^~~~~ @@ -1454,23 +1490,6 @@ e_search.cpp:1175:41: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 1175 | while (len < int(sizeof(word)) && P < L->Count && (ChClass(L->Chars[P]) == 1 || L->Chars[P] == '_')) | ~~^~~~~~~~~~ -g++ -c e_trans.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -In file included from fte.h:39, - from e_tags.h:13, - from e_tags.cpp:9: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ -stl_fte.h:161:17: note: remove the '< >' -stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 166 | vector(size_type prealloc) : - | ^~~~~~~~~ -stl_fte.h:166:18: note: remove the '< >' -stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 173 | vector(const vector& t) : - | ^ -stl_fte.h:173:17: note: remove the '< >' -g++ -c e_undo.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from console.h:13, from c_hilit.h:14, @@ -1480,17 +1499,6 @@ stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ -e_tags.cpp: In function 'int AllocMem(const char*, size_t, int*)': -e_tags.cpp:72:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 72 | while (N < (TagLen + Len)) - | ~~^~~~~~~~~~~~~~~~ -e_tags.cpp:81:12: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 81 | TagLen += Len; - | ~~~~~~~^~~~~~ -e_tags.cpp: In function 'int TagsLoad(int)': -e_tags.cpp:194:18: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 194 | TagL = p - LTag; - | ~~^~~~~~ stl_fte.h:161:17: note: remove the '< >' stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 166 | vector(size_type prealloc) : @@ -1500,28 +1508,7 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -e_tags.cpp:199:19: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 199 | FileL = p - LFile; - | ~~^~~~~~~ -e_tags.cpp: In function 'int GotoTag(int, EView*)': -e_tags.cpp:370:76: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 370 | if (!((EBuffer *)ActiveModel)->FindStr(TagMem + TT->StrFind, strlen(TagMem + TT->StrFind), 0)) - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -e_tags.cpp:373:63: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 373 | ((EBuffer *)ActiveModel)->FindStr(TagMem + TT->Tag, strlen(TagMem + TT->Tag), 0); - | ~~~~~~^~~~~~~~~~~~~~~~~~ -e_tags.cpp: In function 'int PushPos(EBuffer*)': -e_tags.cpp:381:15: warning: unused variable 'T' [-Wunused-variable] - 381 | TagStack* T = TagStack::TStack; - | ^ -e_tags.cpp: In function 'int TagComplete(char**, int*, int, const char*)': -e_tags.cpp:493:39: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 493 | int L = 0, R = CTags, len = strlen(Tag); - | ~~~~~~^~~~~ -e_tags.cpp:508:64: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 508 | int l = strlen(TagMem + TagD[TagI[N]].Tag) - len; - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -g++ -c fte.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c e_trans.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from o_svn.h:12, from e_svnlog.cpp:17: o_svnbase.h:60:22: warning: 'virtual void ESvnBase::ParseLine(char*, size_t)' was hidden [-Woverloaded-virtual=] @@ -1530,7 +1517,34 @@ o_svn.h:32:22: note: by 'virtual void ESvn::ParseLine(char*, int)' 32 | virtual void ParseLine (char *line,int len); | ^~~~~~~~~ -g++ -c gui.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +e_svnlog.cpp: In member function 'void ESvnLog::ListFiles(int&, int, const char*, int, const int*, const int*, const char*, const char*, const char*, int)': +e_svnlog.cpp:119:21: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 119 | InsText (p,i+=5,5, " file"); + | ~^~~ +e_svnlog.cpp:121:36: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 121 | if (fCount!=1) InsText (p,i++,1, "s"); + | ~^~ +e_svnlog.cpp:122:22: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 122 | InsText (p++,i,1, ":"); + | ^ +e_svnlog.cpp:123:19: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'const int' [-Wsign-compare] + 123 | for (i=0;i() : + | ^ +stl_fte.h:161:17: note: remove the '< >' +stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 166 | vector(size_type prealloc) : + | ^~~~~~~~~ +stl_fte.h:166:18: note: remove the '< >' +stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 173 | vector(const vector& t) : + | ^ +stl_fte.h:173:17: note: remove the '< >' In file included from fte.h:39, from c_history.h:12, from e_trans.cpp:10: @@ -1546,32 +1560,10 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -e_svnlog.cpp: In member function 'void ESvnLog::ListFiles(int&, int, const char*, int, const int*, const int*, const char*, const char*, const char*, int)': -e_svnlog.cpp:119:21: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 119 | InsText (p,i+=5,5, " file"); - | ~^~~ -e_svnlog.cpp:121:36: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 121 | if (fCount!=1) InsText (p,i++,1, "s"); - | ~^~ -e_svnlog.cpp:122:22: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 122 | InsText (p++,i,1, ":"); - | ^ -e_svnlog.cpp:123:19: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'const int' [-Wsign-compare] - 123 | for (i=0;iCount; | ~~~~^~~~~ -In file included from fte.h:39, - from sysdep.h:13, - from c_config.h:13, - from fte.cpp:10: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ -stl_fte.h:161:17: note: remove the '< >' e_trans.cpp:126:25: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 126 | E = LL->Count; | ~~~~^~~~~ @@ -1581,27 +1573,71 @@ e_trans.cpp:136:15: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 136 | if (B > LL->Count) | ~~^~~~~~~~~~~ -stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 166 | vector(size_type prealloc) : - | ^~~~~~~~~ -stl_fte.h:166:18: note: remove the '< >' e_trans.cpp:137:21: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 137 | B = LL->Count; | ~~~~^~~~~ e_trans.cpp:138:15: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 138 | if (E > LL->Count) | ~~^~~~~~~~~~~ -stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 173 | vector(const vector& t) : - | ^ e_trans.cpp:139:21: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 139 | E = LL->Count; | ~~~~^~~~~ -stl_fte.h:173:17: note: remove the '< >' e_trans.cpp: In member function 'int EBuffer::LineTrans(unsigned char*)': e_trans.cpp:166:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 166 | for (I = 0; I < L->Count; I++) | ~~^~~~~~~~~~ +e_tags.cpp: In function 'int AllocMem(const char*, size_t, int*)': +e_tags.cpp:72:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 72 | while (N < (TagLen + Len)) + | ~~^~~~~~~~~~~~~~~~ +e_tags.cpp:81:12: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 81 | TagLen += Len; + | ~~~~~~~^~~~~~ +e_tags.cpp: In function 'int TagsLoad(int)': +e_tags.cpp:194:18: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 194 | TagL = p - LTag; + | ~~^~~~~~ +e_tags.cpp:199:19: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 199 | FileL = p - LFile; + | ~~^~~~~~~ +e_tags.cpp: In function 'int GotoTag(int, EView*)': +e_tags.cpp:370:76: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 370 | if (!((EBuffer *)ActiveModel)->FindStr(TagMem + TT->StrFind, strlen(TagMem + TT->StrFind), 0)) + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ +e_tags.cpp:373:63: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 373 | ((EBuffer *)ActiveModel)->FindStr(TagMem + TT->Tag, strlen(TagMem + TT->Tag), 0); + | ~~~~~~^~~~~~~~~~~~~~~~~~ +e_tags.cpp: In function 'int PushPos(EBuffer*)': +e_tags.cpp:381:15: warning: unused variable 'T' [-Wunused-variable] + 381 | TagStack* T = TagStack::TStack; + | ^ +e_tags.cpp: In function 'int TagComplete(char**, int*, int, const char*)': +e_tags.cpp:493:39: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 493 | int L = 0, R = CTags, len = strlen(Tag); + | ~~~~~~^~~~~ +e_tags.cpp:508:64: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 508 | int l = strlen(TagMem + TagD[TagI[N]].Tag) - len; + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ +e_svnlog.cpp: In constructor 'ESvnLog::ESvnLog(int, EModel**, char*, char*)': +e_svnlog.cpp:95:16: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] + 95 | delete position;delete len;delete status; + | ^~~~~~~~ +e_svnlog.cpp:61:34: note: returned from 'void* operator new [](long unsigned int)' + 61 | int *position=new int[cnt]; + | ^ +e_svnlog.cpp:95:32: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] + 95 | delete position;delete len;delete status; + | ^~~ +e_svnlog.cpp:62:29: note: returned from 'void* operator new [](long unsigned int)' + 62 | int *len=new int[cnt]; + | ^ +e_svnlog.cpp:95:43: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] + 95 | delete position;delete len;delete status; + | ^~~~~~ +e_svnlog.cpp:63:34: note: returned from 'void* operator new [](long unsigned int)' + 63 | char *status=new char[cnt]; + | ^ +g++ -c e_undo.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from console.h:13, from o_model.h:13, @@ -1620,22 +1656,6 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -In file included from fte.h:39, - from console.h:13, - from gui.h:13, - from gui.cpp:2: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ -stl_fte.h:161:17: note: remove the '< >' -stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 166 | vector(size_type prealloc) : - | ^~~~~~~~~ -stl_fte.h:166:18: note: remove the '< >' -stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 173 | vector(const vector& t) : - | ^ -stl_fte.h:173:17: note: remove the '< >' e_undo.cpp: In member function 'int EBuffer::PushUData(const void*, size_t)': e_undo.cpp:124:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 124 | while (Order < (US.Top[N] + len)) Order <<= 1; @@ -1721,9 +1741,12 @@ e_undo.cpp:343:68: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] 343 | if (PlaceUserBookmark ((const char *)data,EPoint (Line,Col))==0) return 0; | ^~~ +g++ -c fte.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c gui.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from console.h:13, - from g_draw.cpp:10: + from gui.h:13, + from gui.cpp:2: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -1736,11 +1759,12 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +g++ -c g_draw.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX g++ -c g_menu.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, - from console.h:13, - from gui.h:13, - from g_menu.cpp:10: + from sysdep.h:13, + from c_config.h:13, + from fte.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -1753,34 +1777,28 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -e_svnlog.cpp: In constructor 'ESvnLog::ESvnLog(int, EModel**, char*, char*)': -e_svnlog.cpp:95:16: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] - 95 | delete position;delete len;delete status; - | ^~~~~~~~ -e_svnlog.cpp:61:34: note: returned from 'void* operator new [](long unsigned int)' - 61 | int *position=new int[cnt]; - | ^ -e_svnlog.cpp:95:32: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] - 95 | delete position;delete len;delete status; - | ^~~ -e_svnlog.cpp:62:29: note: returned from 'void* operator new [](long unsigned int)' - 62 | int *len=new int[cnt]; - | ^ -e_svnlog.cpp:95:43: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] - 95 | delete position;delete len;delete status; - | ^~~~~~ -e_svnlog.cpp:63:34: note: returned from 'void* operator new [](long unsigned int)' - 63 | char *status=new char[cnt]; - | ^ g++ -c h_ada.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX g++ -c h_c.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +In file included from fte.h:39, + from console.h:13, + from g_draw.cpp:10: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ +stl_fte.h:161:17: note: remove the '< >' +stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 166 | vector(size_type prealloc) : + | ^~~~~~~~~ +stl_fte.h:166:18: note: remove the '< >' +stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 173 | vector(const vector& t) : + | ^ +stl_fte.h:173:17: note: remove the '< >' g++ -c h_catbs.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c h_fte.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c h_ipf.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c h_make.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c h_msg.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, - from h_c.cpp:10: + from console.h:13, + from gui.h:13, + from g_menu.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -1793,6 +1811,7 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +g++ -c h_fte.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from h_ada.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] @@ -1807,6 +1826,33 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +In file included from fte.h:39, + from h_c.cpp:10: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ +stl_fte.h:161:17: note: remove the '< >' +stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 166 | vector(size_type prealloc) : + | ^~~~~~~~~ +stl_fte.h:166:18: note: remove the '< >' +stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 173 | vector(const vector& t) : + | ^ +stl_fte.h:173:17: note: remove the '< >' +h_ada.cpp: In function 'int Hilit_ADA(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': +h_ada.cpp:30:16: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 30 | int len1 = len; + | ^~~ +h_ada.cpp:52:31: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 52 | x = i + j; + | ~~^~~ +h_ada.cpp:53:35: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 53 | while ((x < Line->Count) && + | ~~^~~~~~~~~~~~~ +h_ada.cpp:55:32: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 55 | if ((x < Line->Count) && (Line->Chars[x] == '(')) { + | ~~^~~~~~~~~~~~~ h_c.cpp: In function 'int Hilit_C(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': h_c.cpp:44:16: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 44 | int len1 = len; @@ -1826,19 +1872,6 @@ h_c.cpp:81:46: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 81 | && (x == Line->Count - 1 | ~~^~~~~~~~~~~~~~~~~~ -h_ada.cpp: In function 'int Hilit_ADA(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': -h_ada.cpp:30:16: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 30 | int len1 = len; - | ^~~ -h_ada.cpp:52:31: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 52 | x = i + j; - | ~~^~~ -h_ada.cpp:53:35: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 53 | while ((x < Line->Count) && - | ~~^~~~~~~~~~~~~ -h_ada.cpp:55:32: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 55 | if ((x < Line->Count) && (Line->Chars[x] == '(')) { - | ~~^~~~~~~~~~~~~ h_c.cpp: In function 'int LookAt(EBuffer*, int, unsigned int, const char*, hsState, int, int)': h_c.cpp:368:43: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 368 | unsigned uLineLength = B->RLine(Row)->Count; @@ -1850,7 +1883,6 @@ h_c.cpp:473:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 473 | while (P < L->Count) { | ~~^~~~~~~~~~ -g++ -c h_pascal.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX h_c.cpp: In function 'int SearchBackMatch(int, EBuffer*, int, hsState, const char*, const char*, int*, int*, int, int)': h_c.cpp:504:28: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 504 | L = B->RLine(Row)->Count; @@ -1881,15 +1913,11 @@ h_c.cpp:897:36: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 897 | L = B->RLine(Row)->Count; | ~~~~~~~~~~~~~~~^~~~~ -fte.cpp: In function 'int main(int, char**)': -fte.cpp:315:16: warning: ignoring return value of 'int seteuid(__uid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] - 315 | seteuid(getuid()); - | ~~~~~~~^~~~~~~~~~ -fte.cpp:317:16: warning: ignoring return value of 'int setegid(__gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] - 317 | setegid(getgid()); - | ~~~~~~~^~~~~~~~~~ +g++ -c h_ipf.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c h_make.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c h_msg.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, - from h_make.cpp:10: + from h_catbs.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -1916,8 +1944,12 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +h_fte.cpp: In function 'int Hilit_FTE(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': +h_fte.cpp:32:16: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 32 | int len1 = len; + | ^~~ In file included from fte.h:39, - from h_msg.cpp:10: + from h_ipf.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -1930,8 +1962,9 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +g++ -c h_pascal.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, - from h_catbs.cpp:10: + from h_make.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -1944,22 +1977,13 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +g++ -c h_perl.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX h_make.cpp: In function 'int Hilit_MAKE(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': h_make.cpp:24:16: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 24 | int len1 = len; | ^~~ -h_msg.cpp: In function 'int Hilit_MSG(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': -h_msg.cpp:133:17: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 133 | if (Pos < Line->Count) { - | ~~~~^~~~~~~~~~~~~ -h_msg.cpp:134:29: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 134 | if (Pos + Width < Line->Count) { - | ~~~~~~~~~~~~^~~~~~~~~~~~~ -h_msg.cpp:146:19: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 146 | C = Line->Count; - | ~~~~~~^~~~~ In file included from fte.h:39, - from h_ipf.cpp:10: + from h_msg.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -1972,10 +1996,7 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -h_fte.cpp: In function 'int Hilit_FTE(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': -h_fte.cpp:32:16: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 32 | int len1 = len; - | ^~~ +g++ -c h_plain.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from h_pascal.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] @@ -1990,20 +2011,6 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c h_perl.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c h_plain.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c h_rexx.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c h_sh.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -e_search.cpp: In member function 'int EBuffer::SearchWord(int)': -e_search.cpp:1160:15: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] - 1160 | word[len] = 0; - | ~~~~~~~~~~^~~ -e_search.cpp:1150:10: note: at offset 513 into destination object 'word' of size 513 - 1150 | char word[MAXSEARCH + 1]; - | ^~~~ -g++ -c h_simple.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c h_tex.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c indent.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from h_perl.cpp:21: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] @@ -2018,13 +2025,31 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -e_search.cpp: In member function 'int EBuffer::FindTagWord(ExState&)': -e_search.cpp:1177:15: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] - 1177 | word[len] = 0; - | ~~~~~~~~~~^~~ -e_search.cpp:1168:10: note: at offset 513 into destination object 'word' of size 513 - 1168 | char word[MAXSEARCH + 1]; - | ^~~~ +h_msg.cpp: In function 'int Hilit_MSG(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': +h_msg.cpp:133:17: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 133 | if (Pos < Line->Count) { + | ~~~~^~~~~~~~~~~~~ +h_msg.cpp:134:29: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 134 | if (Pos + Width < Line->Count) { + | ~~~~~~~~~~~~^~~~~~~~~~~~~ +h_msg.cpp:146:19: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 146 | C = Line->Count; + | ~~~~~~^~~~~ +g++ -c h_rexx.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c h_sh.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +h_perl.cpp: In function 'int Hilit_PERL(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': +h_perl.cpp:241:31: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 241 | x = i + j; + | ~~^~~ +h_perl.cpp:242:35: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 242 | while ((x < Line->Count) && + | ~~^~~~~~~~~~~~~ +h_perl.cpp:244:32: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 244 | if ((x < Line->Count) && (Line->Chars[x] == '(')) { + | ~~^~~~~~~~~~~~~ +h_perl.cpp:455:44: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 455 | hereDocKeyLen < len && ( + | ~~~~~~~~~~~~~~^~~~~ In file included from fte.h:39, from h_plain.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] @@ -2039,19 +2064,16 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -h_perl.cpp: In function 'int Hilit_PERL(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': -h_perl.cpp:241:31: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 241 | x = i + j; - | ~~^~~ -h_perl.cpp:242:35: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 242 | while ((x < Line->Count) && - | ~~^~~~~~~~~~~~~ -h_perl.cpp:244:32: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 244 | if ((x < Line->Count) && (Line->Chars[x] == '(')) { - | ~~^~~~~~~~~~~~~ -h_perl.cpp:455:44: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 455 | hereDocKeyLen < len && ( - | ~~~~~~~~~~~~~~^~~~~ +h_plain.cpp: In function 'int Hilit_Plain(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': +h_plain.cpp:65:17: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 65 | if (Pos < Line->Count) { + | ~~~~^~~~~~~~~~~~~ +h_plain.cpp:66:29: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 66 | if (Pos + Width < Line->Count) { + | ~~~~~~~~~~~~^~~~~~~~~~~~~ +h_plain.cpp:78:19: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 78 | C = Line->Count; + | ~~~~~~^~~~~ In file included from fte.h:39, from h_sh.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] @@ -2066,8 +2088,24 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +h_sh.cpp: In function 'int Hilit_SH(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': +h_sh.cpp:69:32: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 69 | while (len > j + | ~~~~^~~ +h_sh.cpp:175:36: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 175 | while (len > j && (isspace(p[j]) || p[j] == '\'' || p[j] == '"')) + | ~~~~^~~ +h_sh.cpp:178:36: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 178 | while (len > j && !(isspace(p[j]) || p[j] == '\'' || p[j] == '"')) + | ~~~~^~~ +h_sh.cpp:180:33: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 180 | if (len > j && (p[j] == '\'' || p[j] == '"')) j++; + | ~~~~^~~ +h_sh.cpp:270:23: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 270 | j += len - 1; + | ~~^~~~~~~~~~ In file included from fte.h:39, - from h_simple.cpp:10: + from h_rexx.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -2080,15 +2118,58 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +g++ -c h_simple.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c h_tex.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c indent.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +h_rexx.cpp: In function 'int Hilit_REXX(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': +h_rexx.cpp:79:35: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 79 | x = i + j; + | ~~^~~ +h_rexx.cpp:80:36: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 80 | if ((x < Line->Count) && (Line->Chars[x] == '(')) { + | ~~^~~~~~~~~~~~~ +h_rexx.cpp: In function 'int Match(int, int, hsState*, const char*, const char*, hsState)': +h_rexx.cpp:162:19: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 162 | int L = strlen(String); + | ~~~~~~^~~~~~~~ +h_rexx.cpp: In function 'int Match2(int, int, hsState*, const char*, const char*, hsState)': +h_rexx.cpp:172:19: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 172 | int L = strlen(String); + | ~~~~~~^~~~~~~~ +h_rexx.cpp: In function 'int SearchMatch(int, EBuffer*, int, int)': +h_rexx.cpp:202:28: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 202 | L = B->RLine(Row)->Count; + | ~~~~~~~~~~~~~~~^~~~~ +h_rexx.cpp:215:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 215 | if (StateMap) + | ^~ +h_rexx.cpp:217:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 217 | if( Ctx == 3 ) + | ^~ +h_rexx.cpp: In function 'int CheckLabel(EBuffer*, int)': +h_rexx.cpp:262:15: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 262 | while ((P < L->Count) && + | ~~^~~~~~~~~~ +h_rexx.cpp:264:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 264 | while (P < L->Count) { + | ~~^~~~~~~~~~ +h_rexx.cpp: In function 'int SearchBackContext(EBuffer*, int, char&)': +h_rexx.cpp:286:28: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 286 | L = B->RLine(Row)->Count; + | ~~~~~~~~~~~~~~~^~~~~ +g++ -c i_ascii.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +fte.cpp: In function 'int main(int, char**)': +fte.cpp:315:16: warning: ignoring return value of 'int seteuid(__uid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] + 315 | seteuid(getuid()); + | ~~~~~~~^~~~~~~~~~ +fte.cpp:317:16: warning: ignoring return value of 'int setegid(__gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] + 317 | setegid(getgid()); + | ~~~~~~~^~~~~~~~~~ In file included from fte.h:39, - from h_rexx.cpp:10: + from h_simple.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ -h_sh.cpp: In function 'int Hilit_SH(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': -h_sh.cpp:69:32: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 69 | while (len > j - | ~~~~^~~ stl_fte.h:161:17: note: remove the '< >' stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 166 | vector(size_type prealloc) : @@ -2098,6 +2179,13 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +e_search.cpp: In member function 'int EBuffer::SearchWord(int)': +e_search.cpp:1160:15: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] + 1160 | word[len] = 0; + | ~~~~~~~~~~^~~ +e_search.cpp:1150:10: note: at offset 513 into destination object 'word' of size 513 + 1150 | char word[MAXSEARCH + 1]; + | ^~~~ h_simple.cpp: In function 'int Hilit_SIMPLE(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': h_simple.cpp:42:17: warning: conversion from 'int' to 'ChColor' {aka 'unsigned char'} may change value [-Wconversion] 42 | Color = st->color; @@ -2114,34 +2202,15 @@ h_simple.cpp:103:34: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 103 | matchFlags = tr->matchFlags; | ~~~~^~~~~~~~~~ -h_plain.cpp: In function 'int Hilit_Plain(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': -h_plain.cpp:65:17: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 65 | if (Pos < Line->Count) { - | ~~~~^~~~~~~~~~~~~ h_simple.cpp:111:25: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 111 | if (len < matchLen) | ~~~~^~~~~~~~~~ -h_plain.cpp:66:29: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 66 | if (Pos + Width < Line->Count) { - | ~~~~~~~~~~~~^~~~~~~~~~~~~ -h_plain.cpp:78:19: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 78 | C = Line->Count; - | ~~~~~~^~~~~ -h_sh.cpp:175:36: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 175 | while (len > j && (isspace(p[j]) || p[j] == '\'' || p[j] == '"')) - | ~~~~^~~ h_simple.cpp:121:87: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 121 | if (b.Open[1] != -1 && b.Close[1] != -1) matchLen = b.Open[1] - i; | ~~~~~~~~~~^~~ h_simple.cpp:122:52: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 122 | else matchLen = b.Close[0] - i; | ~~~~~~~~~~~^~~ -h_sh.cpp:178:36: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 178 | while (len > j && !(isspace(p[j]) || p[j] == '\'' || p[j] == '"')) - | ~~~~^~~ -h_sh.cpp:180:33: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] - 180 | if (len > j && (p[j] == '\'' || p[j] == '"')) j++; - | ~~~~^~~ h_simple.cpp:139:26: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 139 | if ((len != matchLen) && (matchFlags & MATCH_MUST_EOL)) | ~~~~^~~~~~~~~~~ @@ -2157,9 +2226,6 @@ h_simple.cpp:161:33: warning: conversion from 'int' to 'hlState' {aka 'short unsigned int'} may change value [-Wconversion] 161 | State = nextState; | ^~~~~~~~~ -h_sh.cpp:270:23: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 270 | j += len - 1; - | ~~^~~~~~~~~~ h_simple.cpp:187:29: warning: conversion from 'int' to 'ChColor' {aka 'unsigned char'} may change value [-Wconversion] 187 | Color = st->color; | ~~~~^~~~~ @@ -2181,6 +2247,18 @@ h_simple.cpp:224:37: warning: conversion from 'int' to 'ChColor' {aka 'unsigned char'} may change value [-Wconversion] 224 | Color = st->color; | ~~~~^~~~~ +h_simple.cpp:238:37: warning: conversion from 'int' to 'ChColor' {aka 'unsigned char'} may change value [-Wconversion] + 238 | Color = st->color; + | ~~~~^~~~~ +h_simple.cpp:244:21: warning: conversion from 'int' to 'ChColor' {aka 'unsigned char'} may change value [-Wconversion] + 244 | Color = st->color; + | ~~~~^~~~~ +h_simple.cpp:256:26: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 256 | matchFlags = tr->matchFlags; + | ~~~~^~~~~~~~~~ +h_simple.cpp:268:21: warning: conversion from 'int' to 'hlState' {aka 'short unsigned int'} may change value [-Wconversion] + 268 | State = nextState; + | ^~~~~~~~~ In file included from fte.h:39, from console.h:13, from c_hilit.h:14, @@ -2198,18 +2276,6 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -h_simple.cpp:238:37: warning: conversion from 'int' to 'ChColor' {aka 'unsigned char'} may change value [-Wconversion] - 238 | Color = st->color; - | ~~~~^~~~~ -h_simple.cpp:244:21: warning: conversion from 'int' to 'ChColor' {aka 'unsigned char'} may change value [-Wconversion] - 244 | Color = st->color; - | ~~~~^~~~~ -h_simple.cpp:256:26: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 256 | matchFlags = tr->matchFlags; - | ~~~~^~~~~~~~~~ -h_simple.cpp:268:21: warning: conversion from 'int' to 'hlState' {aka 'short unsigned int'} may change value [-Wconversion] - 268 | State = nextState; - | ^~~~~~~~~ In file included from fte.h:39, from h_tex.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] @@ -2224,46 +2290,6 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c i_ascii.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -h_rexx.cpp: In function 'int Hilit_REXX(EBuffer*, int, PCell, int, int, ELine*, hlState&, hsState*, int*)': -h_rexx.cpp:79:35: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 79 | x = i + j; - | ~~^~~ -h_rexx.cpp:80:36: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 80 | if ((x < Line->Count) && (Line->Chars[x] == '(')) { - | ~~^~~~~~~~~~~~~ -h_rexx.cpp: In function 'int Match(int, int, hsState*, const char*, const char*, hsState)': -h_rexx.cpp:162:19: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 162 | int L = strlen(String); - | ~~~~~~^~~~~~~~ -h_rexx.cpp: In function 'int Match2(int, int, hsState*, const char*, const char*, hsState)': -h_rexx.cpp:172:19: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 172 | int L = strlen(String); - | ~~~~~~^~~~~~~~ -h_rexx.cpp: In function 'int SearchMatch(int, EBuffer*, int, int)': -h_rexx.cpp:202:28: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 202 | L = B->RLine(Row)->Count; - | ~~~~~~~~~~~~~~~^~~~~ -h_rexx.cpp:215:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 215 | if (StateMap) - | ^~ -h_rexx.cpp:217:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 217 | if( Ctx == 3 ) - | ^~ -g++ -c i_choice.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -h_rexx.cpp: In function 'int CheckLabel(EBuffer*, int)': -h_rexx.cpp:262:15: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 262 | while ((P < L->Count) && - | ~~^~~~~~~~~~ -h_rexx.cpp:264:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 264 | while (P < L->Count) { - | ~~^~~~~~~~~~ -h_rexx.cpp: In function 'int SearchBackContext(EBuffer*, int, char&)': -h_rexx.cpp:286:28: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 286 | L = B->RLine(Row)->Count; - | ~~~~~~~~~~~~~~~^~~~~ -g++ -c i_complete.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c i_input.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from console.h:13, from i_ascii.h:13, @@ -2280,6 +2306,15 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +e_search.cpp: In member function 'int EBuffer::FindTagWord(ExState&)': +e_search.cpp:1177:15: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] + 1177 | word[len] = 0; + | ~~~~~~~~~~^~~ +e_search.cpp:1168:10: note: at offset 513 into destination object 'word' of size 513 + 1168 | char word[MAXSEARCH + 1]; + | ^~~~ +g++ -c i_choice.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c i_complete.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from console.h:13, from i_oview.h:13, @@ -2298,6 +2333,52 @@ | ^ stl_fte.h:173:17: note: remove the '< >' In file included from fte.h:39, + from console.h:13, + from i_oview.h:13, + from i_complete.h:13, + from i_complete.cpp:10: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ +stl_fte.h:161:17: note: remove the '< >' +stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 166 | vector(size_type prealloc) : + | ^~~~~~~~~ +stl_fte.h:166:18: note: remove the '< >' +stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 173 | vector(const vector& t) : + | ^ +stl_fte.h:173:17: note: remove the '< >' +h_simple.cpp:72:29: warning: 'iterCount' may be used uninitialized [-Wmaybe-uninitialized] + 72 | if (++iterCount > hm->stateCount) { + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ +h_simple.cpp:33:9: note: 'iterCount' was declared here + 33 | int iterCount; + | ^~~~~~~~~ +h_simple.cpp:80:39: warning: 'entryState' may be used uninitialized [-Wmaybe-uninitialized] + 80 | Color = hm->state[entryState].color; + | ^~~~~~~~~~ +h_simple.cpp:32:13: note: 'entryState' was declared here + 32 | hlState entryState; + | ^~~~~~~~~~ +g++ -c i_input.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c i_key.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +i_complete.cpp: In member function 'int ExComplete::DoCompleteWord()': +i_complete.cpp:78:36: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 78 | && Buffer->SetPos(Orig.Col + l, Orig.Row)) { + | ~~~~~~~~~^~~ +i_complete.cpp: In member function 'int ExComplete::RefreshComplete()': +i_complete.cpp:267:17: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 267 | if (!P || P > L->Count) + | ~~^~~~~~~~~~ +i_complete.cpp:297:48: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] + 297 | while (Buffer->FindStr(L->Chars + P, wlen, mask) == 1) { + | ^~~~ +i_complete.cpp:307:20: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 307 | while ((XL < M->Count) && CheckASCII(M->Chars[XL])) + | ~~~^~~~~~~~~~ +g++ -c i_modelview.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +In file included from fte.h:39, from sysdep.h:13, from c_config.h:13, from i_input.cpp:11: @@ -2313,8 +2394,24 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c i_key.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c i_modelview.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c i_oview.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +In file included from fte.h:39, + from console.h:13, + from i_oview.h:13, + from i_modelview.h:13, + from i_modelview.cpp:10: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ +stl_fte.h:161:17: note: remove the '< >' +stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 166 | vector(size_type prealloc) : + | ^~~~~~~~~ +stl_fte.h:166:18: note: remove the '< >' +stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 173 | vector(const vector& t) : + | ^ +stl_fte.h:173:17: note: remove the '< >' i_input.cpp: In constructor 'ExInput::ExInput(const char*, const char*, size_t, Completer, int, int)': i_input.cpp:37:17: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 37 | Pos = strlen(Line); @@ -2335,18 +2432,9 @@ i_input.cpp:185:29: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 185 | Pos = strlen(Line); | ~~~~~~^~~~~~ -In file included from fte.h:39, - from console.h:13, - from i_oview.h:13, - from i_complete.h:13, - from i_complete.cpp:10: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ i_input.cpp:206:33: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 206 | Pos = strlen(Line); | ~~~~~~^~~~~~ -g++ -c i_oview.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX i_input.cpp: In member function 'virtual void ExInput::RepaintStatus()': i_input.cpp:244:26: warning: conversion from 'fte::string::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 244 | FPos = Prompt.size() + 2; @@ -2354,27 +2442,6 @@ i_input.cpp:248:21: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 248 | Pos = strlen(Line); | ~~~~~~^~~~~~ -stl_fte.h:161:17: note: remove the '< >' -stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 166 | vector(size_type prealloc) : - | ^~~~~~~~~ -stl_fte.h:166:18: note: remove the '< >' -stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 173 | vector(const vector& t) : - | ^ -stl_fte.h:173:17: note: remove the '< >' -h_simple.cpp:72:29: warning: 'iterCount' may be used uninitialized [-Wmaybe-uninitialized] - 72 | if (++iterCount > hm->stateCount) { - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -h_simple.cpp:33:9: note: 'iterCount' was declared here - 33 | int iterCount; - | ^~~~~~~~~ -h_simple.cpp:80:39: warning: 'entryState' may be used uninitialized [-Wmaybe-uninitialized] - 80 | Color = hm->state[entryState].color; - | ^~~~~~~~~~ -h_simple.cpp:32:13: note: 'entryState' was declared here - 32 | hlState entryState; - | ^~~~~~~~~~ In file included from fte.h:39, from console.h:13, from i_oview.h:13, @@ -2392,37 +2459,6 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -i_complete.cpp: In member function 'int ExComplete::DoCompleteWord()': -i_complete.cpp:78:36: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 78 | && Buffer->SetPos(Orig.Col + l, Orig.Row)) { - | ~~~~~~~~~^~~ -i_complete.cpp: In member function 'int ExComplete::RefreshComplete()': -i_complete.cpp:267:17: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 267 | if (!P || P > L->Count) - | ~~^~~~~~~~~~ -i_complete.cpp:297:48: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] - 297 | while (Buffer->FindStr(L->Chars + P, wlen, mask) == 1) { - | ^~~~ -i_complete.cpp:307:20: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 307 | while ((XL < M->Count) && CheckASCII(M->Chars[XL])) - | ~~~^~~~~~~~~~ -In file included from fte.h:39, - from console.h:13, - from i_oview.h:13, - from i_modelview.h:13, - from i_modelview.cpp:10: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ -stl_fte.h:161:17: note: remove the '< >' -stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 166 | vector(size_type prealloc) : - | ^~~~~~~~~ -stl_fte.h:166:18: note: remove the '< >' -stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 173 | vector(const vector& t) : - | ^ -stl_fte.h:173:17: note: remove the '< >' In file included from fte.h:39, from console.h:13, from gui.h:13, @@ -2461,7 +2497,6 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c o_buflist.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from console.h:13, from gui.h:13, @@ -2479,23 +2514,6 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c o_cvs.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -In file included from fte.h:39, - from sysdep.h:13, - from c_config.h:13, - from o_buffer.cpp:11: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ -stl_fte.h:161:17: note: remove the '< >' -stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 166 | vector(size_type prealloc) : - | ^~~~~~~~~ -stl_fte.h:166:18: note: remove the '< >' -stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 173 | vector(const vector& t) : - | ^ -stl_fte.h:173:17: note: remove the '< >' i_view.cpp: In member function 'int GxView::GetStr(const char*, size_t, char*, int)': i_view.cpp:182:40: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 182 | return DLGGetStr(this, Prompt, BufLen, Str, HistId, 0); @@ -2508,6 +2526,8 @@ i_view.cpp:215:51: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] 215 | rc = DLGPickChoice(this, Title, NSel, ap, Flags); | ^~~~~ +g++ -c o_buflist.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c o_cvs.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from console.h:13, from o_model.h:13, @@ -2526,42 +2546,11 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -In file included from o_cvsdiff.h:17, - from o_buffer.cpp:19: -o_cvsbase.h:60:22: warning: 'virtual void ECvsBase::ParseLine(const char*, size_t)' was hidden [-Woverloaded-virtual=] - 60 | virtual void ParseLine (const char *line, size_t len); - | ^~~~~~~~~ -o_cvsdiff.h:28:22: note: by 'virtual void ECvsDiff::ParseLine(char*, int)' - 28 | virtual void ParseLine (char *line,int len); - | ^~~~~~~~~ -In file included from o_svndiff.h:17, - from o_buffer.cpp:21: -o_svnbase.h:60:22: warning: 'virtual void ESvnBase::ParseLine(char*, size_t)' was hidden [-Woverloaded-virtual=] - 60 | virtual void ParseLine (char *line, size_t len); - | ^~~~~~~~~ -o_svndiff.h:28:22: note: by 'virtual void ESvnDiff::ParseLine(char*, int)' - 28 | virtual void ParseLine (char *line,int len); - | ^~~~~~~~~ -o_buffer.cpp: In member function 'virtual void EEditPort::HandleEvent(TEvent&)': -o_buffer.cpp:175:42: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 175 | Buffer->ScrollDown(Event.Msg.Param1); - | ~~~~~~~~~~^~~~~~ -o_buffer.cpp:179:40: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 179 | Buffer->ScrollUp(Event.Msg.Param1); - | ~~~~~~~~~~^~~~~~ -o_buffer.cpp:196:69: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 196 | Buffer->SetNearPos(Buffer->CP.Col, Event.Msg.Param1 + ypos); - | ~~~~~~~~~~~~~~~~~^~~~~~ -o_buffer.cpp:197:42: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 197 | SetTop(TP.Col, Event.Msg.Param1); - | ~~~~~~~~~~^~~~~~ +g++ -c o_cvsbase.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX i_search.cpp: In member function 'virtual void ExISearch::RepaintStatus()': i_search.cpp:159:26: warning: '%s' directive writing up to 256 bytes into a region of size 248 [-Wformat-overflow=] 159 | sprintf(s, "ISearch [%s]%s", ISearchStr, p); | ^~ -o_buffer.cpp:203:43: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 203 | Buffer->ScrollRight(Event.Msg.Param1); - | ~~~~~~~~~~^~~~~~ In file included from /usr/include/stdio.h:970, from i_search.cpp:17: In function 'int sprintf(char*, const char*, ...)', @@ -2573,68 +2562,35 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -o_buffer.cpp:207:42: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 207 | Buffer->ScrollLeft(Event.Msg.Param1); - | ~~~~~~~~~~^~~~~~ -o_buffer.cpp:223:53: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 223 | Buffer->SetNearPos(Event.Msg.Param1 + xpos, Buffer->CP.Row); - | ~~~~~~~~~~~~~~~~~^~~~~~ -o_buffer.cpp:224:34: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 224 | SetTop(Event.Msg.Param1, TP.Row); - | ~~~~~~~~~~^~~~~~ -o_buffer.cpp: In member function 'int EBuffer::MoveToLine(ExState&)': -o_buffer.cpp:707:18: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 707 | No = atol(Num); - | ~~~~^~~~~ -o_buffer.cpp: In member function 'int EBuffer::MoveToColumn(ExState&)': -o_buffer.cpp:720:18: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 720 | No = atol(Num); - | ~~~~^~~~~ -g++ -c o_cvsbase.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -o_buffer.cpp: In member function 'int EBuffer::ChangeTabSize(ExState&)': -o_buffer.cpp:1259:18: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 1259 | No = atol(Num); - | ~~~~^~~~~ -o_buffer.cpp: In member function 'int EBuffer::ChangeRightMargin(ExState&)': -o_buffer.cpp:1283:24: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 1283 | No = atol(Num) - 1; - | ~~~~~~~~~~^~~ -o_buffer.cpp: In member function 'int EBuffer::ChangeLeftMargin(ExState&)': -o_buffer.cpp:1298:24: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 1298 | No = atol(Num) - 1; - | ~~~~~~~~~~^~~ -o_buffer.cpp: In member function 'int EBuffer::ShowHelpWord(ExState&)': -o_buffer.cpp:1543:41: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 1543 | if ((L->Chars[i] == '\b') && (P < (L->Count - 2))) - | ~~^~~~~~~~~~~~~~~~ +g++ -c o_cvsdiff.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX o_buflist.cpp: In member function 'virtual void BufferView::HandleEvent(TEvent&)': o_buflist.cpp:209:63: warning: comparison of integer expressions of different signedness: 'int' and 'const unsigned int' [-Wsign-compare] 209 | if (isAscii(Event.Key.Code) && (SearchLen < ExISearch::MAXISEARCH)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -o_buffer.cpp:1547:11: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 1547 | if (P < L->Count) { - | ~~^~~~~~~~~~ -o_buffer.cpp:1553:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 1553 | if ((P < (L->Count - 1)) && (L->Chars[P] == '\b')) - | ~~^~~~~~~~~~~~~~~~ -o_buffer.cpp:1556:48: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 1556 | while ((len < (sizeof(buf) - 1)) && (P < L->Count)) { - | ~~^~~~~~~~~~ -o_buffer.cpp:1557:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 1557 | if (((P + 1) < L->Count) && (L->Chars[P + 1] == '\b')) - | ~~~~~~~~^~~~~~~~~~ -o_buffer.cpp: In member function 'virtual int EBuffer::GetStrVar(int, char*, size_t)': -o_buffer.cpp:1668:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] - 1668 | while ((P< L->Count) && (C == ChClassK(L->Chars[P]))) P++; - | ~^~~~~~~~~~ -g++ -c o_cvsdiff.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c o_directory.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +In file included from fte.h:39, + from sysdep.h:13, + from c_config.h:13, + from o_buffer.cpp:11: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ +stl_fte.h:161:17: note: remove the '< >' +stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 166 | vector(size_type prealloc) : + | ^~~~~~~~~ +stl_fte.h:166:18: note: remove the '< >' +stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 173 | vector(const vector& t) : + | ^ +stl_fte.h:173:17: note: remove the '< >' In file included from fte.h:39, from o_cvs.h:12, from o_cvs.cpp:9: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ +g++ -c o_directory.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c o_list.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX stl_fte.h:161:17: note: remove the '< >' stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 166 | vector(size_type prealloc) : @@ -2644,18 +2600,16 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c o_list.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from o_cvs.h:16: o_cvsbase.h:60:22: warning: 'virtual void ECvsBase::ParseLine(const char*, size_t)' was hidden [-Woverloaded-virtual=] 60 | virtual void ParseLine (const char *line, size_t len); | ^~~~~~~~~ -g++ -c o_messages.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX o_cvs.h:34:22: note: by 'virtual void ECvs::ParseLine(char*, int)' 34 | virtual void ParseLine (char *line,int len); | ^~~~~~~~~ In file included from fte.h:39, - from o_cvsbase.h:13, - from o_cvsbase.cpp:10: + from o_cvsdiff.h:13, + from o_cvsdiff.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -2669,8 +2623,8 @@ | ^ stl_fte.h:173:17: note: remove the '< >' In file included from fte.h:39, - from o_cvsdiff.h:13, - from o_cvsdiff.cpp:10: + from o_cvsbase.h:13, + from o_cvsbase.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -2683,6 +2637,13 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +In file included from o_cvsdiff.h:17: +o_cvsbase.h:60:22: warning: 'virtual void ECvsBase::ParseLine(const char*, size_t)' was hidden [-Woverloaded-virtual=] + 60 | virtual void ParseLine (const char *line, size_t len); + | ^~~~~~~~~ +o_cvsdiff.h:28:22: note: by 'virtual void ECvsDiff::ParseLine(char*, int)' + 28 | virtual void ParseLine (char *line,int len); + | ^~~~~~~~~ o_cvsbase.cpp: In member function 'void ECvsBase::AddLine(const char*, int, const char*, int)': o_cvsbase.cpp:94:19: warning: conversion from 'int' to 'char' may change value [-Wconversion] 94 | l->Status=status; @@ -2691,10 +2652,6 @@ o_cvsbase.cpp:164:27: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 164 | rc = gui->ReadPipe(PipeId, MsgBuf + BufLen, sizeof(MsgBuf) - BufLen); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from o_cvsdiff.h:17: -o_cvsbase.h:60:22: warning: 'virtual void ECvsBase::ParseLine(const char*, size_t)' was hidden [-Woverloaded-virtual=] - 60 | virtual void ParseLine (const char *line, size_t len); - | ^~~~~~~~~ o_cvsbase.cpp:172:13: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 172 | l = max - 1; | ~~~~^~~ @@ -2704,38 +2661,20 @@ o_cvsbase.cpp:174:20: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 174 | l = BufLen - BufPos; | ~~~~~~~^~~~~~~~ +o_cvsdiff.cpp: In member function 'void ECvsDiff::ParseFromTo(char*, int)': +o_cvsdiff.cpp:40:37: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 40 | CurrLine=strtol (line+4,&end,10)-1; + | ~~~~~~~~~~~~~~~~~~~~~~~^~ o_cvsbase.cpp:180:19: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 180 | l = strlen(Line); | ~~~~~~^~~~~~ o_cvsbase.cpp:183:24: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 183 | BufPos = p + 1 - MsgBuf; | ~~~~~~^~~~~~~~ -o_cvsdiff.h:28:22: note: by 'virtual void ECvsDiff::ParseLine(char*, int)' - 28 | virtual void ParseLine (char *line,int len); - | ^~~~~~~~~ o_cvsbase.cpp: In member function 'virtual void ECvsBase::DrawLine(PCell, int, int, ChColor, int)': o_cvsbase.cpp:321:26: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 321 | len=UnTabStr (str,sizeof (str),Lines[Line]->Msg,strlen (Lines[Line]->Msg)); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -o_cvsdiff.cpp: In member function 'void ECvsDiff::ParseFromTo(char*, int)': -o_cvsdiff.cpp:40:37: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 40 | CurrLine=strtol (line+4,&end,10)-1; - | ~~~~~~~~~~~~~~~~~~~~~~~^~ -In file included from fte.h:39, - from o_directory.h:12, - from o_directory.cpp:13: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ -stl_fte.h:161:17: note: remove the '< >' -stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 166 | vector(size_type prealloc) : - | ^~~~~~~~~ -stl_fte.h:166:18: note: remove the '< >' -stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 173 | vector(const vector& t) : - | ^ -stl_fte.h:173:17: note: remove the '< >' In file included from fte.h:39, from console.h:13, from o_model.h:13, @@ -2753,27 +2692,18 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c o_model.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -In file included from fte.h:39, - from o_messages.h:13, - from o_messages.cpp:10: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ -stl_fte.h:161:17: note: remove the '< >' -stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 166 | vector(size_type prealloc) : - | ^~~~~~~~~ -stl_fte.h:166:18: note: remove the '< >' -stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 173 | vector(const vector& t) : - | ^ -stl_fte.h:173:17: note: remove the '< >' -g++ -c o_modemap.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX o_list.cpp: In member function 'virtual void EListPort::HandleEvent(TEvent&)': o_list.cpp:63:40: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 63 | List->ScrollDown(Event.Msg.Param1); | ~~~~~~~~~~^~~~~~ +In file included from o_cvsdiff.h:17, + from o_buffer.cpp:19: +o_cvsbase.h:60:22: warning: 'virtual void ECvsBase::ParseLine(const char*, size_t)' was hidden [-Woverloaded-virtual=] + 60 | virtual void ParseLine (const char *line, size_t len); + | ^~~~~~~~~ +o_cvsdiff.h:28:22: note: by 'virtual void ECvsDiff::ParseLine(char*, int)' + 28 | virtual void ParseLine (char *line,int len); + | ^~~~~~~~~ o_list.cpp:67:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 67 | List->ScrollUp(Event.Msg.Param1); | ~~~~~~~~~~^~~~~~ @@ -2793,13 +2723,47 @@ o_list.cpp:306:22: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 306 | MoveStr(B, W - strlen(s), W, s, SColor, W); | ~~^~~~~~~~~~~ -o_messages.cpp: In member function 'int EMessages::GetLine(char*, size_t)': -o_messages.cpp:251:20: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] - 251 | BufLen += rc; - | ~~~~~~~^~~~~ +o_list.cpp: In member function 'int EList::MoveLineEnd()': +o_list.cpp:514:23: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 514 | len = GetRowLength(Row); + | ~~~~~~~~~~~~^~~~~ +In file included from o_svndiff.h:17, + from o_buffer.cpp:21: +o_svnbase.h:60:22: warning: 'virtual void ESvnBase::ParseLine(char*, size_t)' was hidden [-Woverloaded-virtual=] + 60 | virtual void ParseLine (char *line, size_t len); + | ^~~~~~~~~ +o_svndiff.h:28:22: note: by 'virtual void ESvnDiff::ParseLine(char*, int)' + 28 | virtual void ParseLine (char *line,int len); + | ^~~~~~~~~ +o_buffer.cpp: In member function 'virtual void EEditPort::HandleEvent(TEvent&)': +o_buffer.cpp:175:42: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 175 | Buffer->ScrollDown(Event.Msg.Param1); + | ~~~~~~~~~~^~~~~~ +o_buffer.cpp:179:40: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 179 | Buffer->ScrollUp(Event.Msg.Param1); + | ~~~~~~~~~~^~~~~~ +o_buffer.cpp:196:69: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 196 | Buffer->SetNearPos(Buffer->CP.Col, Event.Msg.Param1 + ypos); + | ~~~~~~~~~~~~~~~~~^~~~~~ +o_buffer.cpp:197:42: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 197 | SetTop(TP.Col, Event.Msg.Param1); + | ~~~~~~~~~~^~~~~~ +o_buffer.cpp:203:43: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 203 | Buffer->ScrollRight(Event.Msg.Param1); + | ~~~~~~~~~~^~~~~~ +o_buffer.cpp:207:42: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 207 | Buffer->ScrollLeft(Event.Msg.Param1); + | ~~~~~~~~~~^~~~~~ +o_buffer.cpp:223:53: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 223 | Buffer->SetNearPos(Event.Msg.Param1 + xpos, Buffer->CP.Row); + | ~~~~~~~~~~~~~~~~~^~~~~~ +o_buffer.cpp:224:34: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 224 | SetTop(Event.Msg.Param1, TP.Row); + | ~~~~~~~~~~^~~~~~ +g++ -c o_messages.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, - from sysdep.h:13, - from log.cpp:16: + from o_directory.h:12, + from o_directory.cpp:13: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -2807,64 +2771,70 @@ stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 166 | vector(size_type prealloc) : | ^~~~~~~~~ -o_messages.cpp:253:15: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 253 | l = maxim - 1; - | ~~~~~~^~~ stl_fte.h:166:18: note: remove the '< >' stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -o_messages.cpp:262:19: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 262 | l = strlen(Line); - | ~~~~~~^~~~~~ -o_messages.cpp:265:24: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 265 | BufPos = p + 1 - MsgBuf; - | ~~~~~~^~~~~~~~ -o_messages.cpp: In member function 'void EMessages::GetErrors()': -o_messages.cpp:430:52: warning: conversion from 'fte::vector::size_type' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] - 430 | for (unsigned i = DirLevel.size(); i-- > 0;) { - | ~~~~~~~~~~~~~^~ -o_list.cpp: In member function 'int EList::MoveLineEnd()': -o_list.cpp:514:23: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 514 | len = GetRowLength(Row); - | ~~~~~~~~~~~~^~~~~ -g++ -c o_routine.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX o_buffer.cpp: In member function 'int EBuffer::MoveToLine(ExState&)': -o_buffer.cpp:704:23: warning: '%d' directive writing between 1 and 11 bytes into a region of size 10 [-Wformat-overflow=] - 704 | sprintf(Num, "%d", VToR(CP.Row) + 1); - | ^~ -o_buffer.cpp:704:22: note: directive argument in the range [-2147483647, 2147483647] - 704 | sprintf(Num, "%d", VToR(CP.Row) + 1); - | ^~~~ -In file included from /usr/include/stdio.h:970, - from e_mark.h:6, - from o_buffer.cpp:13: -In function 'int sprintf(char*, const char*, ...)', - inlined from 'int EBuffer::MoveToLine(ExState&)' at o_buffer.cpp:704:16: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 2 and 12 bytes into a destination of size 10 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ +o_buffer.cpp:707:18: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 707 | No = atol(Num); + | ~~~~^~~~~ o_buffer.cpp: In member function 'int EBuffer::MoveToColumn(ExState&)': -o_buffer.cpp:718:23: warning: '%d' directive writing between 1 and 11 bytes into a region of size 10 [-Wformat-overflow=] - 718 | sprintf(Num, "%d", CP.Col + 1); - | ^~ -o_buffer.cpp:718:22: note: directive argument in the range [-2147483647, 2147483647] - 718 | sprintf(Num, "%d", CP.Col + 1); - | ^~~~ -In function 'int sprintf(char*, const char*, ...)', - inlined from 'int EBuffer::MoveToColumn(ExState&)' at o_buffer.cpp:718:16: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 2 and 12 bytes into a destination of size 10 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ +o_buffer.cpp:720:18: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 720 | No = atol(Num); + | ~~~~^~~~~ +g++ -c o_model.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c o_modemap.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +o_buffer.cpp: In member function 'int EBuffer::ChangeTabSize(ExState&)': +o_buffer.cpp:1259:18: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 1259 | No = atol(Num); + | ~~~~^~~~~ +o_buffer.cpp: In member function 'int EBuffer::ChangeRightMargin(ExState&)': +o_buffer.cpp:1283:24: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 1283 | No = atol(Num) - 1; + | ~~~~~~~~~~^~~ +o_buffer.cpp: In member function 'int EBuffer::ChangeLeftMargin(ExState&)': +o_buffer.cpp:1298:24: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 1298 | No = atol(Num) - 1; + | ~~~~~~~~~~^~~ +g++ -c o_routine.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +o_buffer.cpp: In member function 'int EBuffer::ShowHelpWord(ExState&)': +o_buffer.cpp:1543:41: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 1543 | if ((L->Chars[i] == '\b') && (P < (L->Count - 2))) + | ~~^~~~~~~~~~~~~~~~ +o_buffer.cpp:1547:11: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 1547 | if (P < L->Count) { + | ~~^~~~~~~~~~ +o_buffer.cpp:1553:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 1553 | if ((P < (L->Count - 1)) && (L->Chars[P] == '\b')) + | ~~^~~~~~~~~~~~~~~~ +o_buffer.cpp:1556:48: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 1556 | while ((len < (sizeof(buf) - 1)) && (P < L->Count)) { + | ~~^~~~~~~~~~ +o_buffer.cpp:1557:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 1557 | if (((P + 1) < L->Count) && (L->Chars[P + 1] == '\b')) + | ~~~~~~~~^~~~~~~~~~ +o_buffer.cpp: In member function 'virtual int EBuffer::GetStrVar(int, char*, size_t)': +o_buffer.cpp:1668:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] + 1668 | while ((P< L->Count) && (C == ChClassK(L->Chars[P]))) P++; + | ~^~~~~~~~~~ +In file included from fte.h:39, + from console.h:13, + from o_model.h:13, + from o_model.cpp:10: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ +stl_fte.h:161:17: note: remove the '< >' +stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 166 | vector(size_type prealloc) : + | ^~~~~~~~~ +stl_fte.h:166:18: note: remove the '< >' +stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 173 | vector(const vector& t) : + | ^ +stl_fte.h:173:17: note: remove the '< >' In file included from fte.h:39, from console.h:13, from o_model.h:13, @@ -2884,9 +2854,8 @@ | ^ stl_fte.h:173:17: note: remove the '< >' In file included from fte.h:39, - from console.h:13, - from o_model.h:13, - from o_model.cpp:10: + from o_messages.h:13, + from o_messages.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -2899,7 +2868,6 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c o_svn.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from o_routine.h:13, from o_routine.cpp:10: @@ -2915,10 +2883,26 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -o_directory.cpp: In member function 'virtual void EDirectory::HandleEvent(TEvent&)': -o_directory.cpp:348:55: warning: comparison of integer expressions of different signedness: 'int' and 'const unsigned int' [-Wsign-compare] - 348 | if (isAscii(Event.Key.Code) && (SearchLen < ExISearch::MAXISEARCH)) { - | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ +g++ -c o_svn.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +o_messages.cpp: In member function 'int EMessages::GetLine(char*, size_t)': +o_messages.cpp:251:20: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] + 251 | BufLen += rc; + | ~~~~~~~^~~~~ +o_messages.cpp:253:15: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 253 | l = maxim - 1; + | ~~~~~~^~~ +o_messages.cpp:262:19: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 262 | l = strlen(Line); + | ~~~~~~^~~~~~ +o_messages.cpp:265:24: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 265 | BufPos = p + 1 - MsgBuf; + | ~~~~~~^~~~~~~~ +o_messages.cpp: In member function 'void EMessages::GetErrors()': +o_messages.cpp:430:52: warning: conversion from 'fte::vector::size_type' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] + 430 | for (unsigned i = DirLevel.size(); i-- > 0;) { + | ~~~~~~~~~~~~~^~ +g++ -c o_svnbase.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c o_svndiff.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from o_svnbase.h:13, from o_svn.h:12, @@ -2941,11 +2925,10 @@ o_svn.h:32:22: note: by 'virtual void ESvn::ParseLine(char*, int)' 32 | virtual void ParseLine (char *line,int len); | ^~~~~~~~~ -g++ -c o_svnbase.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c o_svndiff.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX g++ -c stl_string.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c s_direct.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -In file included from stl_string.cpp:1: +In file included from fte.h:39, + from o_svndiff.h:13, + from o_svndiff.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -2958,25 +2941,11 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -o_buffer.cpp: In member function 'int EBuffer::ChangeRightMargin(ExState&)': -o_buffer.cpp:1281:23: warning: '%d' directive writing between 1 and 11 bytes into a region of size 10 [-Wformat-overflow=] - 1281 | sprintf(Num, "%d", BFI(this, BFI_RightMargin) + 1); - | ^~ -o_buffer.cpp:1281:22: note: directive argument in the range [-2147483647, 2147483647] - 1281 | sprintf(Num, "%d", BFI(this, BFI_RightMargin) + 1); - | ^~~~ -In function 'int sprintf(char*, const char*, ...)', - inlined from 'int EBuffer::ChangeRightMargin(ExState&)' at o_buffer.cpp:1281:16: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 2 and 12 bytes into a destination of size 10 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -In file included from fte.h:39, - from o_svndiff.h:13, - from o_svndiff.cpp:10: +In file included from o_svndiff.h:17: +o_svnbase.h:60:22: warning: 'virtual void ESvnBase::ParseLine(char*, size_t)' was hidden [-Woverloaded-virtual=] + 60 | virtual void ParseLine (char *line, size_t len); + | ^~~~~~~~~ +In file included from stl_string.cpp:1: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -2989,44 +2958,6 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -o_buffer.cpp: In member function 'int EBuffer::ChangeLeftMargin(ExState&)': -o_buffer.cpp:1296:23: warning: '%d' directive writing between 1 and 11 bytes into a region of size 10 [-Wformat-overflow=] - 1296 | sprintf(Num, "%d", BFI(this, BFI_LeftMargin) + 1); - | ^~ -o_buffer.cpp:1296:22: note: directive argument in the range [-2147483647, 2147483647] - 1296 | sprintf(Num, "%d", BFI(this, BFI_LeftMargin) + 1); - | ^~~~ -In function 'int sprintf(char*, const char*, ...)', - inlined from 'int EBuffer::ChangeLeftMargin(ExState&)' at o_buffer.cpp:1296:16: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 2 and 12 bytes into a destination of size 10 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -o_directory.cpp: In member function 'virtual void EDirectory::DrawLine(PCell, int, int, ChColor, int)': -o_directory.cpp:85:31: warning: '%8ld' directive writing between 8 and 20 bytes into a region of size 16 [-Wformat-overflow=] - 85 | sprintf(SizeStr, "%8ld", (long) Size); - | ^~~~ -o_directory.cpp:85:30: note: directive argument in the range [-9223372036854775808, 10485759] - 85 | sprintf(SizeStr, "%8ld", (long) Size); - | ^~~~~~ -In file included from /usr/include/stdio.h:970, - from o_directory.cpp:10: -In function 'int sprintf(char*, const char*, ...)', - inlined from 'virtual void EDirectory::DrawLine(PCell, int, int, ChColor, int)' at o_directory.cpp:85:20: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 9 and 21 bytes into a destination of size 16 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -In file included from o_svndiff.h:17: -o_svnbase.h:60:22: warning: 'virtual void ESvnBase::ParseLine(char*, size_t)' was hidden [-Woverloaded-virtual=] - 60 | virtual void ParseLine (char *line, size_t len); - | ^~~~~~~~~ o_svndiff.h:28:22: note: by 'virtual void ESvnDiff::ParseLine(char*, int)' 28 | virtual void ParseLine (char *line,int len); | ^~~~~~~~~ @@ -3045,6 +2976,7 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +g++ -c s_direct.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX o_svnbase.cpp: In member function 'int ESvnBase::GetLine(char*, size_t)': o_svnbase.cpp:172:20: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 172 | BufLen += rc; @@ -3074,15 +3006,13 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c s_util.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c view.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c e_unix.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c memicmp.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c clip_x11.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c con_i18n.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c con_x11.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +o_directory.cpp: In member function 'virtual void EDirectory::HandleEvent(TEvent&)': +o_directory.cpp:348:55: warning: comparison of integer expressions of different signedness: 'int' and 'const unsigned int' [-Wsign-compare] + 348 | if (isAscii(Event.Key.Code) && (SearchLen < ExISearch::MAXISEARCH)) { + | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from fte.h:39, - from memicmp.cpp:3: + from sysdep.h:13, + from log.cpp:16: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -3095,9 +3025,12 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +g++ -c s_util.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c view.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c e_unix.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, - from s_util.h:13, - from s_util.cpp:11: + from c_history.h:12, + from view.cpp:11: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -3111,7 +3044,8 @@ | ^ stl_fte.h:173:17: note: remove the '< >' In file included from fte.h:39, - from con_i18n.cpp:13: + from s_util.h:13, + from s_util.cpp:11: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -3124,16 +3058,43 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +In file included from o_cvs.h:16, + from view.cpp:20: +o_cvsbase.h:60:22: warning: 'virtual void ECvsBase::ParseLine(const char*, size_t)' was hidden [-Woverloaded-virtual=] + 60 | virtual void ParseLine (const char *line, size_t len); + | ^~~~~~~~~ +o_cvs.h:34:22: note: by 'virtual void ECvs::ParseLine(char*, int)' + 34 | virtual void ParseLine (char *line,int len); + | ^~~~~~~~~ +o_cvsbase.h:60:22: warning: 'virtual void ECvsBase::ParseLine(const char*, size_t)' was hidden [-Woverloaded-virtual=] + 60 | virtual void ParseLine (const char *line, size_t len); + | ^~~~~~~~~ +In file included from view.cpp:21: +o_cvsdiff.h:28:22: note: by 'virtual void ECvsDiff::ParseLine(char*, int)' + 28 | virtual void ParseLine (char *line,int len); + | ^~~~~~~~~ +In file included from o_svn.h:12, + from view.cpp:26: +o_svnbase.h:60:22: warning: 'virtual void ESvnBase::ParseLine(char*, size_t)' was hidden [-Woverloaded-virtual=] + 60 | virtual void ParseLine (char *line, size_t len); + | ^~~~~~~~~ +o_svn.h:32:22: note: by 'virtual void ESvn::ParseLine(char*, int)' + 32 | virtual void ParseLine (char *line,int len); + | ^~~~~~~~~ +o_svnbase.h:60:22: warning: 'virtual void ESvnBase::ParseLine(char*, size_t)' was hidden [-Woverloaded-virtual=] + 60 | virtual void ParseLine (char *line, size_t len); + | ^~~~~~~~~ +In file included from view.cpp:27: +o_svndiff.h:28:22: note: by 'virtual void ESvnDiff::ParseLine(char*, int)' + 28 | virtual void ParseLine (char *line,int len); + | ^~~~~~~~~ In file included from fte.h:39, from console.h:13, - from o_model.h:13, - from o_list.h:14, - from o_buflist.h:13, - from clip_x11.cpp:10: + from c_bind.h:14, + from e_unix.cpp:12: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ -g++ -c g_nodlg.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX stl_fte.h:161:17: note: remove the '< >' stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 166 | vector(size_type prealloc) : @@ -3143,10 +3104,82 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c g_text.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +s_util.cpp: In function 'int copyfile(const char*, const char*)': +s_util.cpp:40:22: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] + 40 | while ((rd = read(fd1, buffer, BUF_SZ)) > 0) { + | ~~~~^~~~~~~~~~~~~~~~~~~~~ +e_unix.cpp: In member function 'int EView::SysShowHelp(ExState&, const char*)': +e_unix.cpp:48:54: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 891 and 1018 [-Wformat-truncation=] + 48 | snprintf(command, sizeof(command)-1, "%s %s %s >'%s' 2>&1", HelpCommand, options, word, file); + | ^~ ~~~~ +In file included from /usr/include/stdio.h:970, + from e_unix.cpp:27: +In function 'int snprintf(char*, size_t, const char*, ...)', + inlined from 'int EView::SysShowHelp(ExState&, const char*)' at e_unix.cpp:48:13: +/usr/include/aarch64-linux-gnu/bits/stdio2.h:68:35: note: '__builtin___snprintf_chk' output 12 or more bytes (assuming 1162) into a destination of size 1023 + 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 69 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 70 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +o_buffer.cpp: In member function 'int EBuffer::MoveToLine(ExState&)': +o_buffer.cpp:704:23: warning: '%d' directive writing between 1 and 11 bytes into a region of size 10 [-Wformat-overflow=] + 704 | sprintf(Num, "%d", VToR(CP.Row) + 1); + | ^~ +o_buffer.cpp:704:22: note: directive argument in the range [-2147483647, 2147483647] + 704 | sprintf(Num, "%d", VToR(CP.Row) + 1); + | ^~~~ +In file included from /usr/include/stdio.h:970, + from e_mark.h:6, + from o_buffer.cpp:13: +In function 'int sprintf(char*, const char*, ...)', + inlined from 'int EBuffer::MoveToLine(ExState&)' at o_buffer.cpp:704:16: +/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 2 and 12 bytes into a destination of size 10 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +o_buffer.cpp: In member function 'int EBuffer::MoveToColumn(ExState&)': +o_buffer.cpp:718:23: warning: '%d' directive writing between 1 and 11 bytes into a region of size 10 [-Wformat-overflow=] + 718 | sprintf(Num, "%d", CP.Col + 1); + | ^~ +o_buffer.cpp:718:22: note: directive argument in the range [-2147483647, 2147483647] + 718 | sprintf(Num, "%d", CP.Col + 1); + | ^~~~ +In function 'int sprintf(char*, const char*, ...)', + inlined from 'int EBuffer::MoveToColumn(ExState&)' at o_buffer.cpp:718:16: +/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 2 and 12 bytes into a destination of size 10 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +g++ -c memicmp.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +o_directory.cpp: In member function 'virtual void EDirectory::DrawLine(PCell, int, int, ChColor, int)': +o_directory.cpp:85:31: warning: '%8ld' directive writing between 8 and 20 bytes into a region of size 16 [-Wformat-overflow=] + 85 | sprintf(SizeStr, "%8ld", (long) Size); + | ^~~~ +o_directory.cpp:85:30: note: directive argument in the range [-9223372036854775808, 10485759] + 85 | sprintf(SizeStr, "%8ld", (long) Size); + | ^~~~~~ +In file included from /usr/include/stdio.h:970, + from o_directory.cpp:10: +In function 'int sprintf(char*, const char*, ...)', + inlined from 'virtual void EDirectory::DrawLine(PCell, int, int, ChColor, int)' at o_directory.cpp:85:20: +/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 9 and 21 bytes into a destination of size 16 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +g++ -c clip_x11.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, - from c_history.h:12, - from view.cpp:11: + from memicmp.cpp:3: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -3159,14 +3192,12 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -s_util.cpp: In function 'int copyfile(const char*, const char*)': -s_util.cpp:40:22: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] - 40 | while ((rd = read(fd1, buffer, BUF_SZ)) > 0) { - | ~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from fte.h:39, from console.h:13, - from c_bind.h:14, - from e_unix.cpp:12: + from o_model.h:13, + from o_list.h:14, + from o_buflist.h:13, + from clip_x11.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -3179,6 +3210,10 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +g++ -c con_i18n.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c con_x11.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c g_nodlg.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c g_text.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from sysdep.h:13, from c_config.h:13, @@ -3196,40 +3231,8 @@ | ^ stl_fte.h:173:17: note: remove the '< >' g++ -c g_unix_pipe.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -In file included from o_cvs.h:16, - from view.cpp:20: -o_cvsbase.h:60:22: warning: 'virtual void ECvsBase::ParseLine(const char*, size_t)' was hidden [-Woverloaded-virtual=] - 60 | virtual void ParseLine (const char *line, size_t len); - | ^~~~~~~~~ -o_cvs.h:34:22: note: by 'virtual void ECvs::ParseLine(char*, int)' - 34 | virtual void ParseLine (char *line,int len); - | ^~~~~~~~~ -o_cvsbase.h:60:22: warning: 'virtual void ECvsBase::ParseLine(const char*, size_t)' was hidden [-Woverloaded-virtual=] - 60 | virtual void ParseLine (const char *line, size_t len); - | ^~~~~~~~~ -In file included from view.cpp:21: -o_cvsdiff.h:28:22: note: by 'virtual void ECvsDiff::ParseLine(char*, int)' - 28 | virtual void ParseLine (char *line,int len); - | ^~~~~~~~~ -In file included from o_svn.h:12, - from view.cpp:26: -o_svnbase.h:60:22: warning: 'virtual void ESvnBase::ParseLine(char*, size_t)' was hidden [-Woverloaded-virtual=] - 60 | virtual void ParseLine (char *line, size_t len); - | ^~~~~~~~~ -o_svn.h:32:22: note: by 'virtual void ESvn::ParseLine(char*, int)' - 32 | virtual void ParseLine (char *line,int len); - | ^~~~~~~~~ -o_svnbase.h:60:22: warning: 'virtual void ESvnBase::ParseLine(char*, size_t)' was hidden [-Woverloaded-virtual=] - 60 | virtual void ParseLine (char *line, size_t len); - | ^~~~~~~~~ -In file included from view.cpp:27: -o_svndiff.h:28:22: note: by 'virtual void ESvnDiff::ParseLine(char*, int)' - 28 | virtual void ParseLine (char *line,int len); - | ^~~~~~~~~ In file included from fte.h:39, - from console.h:13, - from gui.h:13, - from g_nodlg.cpp:3: + from con_i18n.cpp:13: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -3242,29 +3245,26 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -e_unix.cpp: In member function 'int EView::SysShowHelp(ExState&, const char*)': -e_unix.cpp:48:54: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 891 and 1018 [-Wformat-truncation=] - 48 | snprintf(command, sizeof(command)-1, "%s %s %s >'%s' 2>&1", HelpCommand, options, word, file); - | ^~ ~~~~ -In file included from /usr/include/stdio.h:970, - from e_unix.cpp:27: -In function 'int snprintf(char*, size_t, const char*, ...)', - inlined from 'int EView::SysShowHelp(ExState&, const char*)' at e_unix.cpp:48:13: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:68:35: note: '__builtin___snprintf_chk' output 12 or more bytes (assuming 1162) into a destination of size 1023 - 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 69 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 70 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -g++ -c menu_text.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c clip_no.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +In file included from fte.h:39, + from console.h:13, + from gui.h:13, + from g_nodlg.cpp:3: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ In file included from fte.h:39, from sysdep.h:13, from g_unix_pipe.cpp:1: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ +In file included from fte.h:39, + from console.h:13, + from gui.h:13, + from g_text.cpp:12: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ stl_fte.h:161:17: note: remove the '< >' stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 166 | vector(size_type prealloc) : @@ -3274,13 +3274,16 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -In file included from fte.h:39, - from console.h:13, - from gui.h:13, - from g_text.cpp:12: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : +g++ -c menu_text.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +stl_fte.h:161:17: note: remove the '< >' +stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 166 | vector(size_type prealloc) : + | ^~~~~~~~~ +stl_fte.h:166:18: note: remove the '< >' +stl_fte.h:173:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 173 | vector(const vector& t) : | ^ +stl_fte.h:173:17: note: remove the '< >' stl_fte.h:161:17: note: remove the '< >' stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 166 | vector(size_type prealloc) : @@ -3290,14 +3293,13 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -c con_linux.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c con_ncurses.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c compkeys.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -g++ -c con_slang.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX g_text.cpp: In member function 'void GUI::ProcessEvent()': g_text.cpp:1201:46: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 1201 | if (::ExecVertMenu(x, y, id, E, 0) != 1) { | ^~ +g++ -c clip_no.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c con_linux.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -c con_ncurses.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX In file included from fte.h:39, from console.h:13, from gui.h:13, @@ -3314,27 +3316,8 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -menu_text.cpp: In function 'int ExecVertMenu(int, int, int, TEvent&, UpMenu*)': -menu_text.cpp:305:33: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 305 | if (cur >= Menus[id].Count) cur = 0; - | ~~~~^~~~~~~~~~~~~~~~~~ -menu_text.cpp:334:35: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 334 | for (i = 0; i < Menus[id].Count; i++) { - | ~~^~~~~~~~~~~~~~~~~ -menu_text.cpp: In function 'int ExecMainMenu(TEvent&, char)': -menu_text.cpp:491:27: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 491 | for (int i = 0; i < Menus[id].Count; i++) { - | ~~^~~~~~~~~~~~~~~~~ -menu_text.cpp:558:33: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 558 | if (cur >= Menus[id].Count) cur = 0; - | ~~~~^~~~~~~~~~~~~~~~~~ -menu_text.cpp:582:35: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 582 | for (i = 0; i < Menus[id].Count; i++) { - | ~~^~~~~~~~~~~~~~~~~ In file included from fte.h:39, - from sysdep.h:13, - from c_config.h:13, - from con_ncurses.cpp:10: + from clip_no.cpp:10: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -3350,7 +3333,7 @@ In file included from fte.h:39, from sysdep.h:13, from c_config.h:13, - from con_slang.cpp:14: + from con_linux.cpp:30: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -3363,15 +3346,68 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +g++ -c compkeys.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +menu_text.cpp: In function 'int ExecVertMenu(int, int, int, TEvent&, UpMenu*)': +menu_text.cpp:305:33: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 305 | if (cur >= Menus[id].Count) cur = 0; + | ~~~~^~~~~~~~~~~~~~~~~~ +menu_text.cpp:334:35: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 334 | for (i = 0; i < Menus[id].Count; i++) { + | ~~^~~~~~~~~~~~~~~~~ +menu_text.cpp: In function 'int ExecMainMenu(TEvent&, char)': +menu_text.cpp:491:27: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 491 | for (int i = 0; i < Menus[id].Count; i++) { + | ~~^~~~~~~~~~~~~~~~~ +menu_text.cpp:558:33: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 558 | if (cur >= Menus[id].Count) cur = 0; + | ~~~~^~~~~~~~~~~~~~~~~~ +menu_text.cpp:582:35: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 582 | for (i = 0; i < Menus[id].Count; i++) { + | ~~^~~~~~~~~~~~~~~~~ +con_linux.cpp: In function 'int ConInit(int, int)': +con_linux.cpp:255:39: warning: conversion from 'unsigned int' to 'unsigned char' may change value [-Wconversion] + 255 | fromScreen[toScreen[c]] = c; + | ^ +con_linux.cpp: In function 'int GetKeyEvent(TEvent*)': +con_linux.cpp:665:20: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] + 665 | kbe.kb_index = key; + | ^~~ +con_linux.cpp:790:28: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] + 790 | kbe.kb_index = key; + | ^~~ +con_linux.cpp:791:28: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] + 791 | kbe.kb_table = shift_final; + | ^~~~~~~~~~~ +con_linux.cpp:805:35: warning: conversion from 'TKeyCode' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 805 | KeyCode = toupper(KeyCode); + | ^~~~~~~ +con_linux.cpp: In function 'int GetMouseEvent(TEvent*)': +con_linux.cpp:925:52: warning: conversion from 'unsigned int' to 'short int' may change value [-Wconversion] + 925 | if (e.x >= int(VideoCols)) e.x = VideoCols - 1; + | ~~~~~~~~~~^~~ +con_linux.cpp:926:52: warning: conversion from 'unsigned int' to 'short int' may change value [-Wconversion] + 926 | if (e.y >= int(VideoRows)) e.y = VideoRows - 1; + | ~~~~~~~~~~^~~ +con_linux.cpp: In function 'int ConInit(int, int)': +con_linux.cpp:229:13: warning: ignoring return value of 'int seteuid(__uid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] + 229 | seteuid(effuid); + | ~~~~~~~^~~~~~~~ +con_linux.cpp:230:13: warning: ignoring return value of 'int setegid(__gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] + 230 | setegid(effgid); + | ~~~~~~~^~~~~~~~ +con_linux.cpp:232:12: warning: ignoring return value of 'int setuid(__uid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] + 232 | setuid(getuid()); + | ~~~~~~^~~~~~~~~~ +con_linux.cpp:233:12: warning: ignoring return value of 'int setgid(__gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] + 233 | setgid(getgid()); + | ~~~~~~^~~~~~~~~~ +con_linux.cpp: In function 'int ConSetCursorPos(int, int)': +con_linux.cpp:473:10: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] + 473 | write(VcsFd, pos, 2); + | ~~~~~^~~~~~~~~~~~~~~ In file included from fte.h:39, - from sysdep.h:13, - from c_config.h:13, - from con_linux.cpp:30: -stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] - 161 | vector() : - | ^ -In file included from fte.h:39, - from clip_no.cpp:10: + from console.h:13, + from compkeys.cpp:12: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -3384,6 +3420,13 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +In file included from fte.h:39, + from sysdep.h:13, + from c_config.h:13, + from con_ncurses.cpp:10: +stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] + 161 | vector() : + | ^ stl_fte.h:161:17: note: remove the '< >' stl_fte.h:166:18: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 166 | vector(size_type prealloc) : @@ -3393,9 +3436,12 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' +g++ -c con_slang.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX +g++ -o cfte -Wl,-z,relro -Wl,-z,now -g cfte.o s_files.o s_string.o In file included from fte.h:39, - from console.h:13, - from compkeys.cpp:12: + from sysdep.h:13, + from c_config.h:13, + from con_slang.cpp:14: stl_fte.h:161:17: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 161 | vector() : | ^ @@ -3408,7 +3454,22 @@ 173 | vector(const vector& t) : | ^ stl_fte.h:173:17: note: remove the '< >' -g++ -o cfte -Wl,-z,relro -Wl,-z,now -g cfte.o s_files.o s_string.o +o_buffer.cpp: In member function 'int EBuffer::ChangeRightMargin(ExState&)': +o_buffer.cpp:1281:23: warning: '%d' directive writing between 1 and 11 bytes into a region of size 10 [-Wformat-overflow=] + 1281 | sprintf(Num, "%d", BFI(this, BFI_RightMargin) + 1); + | ^~ +o_buffer.cpp:1281:22: note: directive argument in the range [-2147483647, 2147483647] + 1281 | sprintf(Num, "%d", BFI(this, BFI_RightMargin) + 1); + | ^~~~ +In function 'int sprintf(char*, const char*, ...)', + inlined from 'int EBuffer::ChangeRightMargin(ExState&)' at o_buffer.cpp:1281:16: +/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 2 and 12 bytes into a destination of size 10 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ con_ncurses.cpp: In function 'void SaveScreen()': con_ncurses.cpp:67:31: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class TCell'; use assignment or value-initialization instead [-Wclass-memaccess] 67 | memset(SavedScreen[i] + MaxSavedW, 0, (NewSavedW - MaxSavedW) * sizeof(TCell)); @@ -3424,58 +3485,33 @@ console.h:120:7: note: 'class TCell' declared here 120 | class TCell { | ^~~~~ -con_linux.cpp: In function 'int ConInit(int, int)': -con_linux.cpp:255:39: warning: conversion from 'unsigned int' to 'unsigned char' may change value [-Wconversion] - 255 | fromScreen[toScreen[c]] = c; - | ^ ./cfte defcfg.fte defcfg.cnf cfte 0.50.02-cvs Copyright (c) 1994-1998 Marko Macek Copyright (c) 2000-2010 Others Compiling to 'defcfg.cnf' +o_buffer.cpp: In member function 'int EBuffer::ChangeLeftMargin(ExState&)': +o_buffer.cpp:1296:23: warning: '%d' directive writing between 1 and 11 bytes into a region of size 10 [-Wformat-overflow=] + 1296 | sprintf(Num, "%d", BFI(this, BFI_LeftMargin) + 1); + | ^~ +o_buffer.cpp:1296:22: note: directive argument in the range [-2147483647, 2147483647] + 1296 | sprintf(Num, "%d", BFI(this, BFI_LeftMargin) + 1); + | ^~~~ +In function 'int sprintf(char*, const char*, ...)', + inlined from 'int EBuffer::ChangeLeftMargin(ExState&)' at o_buffer.cpp:1296:16: +/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 2 and 12 bytes into a destination of size 10 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ Done. perl mkdefcfg.pl defcfg.h -..con_linux.cpp: In function 'int GetKeyEvent(TEvent*)': -con_linux.cpp:665:20: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] - 665 | kbe.kb_index = key; - | ^~~ -...con_linux.cpp:790:28: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] - 790 | kbe.kb_index = key; - | ^~~ -.con_linux.cpp:791:28: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] - 791 | kbe.kb_table = shift_final; - | ^~~~~~~~~~~ -..con_linux.cpp:805:35: warning: conversion from 'TKeyCode' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 805 | KeyCode = toupper(KeyCode); - | ^~~~~~~ -...................con_linux.cpp: In function 'int GetMouseEvent(TEvent*)': -con_linux.cpp:925:52: warning: conversion from 'unsigned int' to 'short int' may change value [-Wconversion] - 925 | if (e.x >= int(VideoCols)) e.x = VideoCols - 1; - | ~~~~~~~~~~^~~ -.con_linux.cpp:926:52: warning: conversion from 'unsigned int' to 'short int' may change value [-Wconversion] - 926 | if (e.y >= int(VideoRows)) e.y = VideoRows - 1; - | ~~~~~~~~~~^~~ -............................................. -con_linux.cpp: In function 'int ConInit(int, int)': -con_linux.cpp:229:13: warning: ignoring return value of 'int seteuid(__uid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] - 229 | seteuid(effuid); - | ~~~~~~~^~~~~~~~ -con_linux.cpp:230:13: warning: ignoring return value of 'int setegid(__gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] - 230 | setegid(effgid); - | ~~~~~~~^~~~~~~~ +......................................................................... g++ -MM -MG -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX commands.cpp c_bind.cpp c_color.cpp c_config.cpp c_desktop.cpp c_hilit.cpp c_history.cpp c_mode.cpp egui.cpp e_block.cpp e_buffer.cpp e_cmds.cpp e_cvslog.cpp e_file.cpp e_fold.cpp e_line.cpp e_loadsave.cpp e_mark.cpp e_print.cpp e_redraw.cpp e_regex.cpp e_search.cpp e_svnlog.cpp e_tags.cpp e_trans.cpp e_undo.cpp fte.cpp gui.cpp g_draw.cpp g_menu.cpp h_ada.cpp h_c.cpp h_catbs.cpp h_fte.cpp h_ipf.cpp h_make.cpp h_msg.cpp h_pascal.cpp h_perl.cpp h_plain.cpp h_rexx.cpp h_sh.cpp h_simple.cpp h_tex.cpp indent.cpp i_ascii.cpp i_choice.cpp i_complete.cpp i_input.cpp i_key.cpp i_modelview.cpp i_oview.cpp i_search.cpp i_view.cpp log.cpp o_buffer.cpp o_buflist.cpp o_cvs.cpp o_cvsbase.cpp o_cvsdiff.cpp o_directory.cpp o_list.cpp o_messages.cpp o_model.cpp o_modemap.cpp o_routine.cpp o_svn.cpp o_svnbase.cpp o_svndiff.cpp stl_string.cpp s_direct.cpp s_files.cpp s_string.cpp s_util.cpp view.cpp cfte.cpp s_files.cpp s_string.cpp e_unix.cpp memicmp.cpp clip_no.cpp con_ncurses.cpp g_nodlg.cpp g_text.cpp g_unix_pipe.cpp menu_text.cpp e_unix.cpp memicmp.cpp clip_no.cpp con_slang.cpp g_nodlg.cpp g_text.cpp g_unix_pipe.cpp menu_text.cpp e_unix.cpp memicmp.cpp clip_no.cpp con_linux.cpp g_nodlg.cpp g_text.cpp g_unix_pipe.cpp menu_text.cpp e_unix.cpp memicmp.cpp clip_x11.cpp con_i18n.cpp con_x11.cpp g_nodlg.cpp g_text.cpp g_unix_pipe.cpp menu_text.cpp 1>.depend -con_linux.cpp:232:12: warning: ignoring return value of 'int setuid(__uid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] - 232 | setuid(getuid()); - | ~~~~~~^~~~~~~~~~ -con_linux.cpp:233:12: warning: ignoring return value of 'int setgid(__gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] - 233 | setgid(getgid()); - | ~~~~~~^~~~~~~~~~ g++ -c c_config.cpp -g -O2 -ffile-prefix-map=/build/reproducible-path/fte-0.50.2b6-20110708=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include -I/usr/include/slang -DUNIX -DLINUX -con_linux.cpp: In function 'int ConSetCursorPos(int, int)': -con_linux.cpp:473:10: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] - 473 | write(VcsFd, pos, 2); - | ~~~~~^~~~~~~~~~~~~~~ In file included from fte.h:39, from sysdep.h:13, from c_config.h:13, @@ -3659,14 +3695,14 @@ dh_md5sums dh_builddeb dpkg-deb: building package 'fte' in '../fte_0.50.2b6-20110708-8_arm64.deb'. -dpkg-deb: building package 'fte-xwindow-dbgsym' in '../fte-xwindow-dbgsym_0.50.2b6-20110708-8_arm64.deb'. dpkg-deb: building package 'fte-xwindow' in '../fte-xwindow_0.50.2b6-20110708-8_arm64.deb'. -dpkg-deb: building package 'fte-dbgsym' in '../fte-dbgsym_0.50.2b6-20110708-8_arm64.deb'. dpkg-deb: building package 'fte-terminal-dbgsym' in '../fte-terminal-dbgsym_0.50.2b6-20110708-8_arm64.deb'. -dpkg-deb: building package 'fte-console-dbgsym' in '../fte-console-dbgsym_0.50.2b6-20110708-8_arm64.deb'. dpkg-deb: building package 'fte-docs' in '../fte-docs_0.50.2b6-20110708-8_all.deb'. -dpkg-deb: building package 'fte-terminal' in '../fte-terminal_0.50.2b6-20110708-8_arm64.deb'. +dpkg-deb: building package 'fte-dbgsym' in '../fte-dbgsym_0.50.2b6-20110708-8_arm64.deb'. dpkg-deb: building package 'fte-console' in '../fte-console_0.50.2b6-20110708-8_arm64.deb'. +dpkg-deb: building package 'fte-console-dbgsym' in '../fte-console-dbgsym_0.50.2b6-20110708-8_arm64.deb'. +dpkg-deb: building package 'fte-xwindow-dbgsym' in '../fte-xwindow-dbgsym_0.50.2b6-20110708-8_arm64.deb'. +dpkg-deb: building package 'fte-terminal' in '../fte-terminal_0.50.2b6-20110708-8_arm64.deb'. dpkg-genbuildinfo --build=binary -O../fte_0.50.2b6-20110708-8_arm64.buildinfo dpkg-genchanges --build=binary -O../fte_0.50.2b6-20110708-8_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -3674,12 +3710,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/3195369/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3195369/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/2948040 and its subdirectories -I: Current time: Mon Nov 23 12:59:41 -12 2026 -I: pbuilder-time-stamp: 1795481981 +I: removing directory /srv/workspace/pbuilder/3195369 and its subdirectories +I: Current time: Wed Oct 22 08:37:51 +14 2025 +I: pbuilder-time-stamp: 1761071871