Date: Mon, 15 Feb 2021 16:44:52 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r565317 - in head/games/libretro-bluemsx: . files Message-ID: <202102151644.11FGiqeP072039@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Mon Feb 15 16:44:52 2021 New Revision: 565317 URL: https://svnweb.freebsd.org/changeset/ports/565317 Log: games/libretro-bluemsx: fix build on powerpc64le Src/SoundChips/OpenMsxYM2413.cpp:331:10: error: constant expression evaluates to -3 which cannot be narrowed to type 'char' [-Wc++11-narrowing] 7, 3, 0,-3,-7,-3, 0, 3, Since it should also fix build on other architectures with unsigned char, unbreak on aarch64 and riscv64 (untested). Added: head/games/libretro-bluemsx/files/ head/games/libretro-bluemsx/files/patch-Src_SoundChips_OpenMsxYM2413.cpp (contents, props changed) Modified: head/games/libretro-bluemsx/Makefile Modified: head/games/libretro-bluemsx/Makefile ============================================================================== --- head/games/libretro-bluemsx/Makefile Mon Feb 15 16:31:32 2021 (r565316) +++ head/games/libretro-bluemsx/Makefile Mon Feb 15 16:44:52 2021 (r565317) @@ -9,9 +9,6 @@ COMMENT= Port of blueMSX to the libretro API LICENSE= GPLv3 -BROKEN_aarch64= error: constant expression evaluates to -1 which cannot be narrowed to type 'char' [-Wc++11-narrowing] -BROKEN_riscv64= error: constant expression evaluates to -1 which cannot be narrowed to type 'char' [-Wc++11-narrowing] - USES= compiler:c++11-lib gmake USE_LDCONFIG= yes Added: head/games/libretro-bluemsx/files/patch-Src_SoundChips_OpenMsxYM2413.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/libretro-bluemsx/files/patch-Src_SoundChips_OpenMsxYM2413.cpp Mon Feb 15 16:44:52 2021 (r565317) @@ -0,0 +1,11 @@ +--- Src/SoundChips/OpenMsxYM2413.cpp.orig 2021-02-15 16:41:14 UTC ++++ Src/SoundChips/OpenMsxYM2413.cpp +@@ -304,7 +304,7 @@ static const byte lfo_am_table[LFO_AM_TAB_ELEMENTS] = + }; + + // LFO Phase Modulation table (verified on real YM2413) +-static const char lfo_pm_table[8 * 8] = ++static const signed char lfo_pm_table[8 * 8] = + { + // FNUM2/FNUM = 0 00xxxxxx (0x0000) + 0, 0, 0, 0, 0, 0, 0, 0,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102151644.11FGiqeP072039>