Closed Audacious-Bot closed 1 month ago
Original Redmine Comment Author Name: Artem S. Tashkinov Original Date: 2023-02-12T16:39:06Z
This is when compiling/building audacious-plugins-4.3-beta1.tar.bz2
Original Redmine Comment Author Name: Thomas Lange Original Date: 2023-02-13T23:55:58Z
Compile with -j1 or search for the "desmume/*.cc" folder/file. You will see this warning is from linking xsf. --> https://github.com/audacious-media-player/audacious-plugins/pull/106#issuecomment-1133286466
Which compiler and build system do you use? Does the workaround work for you too?
Original Redmine Comment Author Name: Artem S. Tashkinov Original Date: 2023-02-21T07:48:20Z
Thomas Lange wrote:
Compile with -j1 or search for the "desmume/*.cc" folder/file. You will see this warning is from linking xsf. --> https://github.com/audacious-media-player/audacious-plugins/pull/106#issuecomment-1133286466
Which compiler and build system do you use? Does the workaround work for you too?
I use Fedora 37.
gcc --version
gcc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4)
export CFLAGS="-O2 -mtune=generic -pipe -flto=auto"
export CXXFLAGS="$CFLAGS"
The issue is here:
Successfully compiled desmume/slot1_retail.cc (plugin).
(the same errors)
Successfully linked xsf.so.
Original Redmine Comment Author Name: Artem S. Tashkinov Original Date: 2023-02-21T07:50:34Z
The linked patch fixes the issue.
diff --git a/src/xsf/desmume/mc.cc b/src/xsf/desmume/mc.cc
index dd6e670b1..648a5c89e 100644
--- a/src/xsf/desmume/mc.cc
+++ b/src/xsf/desmume/mc.cc
@@ -87,7 +87,7 @@ void mc_init(memory_chip_t *mc, int type)
uint8_t *mc_alloc(memory_chip_t *mc, uint32_t size)
{
mc->data.clear();
- mc->data.resize(size, 0);
+ mc->data.resize(size);
mc->size = size;
mc->writeable_buffer = true;
</code>
Original Redmine Comment Author Name: John Lindgren Original Date: 2023-02-21T17:27:17Z
This seems to be the same as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100366 which will supposedly be fixed in GCC 12.3.
Original Redmine Comment Author Name: John Lindgren Original Date: 2023-02-21T18:05:53Z
Closing, as it's a compiler bug. The warning is a false-positive and harmless.
Author Name: Artem S. Tashkinov Original Redmine Issue: https://redmine.audacious-media-player.org/issues/1203 Original Date: 2023-02-12
No idea where it happens. Could it be console?