svn commit: r478002 - head/emulators/fceux

Tobias Kortkamp tobik at FreeBSD.org
Sat Aug 25 05:12:36 UTC 2018


Author: tobik
Date: Sat Aug 25 05:12:35 2018
New Revision: 478002
URL: https://svnweb.freebsd.org/changeset/ports/478002

Log:
  emulators/fceux: Fix build with Clang 6
  
  src/utils/xstring.cpp:234:5: error: non-constant-expression cannot be narrowed from type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
                                  n<2 ? '=' : Base64Table[ ((input[1] & 0x0F) << 2) | (input[2] >> 6) ],
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/fceux-2.2.3_4.log

Modified:
  head/emulators/fceux/Makefile

Modified: head/emulators/fceux/Makefile
==============================================================================
--- head/emulators/fceux/Makefile	Sat Aug 25 05:00:37 2018	(r478001)
+++ head/emulators/fceux/Makefile	Sat Aug 25 05:12:35 2018	(r478002)
@@ -22,6 +22,9 @@ USES=		compiler:c++0x desktop-file-utils dos2unix loca
 USE_SDL=	sdl
 USE_XORG=	x11
 
+CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang=	-Wno-c++11-narrowing
+
 OPTIONS_DEFINE=		CREATE_AVI DEBUG DOCS FRAMESKIP LOGO LUA OPENGL
 OPTIONS_SINGLE=		GUI
 OPTIONS_SINGLE_GUI=	GTK2 GTK3


More information about the svn-ports-head mailing list