From 5d09fc9f5630bcabb50afc96e20ff662a0771440 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 22 Mar 2023 18:43:12 +0000 Subject: gentoo auto-resync : 22:03:2023 - 18:43:12 --- ...-rebirth-0.61.0_pre20210623-gcc-12-editor.patch | 23 ++++++++++ .../dxx-rebirth-0.61.0_pre20210623-scons-4.5.patch | 51 ++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 games-action/dxx-rebirth/files/dxx-rebirth-0.61.0_pre20210623-gcc-12-editor.patch create mode 100644 games-action/dxx-rebirth/files/dxx-rebirth-0.61.0_pre20210623-scons-4.5.patch (limited to 'games-action/dxx-rebirth/files') diff --git a/games-action/dxx-rebirth/files/dxx-rebirth-0.61.0_pre20210623-gcc-12-editor.patch b/games-action/dxx-rebirth/files/dxx-rebirth-0.61.0_pre20210623-gcc-12-editor.patch new file mode 100644 index 000000000000..fbb03cf8f334 --- /dev/null +++ b/games-action/dxx-rebirth/files/dxx-rebirth-0.61.0_pre20210623-gcc-12-editor.patch @@ -0,0 +1,23 @@ +With USE=editor and gcc12: + + similar/main/piggy.cpp: In function 'void d2x::piggy_new_pigfile(char*)': + similar/main/piggy.cpp:870:62: error: '%u' directive output may be truncated writing between 1 and 10 bytes into a region of size between 7 and 19 [-Werror=format-truncation=] + +But the offending code is unused, so can just drop it. + +Backport from: +https://github.com/dxx-rebirth/dxx-rebirth/commit/12cca97870efe419613462dc279963a77bc80d9a +--- a/similar/main/piggy.cpp ++++ b/similar/main/piggy.cpp +@@ -889,11 +889,8 @@ void piggy_new_pigfile(char *pigname) + } + + for (fnum=0;fnum