From c7b6549f4b502074e58204d1afd9f260d6250d61 Mon Sep 17 00:00:00 2001 From: Chenxi Mao Date: Tue, 4 Apr 2023 19:22:43 +0800 Subject: [PATCH] Fix a warning found by GCC During GCC LTO test, gcc report below warning during RPM build. [ 371s] ../../../texk/web2c/cwebdir/common.h:150:8: warning: type defaults to 'int' in declaration of 'change_depth' [-Wimplicit-int] [ 371s] 150 | extern change_depth; /* where \.{@@y} originated during a change */ [ 371s] | ^~~~~~~~~~~~ [ 371s] make[5]: Leaving directory '/home/abuild/rpmbuild/BUILD/texlive-20180414-source/source/work/texk/web2c' Change-Id: Ie5ef1943648894bebabf860d58022c54b62e5ea5 Signed-off-by: Chenxi Mao --- bugfix-Fix-warning-after-LTO-enabled.patch | 31 ++++++++++++++++++++++ texlive-base.spec | 6 ++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 bugfix-Fix-warning-after-LTO-enabled.patch diff --git a/bugfix-Fix-warning-after-LTO-enabled.patch b/bugfix-Fix-warning-after-LTO-enabled.patch new file mode 100644 index 0000000..90e7a27 --- /dev/null +++ b/bugfix-Fix-warning-after-LTO-enabled.patch @@ -0,0 +1,31 @@ +From 0dc722ecd4c7afd1ea905ffc75200da32d1bb6fa Mon Sep 17 00:00:00 2001 +From: Chenxi Mao +Date: Tue, 4 Apr 2023 19:40:53 +0800 +Subject: [PATCH 1/1] Fix warning after LTO enabled + +[ 371s] ../../../texk/web2c/cwebdir/common.h:150:8: warning: type defaults to 'int' in declaration of 'change_depth' [-Wimplicit-int] +[ 371s] 150 | extern change_depth; /* where \.{@@y} originated during a change */ +[ 371s] | ^~~~~~~~~~~~ +[ 371s] make[5]: Leaving directory '/home/abuild/rpmbuild/BUILD/texlive-20180414-source/source/work/texk/web2c' + +Signed-off-by: Chenxi Mao +--- + texlive-20180414-source/texk/web2c/cwebdir/common.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/texlive-20180414-source/texk/web2c/cwebdir/common.h b/texlive-20180414-source/texk/web2c/cwebdir/common.h +index d6c0bfb6..21fe2bb0 100644 +--- a/texlive-20180414-source/texk/web2c/cwebdir/common.h ++++ b/texlive-20180414-source/texk/web2c/cwebdir/common.h +@@ -147,7 +147,7 @@ extern char file_name[][max_file_name_length]; + extern char change_file_name[]; /* name of change file */ + extern line[]; /* number of current line in the stacked files */ + extern change_line; /* number of current line in change file */ +-extern change_depth; /* where \.{@@y} originated during a change */ ++extern int change_depth; /* where \.{@@y} originated during a change */ + extern boolean input_has_ended; /* if there is no more input */ + extern boolean changing; /* if the current line is from |change_file| */ + extern boolean web_file_open; /* if the web file is being read */ +-- +2.33.0 + diff --git a/texlive-base.spec b/texlive-base.spec index 001ecdb..5a78a55 100644 --- a/texlive-base.spec +++ b/texlive-base.spec @@ -4,7 +4,7 @@ Name: texlive-base Version: 20180414 -Release: 33 +Release: 34 Epoch: 7 Summary: TeX formatting system License: ASL 2.0 and LGPL-2.1-only and Zlib and OFL-1.1 and Public Domain and LGPL-2.0-only and GPLv2+ and MPL-1.1 and Libpng and LGPL-3.0-only and BSL-1.0 and GPLv2 and GPLv3 and CPL-1.0 and IJG and MIT and LPPL-1.3c and ICU and psutils @@ -380,6 +380,7 @@ Patch0005: texlive-20180414-synctex-version.patch Patch0006: texlive-base-CVE-2018-17407.patch Patch0007: fix-build-error-when-srctopdf-is-ok.patch Patch0008: remove-support-of-poppler.patch +Patch0009: bugfix-Fix-warning-after-LTO-enabled.patch BuildRequires: xz libXaw-devel libXi-devel ncurses-devel bison flex file perl(Digest::MD5) texinfo gcc-c++ BuildRequires: gd-devel freetype-devel libpng-devel zlib-devel @@ -8108,6 +8109,9 @@ done <<< "$list" %doc %{_datadir}/texlive/texmf-dist/doc/latex/yplan/ %changelog +* Wed Apr 05 2023 Chenxi Mao - 20180414-34 +- Fix a warning found by gcc. + * Wed Jan 19 2022 xu_ping - 20180414-33 - remove useless BuildRequires poppler -- Gitee