=> Bootstrap dependency digest>=20010302: found digest-20160304 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for nestopia-1.40hnb26 => Fixing path to OSS device. Creating output directory objs Creating output directory objs/core/api Creating output directory objs/core Compiling source/linux/settings.cpp... Compiling source/linux/oss.cpp... Compiling source/linux/interface.c... Compiling source/linux/auxio.cpp... Creating output directory objs/linux/7zip Creating output directory objs/core/input Compiling source/linux/support.c... Compiling source/linux/main.cpp... Creating output directory objs/core/vssystem Creating output directory objs/linux/unzip Creating output directory objs/linux Creating output directory objs/core/board Creating output directory objs/nes_ntsc Compiling source/linux/controlconfig.cpp... Compiling source/linux/kentry.cpp... Compiling source/linux/input.cpp... Compiling source/linux/seffect.cpp... Compiling source/linux/cheats.cpp... Compiling source/linux/uihelp.cpp... Compiling source/linux/7zip/7zAlloc.c... Compiling source/linux/7zip/7zBuf.c... Compiling source/linux/7zip/7zCrc.c... Compiling source/linux/7zip/7zDecode.c... source/linux/kentry.cpp:15:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "ENTER", SDLK_RETURN }, ^ source/linux/kentry.cpp:16:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "LCTRL", SDLK_LCTRL }, ^ source/linux/kentry.cpp:17:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "RCTRL", SDLK_RCTRL }, ^ source/linux/kentry.cpp:18:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "LALT", SDLK_LALT }, ^ source/linux/kentry.cpp:19:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "RALT", SDLK_RALT }, ^ source/linux/kentry.cpp:20:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "SPACE", SDLK_SPACE }, ^ source/linux/kentry.cpp:21:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "LSHIFT", SDLK_LSHIFT }, ^ source/linux/kentry.cpp:22:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "RSHIFT", SDLK_RSHIFT }, ^ source/linux/kentry.cpp:23:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "TAB", SDLK_TAB }, ^ source/linux/kentry.cpp:24:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "UP", SDLK_UP }, ^ source/linux/kentry.cpp:25:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "DOWN", SDLK_DOWN }, ^ source/linux/kentry.cpp:26:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "LEFT", SDLK_LEFT }, ^ source/linux/kentry.cpp:27:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "RIGHT", SDLK_RIGHT }, ^ source/linux/kentry.cpp:28:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KPENTER", SDLK_KP_ENTER }, ^ source/linux/kentry.cpp:29:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KP0", SDLK_KP0 }, ^ source/linux/kentry.cpp:30:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KP1", SDLK_KP1 }, ^ source/linux/kentry.cpp:31:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KP2", SDLK_KP2 }, ^ source/linux/kentry.cpp:32:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KP3", SDLK_KP3 }, ^ source/linux/kentry.cpp:33:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KP4", SDLK_KP4 }, ^ source/linux/kentry.cpp:34:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KP5", SDLK_KP5 }, ^ source/linux/kentry.cpp:35:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KP6", SDLK_KP6 }, ^ source/linux/kentry.cpp:36:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KP7", SDLK_KP7 }, ^ source/linux/kentry.cpp:37:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KP8", SDLK_KP8 }, ^ source/linux/kentry.cpp:38:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KP9", SDLK_KP9 }, ^ source/linux/kentry.cpp:39:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KPDOT", SDLK_KP_PERIOD }, ^ source/linux/kentry.cpp:40:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KPSLASH", SDLK_KP_DIVIDE }, ^ source/linux/kentry.cpp:41:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KPSTAR", SDLK_KP_MULTIPLY }, ^ source/linux/kentry.cpp:42:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KPMINUS", SDLK_KP_MINUS }, ^ source/linux/kentry.cpp:43:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "KPPLUS", SDLK_KP_PLUS }, ^ source/linux/kentry.cpp:44:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "ESCAPE", SDLK_ESCAPE }, ^ source/linux/kentry.cpp:45:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "BACKSPACE", SDLK_BACKSPACE }, ^ source/linux/kentry.cpp:46:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "F1", SDLK_F1 }, ^ source/linux/kentry.cpp:47:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "F2", SDLK_F2 }, ^ source/linux/kentry.cpp:48:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "F3", SDLK_F3 }, ^ source/linux/kentry.cpp:49:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "F4", SDLK_F4 }, ^ source/linux/kentry.cpp:50:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "F5", SDLK_F5 }, ^ source/linux/kentry.cpp:51:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "F6", SDLK_F6 }, ^ source/linux/kentry.cpp:52:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "F7", SDLK_F7 }, ^ source/linux/kentry.cpp:53:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "F8", SDLK_F8 }, ^ source/linux/kentry.cpp:54:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "F9", SDLK_F9 }, ^ source/linux/kentry.cpp:55:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "F10", SDLK_F10 }, ^ source/linux/kentry.cpp:56:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "F11", SDLK_F11 }, ^ source/linux/kentry.cpp:57:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { "F12", SDLK_F12 }, ^ source/linux/kentry.cpp:65:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(RESET), // 0 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :256:1: note: expanded from here "RESET" ^ source/linux/kentry.cpp:66:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(QSAVE1), // 1 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :257:1: note: expanded from here "QSAVE1" ^ source/linux/kentry.cpp:67:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(QLOAD1), // 2 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :258:1: note: expanded from here "QLOAD1" ^ source/linux/kentry.cpp:68:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(QSAVE2), // 3 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :259:1: note: expanded from here "QSAVE2" ^ source/linux/kentry.cpp:69:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(QLOAD2), // 4 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :260:1: note: expanded from here "QLOAD2" ^ source/linux/kentry.cpp:70:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(SAVE), // 5 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :261:1: note: expanded from here "SAVE" ^ source/linux/kentry.cpp:71:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(LOAD), // 6 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :262:1: note: expanded from here "LOAD" ^ source/linux/kentry.cpp:72:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(MSAVE), // 7 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :263:1: note: expanded from here "MSAVE" ^ source/linux/kentry.cpp:73:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(MLOAD), // 8 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :264:1: note: expanded from here "MLOAD" ^ source/linux/kentry.cpp:74:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(MSTOP), // 9 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :265:1: note: expanded from here "MSTOP" ^ source/linux/kentry.cpp:75:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(FLIP), // 10 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :266:1: note: expanded from here "FLIP" ^ source/linux/kentry.cpp:76:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(FSCREEN), // 11 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :267:1: note: expanded from here "FSCREEN" ^ source/linux/kentry.cpp:77:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(RBACK), // 12 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :268:1: note: expanded from here "RBACK" ^ source/linux/kentry.cpp:78:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(RFORE), // 13 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :269:1: note: expanded from here "RFORE" ^ source/linux/kentry.cpp:79:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(STOP), // 14 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :270:1: note: expanded from here "STOP" ^ source/linux/kentry.cpp:80:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(EXIT), // 15 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :271:1: note: expanded from here "EXIT" ^ source/linux/kentry.cpp:81:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(COIN1), // 16 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :272:1: note: expanded from here "COIN1" ^ source/linux/kentry.cpp:82:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_META(COIN2), // 17 ^ source/linux/kentry.cpp:62:26: note: expanded from macro 'DEFINE_META' #define DEFINE_META(x) { #x, x } ^ :273:1: note: expanded from here "COIN2" ^ source/linux/kentry.cpp:91:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_CONTROL(UP, UP), ^ source/linux/kentry.cpp:88:40: note: expanded from macro 'DEFINE_CONTROL' #define DEFINE_CONTROL(string, code) { #string, Nes::Api::Input::Controllers::Pad::code } ^ :274:1: note: expanded from here "UP" ^ source/linux/kentry.cpp:92:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_CONTROL(DN, DOWN), ^ source/linux/kentry.cpp:88:40: note: expanded from macro 'DEFINE_CONTROL' #define DEFINE_CONTROL(string, code) { #string, Nes::Api::Input::Controllers::Pad::code } ^ :275:1: note: expanded from here "DN" ^ source/linux/kentry.cpp:93:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_CONTROL(LT, LEFT), ^ source/linux/kentry.cpp:88:40: note: expanded from macro 'DEFINE_CONTROL' #define DEFINE_CONTROL(string, code) { #string, Nes::Api::Input::Controllers::Pad::code } ^ :276:1: note: expanded from here "LT" ^ source/linux/kentry.cpp:94:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_CONTROL(RT, RIGHT), ^ source/linux/kentry.cpp:88:40: note: expanded from macro 'DEFINE_CONTROL' #define DEFINE_CONTROL(string, code) { #string, Nes::Api::Input::Controllers::Pad::code } ^ :277:1: note: expanded from here "RT" ^ source/linux/kentry.cpp:95:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_CONTROL(A, A), ^ source/linux/kentry.cpp:88:40: note: expanded from macro 'DEFINE_CONTROL' #define DEFINE_CONTROL(string, code) { #string, Nes::Api::Input::Controllers::Pad::code } ^ :278:1: note: expanded from here "A" ^ source/linux/kentry.cpp:96:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_CONTROL(B, B), ^ source/linux/kentry.cpp:88:40: note: expanded from macro 'DEFINE_CONTROL' #define DEFINE_CONTROL(string, code) { #string, Nes::Api::Input::Controllers::Pad::code } ^ :279:1: note: expanded from here "B" ^ source/linux/kentry.cpp:97:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_CONTROL(START, START), ^ source/linux/kentry.cpp:88:40: note: expanded from macro 'DEFINE_CONTROL' #define DEFINE_CONTROL(string, code) { #string, Nes::Api::Input::Controllers::Pad::code } ^ :280:1: note: expanded from here "START" ^ source/linux/kentry.cpp:98:2: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] DEFINE_CONTROL(SELECT, SELECT), ^ source/linux/kentry.cpp:88:40: note: expanded from macro 'DEFINE_CONTROL' #define DEFINE_CONTROL(string, code) { #string, Nes::Api::Input::Controllers::Pad::code } ^ :281:1: note: expanded from here "SELECT" ^ Compiling source/linux/7zip/7zExtract.c... Compiling source/linux/7zip/7zHeader.c... Compiling source/linux/7zip/7zIn.c... 69 warnings generated. Compiling source/linux/7zip/7zItem.c... Compiling source/linux/7zip/LzmaDec.c... Compiling source/linux/7zip/Alloc.c... Compiling source/linux/7zip/Bcj2.c... Compiling source/linux/7zip/Bra.c... Compiling source/linux/7zip/Bra86.c... Compiling source/linux/7zip/BraIA64.c... Compiling source/linux/unzip/unzip.c... source/linux/7zip/Bra.c:109:25: warning: '&&' within '||' [-Wlogical-op-parentheses] if (data[i] == 0x40 && (data[i + 1] & 0xC0) == 0x00 || ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ source/linux/7zip/Bra.c:109:25: note: place parentheses around the '&&' expression to silence this warning if (data[i] == 0x40 && (data[i + 1] & 0xC0) == 0x00 || ^ ( ) source/linux/7zip/Bra.c:110:25: warning: '&&' within '||' [-Wlogical-op-parentheses] data[i] == 0x7F && (data[i + 1] & 0xC0) == 0xC0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/linux/7zip/Bra.c:110:25: note: place parentheses around the '&&' expression to silence this warning data[i] == 0x7F && (data[i + 1] & 0xC0) == 0xC0) ^ ( ) Compiling source/core/NstApu.cpp... Compiling source/core/NstFds.cpp... Compiling source/core/NstPpu.cpp... 2 warnings generated. Compiling source/core/NstVector.cpp... Compiling source/core/NstAssert.cpp... source/linux/unzip/unzip.c:1029:43: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((pfile_in_zip_read_info->read_buffer == NULL)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ source/linux/unzip/unzip.c:1029:43: note: remove extraneous parentheses around the comparison to silence this warning if ((pfile_in_zip_read_info->read_buffer == NULL)) ~ ^ ~ source/linux/unzip/unzip.c:1029:43: note: use '=' to turn this equality comparison into an assignment if ((pfile_in_zip_read_info->read_buffer == NULL)) ^~ = Compiling source/core/NstFile.cpp... source/core/NstApu.cpp:473:6: error: non-constant-expression cannot be narrowed from type 'Nes::uint' (aka 'unsigned int') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] ctrl, ^~~~ source/core/NstApu.cpp:473:6: note: insert an explicit cast to silence this issue ctrl, ^~~~ static_cast( ) source/core/NstApu.cpp:474:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] clock & 0xFF, ^~~~~~~~~~~~ source/core/NstApu.cpp:474:6: note: insert an explicit cast to silence this issue clock & 0xFF, ^~~~~~~~~~~~ static_cast( ) source/core/NstApu.cpp:475:6: error: non-constant-expression cannot be narrowed from type 'Nes::Core::Cycle' (aka 'unsigned int') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] clock >> 8, ^~~~~~~~~~ source/core/NstApu.cpp:475:6: note: insert an explicit cast to silence this issue clock >> 8, ^~~~~~~~~~ static_cast( ) source/core/NstApu.cpp:476:6: error: non-constant-expression cannot be narrowed from type 'Nes::word' (aka 'unsigned short') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] cycles.frameDivider ^~~~~~~~~~~~~~~~~~~ source/core/NstApu.cpp:476:6: note: insert an explicit cast to silence this issue cycles.frameDivider ^~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstApu.cpp:497:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] clock & 0xFF, ^~~~~~~~~~~~ source/core/NstApu.cpp:497:6: note: insert an explicit cast to silence this issue clock & 0xFF, ^~~~~~~~~~~~ static_cast( ) source/core/NstApu.cpp:498:6: error: non-constant-expression cannot be narrowed from type 'Nes::Core::Cycle' (aka 'unsigned int') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] clock >> 8, ^~~~~~~~~~ source/core/NstApu.cpp:498:6: note: insert an explicit cast to silence this issue clock >> 8, ^~~~~~~~~~ static_cast( ) source/core/NstApu.cpp:499:6: error: non-constant-expression cannot be narrowed from type 'int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] cycles.frameIrqRepeat % 3 ^~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstApu.cpp:499:6: note: insert an explicit cast to silence this issue cycles.frameIrqRepeat % 3 ^~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstApu.cpp:1051:5: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] regs[0] | (reset ? 0x80U : 0x00U), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstApu.cpp:1051:5: note: insert an explicit cast to silence this issue regs[0] | (reset ? 0x80U : 0x00U), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstApu.cpp:1590:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] waveLength & 0xFFU, ^~~~~~~~~~~~~~~~~~ source/core/NstApu.cpp:1590:6: note: insert an explicit cast to silence this issue waveLength & 0xFFU, ^~~~~~~~~~~~~~~~~~ static_cast() source/core/NstApu.cpp:1591:6: error: non-constant-expression cannot be narrowed from type 'int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] waveLength >> 8, ^~~~~~~~~~~~~~~ source/core/NstApu.cpp:1591:6: note: insert an explicit cast to silence this issue waveLength >> 8, ^~~~~~~~~~~~~~~ static_cast( ) source/core/NstApu.cpp:1592:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] linearCounter | (uint(status) << 7), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstApu.cpp:1592:6: note: insert an explicit cast to silence this issue linearCounter | (uint(status) << 7), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) Compiling source/core/NstProperties.cpp... source/core/NstApu.cpp:2001:5: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] dmcClock & 0xFF, ^~~~~~~~~~~~~~~ source/core/NstApu.cpp:2001:5: note: insert an explicit cast to silence this issue dmcClock & 0xFF, ^~~~~~~~~~~~~~~ static_cast( ) source/core/NstApu.cpp:2002:5: error: non-constant-expression cannot be narrowed from type 'Nes::dword' (aka 'unsigned int') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] dmcClock >> 8, ^~~~~~~~~~~~~ source/core/NstApu.cpp:2002:5: note: insert an explicit cast to silence this issue dmcClock >> 8, ^~~~~~~~~~~~~ static_cast( ) source/core/NstApu.cpp:2003:5: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] ( ^ source/core/NstApu.cpp:2003:5: note: insert an explicit cast to silence this issue ( ^ static_cast( source/core/NstApu.cpp:2009:5: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] (regs.address - 0xC000U) >> 6, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstApu.cpp:2009:5: note: insert an explicit cast to silence this issue (regs.address - 0xC000U) >> 6, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstApu.cpp:2010:5: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] (regs.lengthCounter - 1U) >> 4, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstApu.cpp:2010:5: note: insert an explicit cast to silence this issue (regs.lengthCounter - 1U) >> 4, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstApu.cpp:2011:5: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] (dma.address >> 0 & 0xFFU), ^~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstApu.cpp:2011:5: note: insert an explicit cast to silence this issue (dma.address >> 0 & 0xFFU), ^~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstApu.cpp:2012:5: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] (dma.address >> 8 & 0x7FU) | (dma.buffered ? 0x80 : 0x00), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstApu.cpp:2012:5: note: insert an explicit cast to silence this issue (dma.address >> 8 & 0x7FU) | (dma.buffered ? 0x80 : 0x00), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstApu.cpp:2013:5: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] dma.lengthCounter ? (dma.lengthCounter - 1U) >> 4 : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstApu.cpp:2013:5: note: insert an explicit cast to silence this issue dma.lengthCounter ? (dma.lengthCounter - 1U) >> 4 : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. gmake: *** [Makefile:153: objs/core/NstApu.o] Error 1 gmake: *** Waiting for unfinished jobs.... source/core/NstPpu.cpp:140:13: warning: 11 enumeration values not handled in switch: 'PPU_RP2C02', 'PPU_RP2C03B', 'PPU_RP2C03G'... [-Wswitch] switch (model) ^ source/core/NstPpu.cpp:313:99: warning: '&' within '|' [-Wbitwise-op-parentheses] output.palette[i] = (rgbMap ? rgbMap[palette.ram[i] & uint(Palette::COLOR)] : palette.ram[i]) & c | e; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ~ source/core/NstPpu.cpp:313:99: note: place parentheses around the '&' expression to silence this warning output.palette[i] = (rgbMap ? rgbMap[palette.ram[i] & uint(Palette::COLOR)] : palette.ram[i]) & c | e; ^ ( ) source/core/NstPpu.cpp:323:6: error: non-constant-expression cannot be narrowed from type 'Nes::uint' (aka 'unsigned int') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] regs.ctrl[0], ^~~~~~~~~~~~ source/core/NstPpu.cpp:323:6: note: insert an explicit cast to silence this issue regs.ctrl[0], ^~~~~~~~~~~~ static_cast( ) source/core/NstPpu.cpp:324:6: error: non-constant-expression cannot be narrowed from type 'Nes::uint' (aka 'unsigned int') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] regs.ctrl[1], ^~~~~~~~~~~~ source/core/NstPpu.cpp:324:6: note: insert an explicit cast to silence this issue regs.ctrl[1], ^~~~~~~~~~~~ static_cast( ) source/core/NstPpu.cpp:325:6: error: non-constant-expression cannot be narrowed from type 'Nes::uint' (aka 'unsigned int') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] regs.status, ^~~~~~~~~~~ source/core/NstPpu.cpp:325:6: note: insert an explicit cast to silence this issue regs.status, ^~~~~~~~~~~ static_cast( ) source/core/NstPpu.cpp:326:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] scroll.address & 0xFF, ^~~~~~~~~~~~~~~~~~~~~ source/core/NstPpu.cpp:326:6: note: insert an explicit cast to silence this issue scroll.address & 0xFF, ^~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstPpu.cpp:327:6: error: non-constant-expression cannot be narrowed from type 'Nes::uint' (aka 'unsigned int') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] scroll.address >> 8, ^~~~~~~~~~~~~~~~~~~ source/core/NstPpu.cpp:327:6: note: insert an explicit cast to silence this issue scroll.address >> 8, ^~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstPpu.cpp:328:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] scroll.latch & 0xFF, ^~~~~~~~~~~~~~~~~~~ source/core/NstPpu.cpp:328:6: note: insert an explicit cast to silence this issue scroll.latch & 0xFF, ^~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstPpu.cpp:329:6: error: non-constant-expression cannot be narrowed from type 'Nes::uint' (aka 'unsigned int') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] scroll.latch >> 8, ^~~~~~~~~~~~~~~~~ source/core/NstPpu.cpp:329:6: note: insert an explicit cast to silence this issue scroll.latch >> 8, ^~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstPpu.cpp:330:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] scroll.xFine | scroll.toggle << 3, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstPpu.cpp:330:6: note: insert an explicit cast to silence this issue scroll.xFine | scroll.toggle << 3, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstPpu.cpp:331:6: error: non-constant-expression cannot be narrowed from type 'Nes::uint' (aka 'unsigned int') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] regs.oam, ^~~~~~~~ source/core/NstPpu.cpp:331:6: note: insert an explicit cast to silence this issue regs.oam, ^~~~~~~~ static_cast( ) source/core/NstPpu.cpp:332:6: error: non-constant-expression cannot be narrowed from type 'Nes::uint' (aka 'unsigned int') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] io.buffer, ^~~~~~~~~ source/core/NstPpu.cpp:332:6: note: insert an explicit cast to silence this issue io.buffer, ^~~~~~~~~ static_cast( ) source/core/NstPpu.cpp:333:6: error: non-constant-expression cannot be narrowed from type 'Nes::uint' (aka 'unsigned int') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] io.latch ^~~~~~~~ source/core/NstPpu.cpp:333:6: note: insert an explicit cast to silence this issue io.latch ^~~~~~~~ static_cast( ) source/core/NstPpu.cpp:796:43: warning: '&' within '|' [-Wbitwise-op-parentheses] output.palette[i] = palette.ram[i] & ce[0] | ce[1]; ~~~~~~~~~~~~~~~^~~~~~~ ~ source/core/NstPpu.cpp:796:43: note: place parentheses around the '&' expression to silence this warning output.palette[i] = palette.ram[i] & ce[0] | ce[1]; ^ ( ) source/core/NstPpu.cpp:801:65: warning: '&' within '|' [-Wbitwise-op-parentheses] output.palette[i] = map[palette.ram[i] & Palette::COLOR] & ce[0] | ce[1]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ ~ source/core/NstPpu.cpp:801:65: note: place parentheses around the '&' expression to silence this warning output.palette[i] = map[palette.ram[i] & Palette::COLOR] & ce[0] | ce[1]; ^ ( ) source/core/NstPpu.cpp:822:37: warning: '&' within '|' [-Wbitwise-op-parentheses] return NES_DO_PEEK(2002,address) & 0xC0 | 0x1B; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ ~ source/core/NstPpu.cpp:822:37: note: place parentheses around the '&' expression to silence this warning return NES_DO_PEEK(2002,address) & 0xC0 | 0x1B; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ source/core/NstPpu.cpp:827:37: warning: '&' within '|' [-Wbitwise-op-parentheses] return NES_DO_PEEK(2002,address) & 0xC0 | 0x3D; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ ~ source/core/NstPpu.cpp:827:37: note: place parentheses around the '&' expression to silence this warning return NES_DO_PEEK(2002,address) & 0xC0 | 0x3D; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ source/core/NstPpu.cpp:832:37: warning: '&' within '|' [-Wbitwise-op-parentheses] return NES_DO_PEEK(2002,address) & 0xC0 | 0x1C; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ ~ source/core/NstPpu.cpp:832:37: note: place parentheses around the '&' expression to silence this warning return NES_DO_PEEK(2002,address) & 0xC0 | 0x1C; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ source/core/NstPpu.cpp:945:73: warning: '&' within '|' [-Wbitwise-op-parentheses] const uint final = (!rgbMap ? data : rgbMap[data & Palette::COLOR]) & Coloring() | Emphasis(); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ ~ source/core/NstPpu.cpp:945:73: note: place parentheses around the '&' expression to silence this warning const uint final = (!rgbMap ? data : rgbMap[data & Palette::COLOR]) & Coloring() | Emphasis(); ^ ( ) source/core/NstPpu.cpp:1286:32: warning: '&' within '|' [-Wbitwise-op-parentheses] return address | comparitor & Oam::XFINE; ~ ~~~~~~~~~~~^~~~~~~~~~~~ source/core/NstPpu.cpp:1286:32: note: place parentheses around the '&' expression to silence this warning return address | comparitor & Oam::XFINE; ^ ( ) 9 warnings and 11 errors generated. gmake: *** [Makefile:152: objs/core/NstPpu.o] Error 1 1 warning generated. source/core/NstFds.cpp:479:6: error: non-constant-expression cannot be narrowed from type 'Nes::uint' (aka 'unsigned int') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] disks.sides.count, ^~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:479:6: note: insert an explicit cast to silence this issue disks.sides.count, ^~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:480:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] (disks.current != Disks::EJECTED) | (disks.writeProtected ? 0x2U : 0x0U), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:480:6: note: insert an explicit cast to silence this issue (disks.current != Disks::EJECTED) | (disks.writeProtected ? 0x2U : 0x0U), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:481:6: error: non-constant-expression cannot be narrowed from type 'int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] disks.current != Disks::EJECTED ? disks.current : 0xFF, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:481:6: note: insert an explicit cast to silence this issue disks.current != Disks::EJECTED ? disks.current : 0xFF, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:482:6: error: non-constant-expression cannot be narrowed from type 'int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] disks.current != Disks::EJECTED ? disks.mounting : 0 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:482:6: note: insert an explicit cast to silence this issue disks.current != Disks::EJECTED ? disks.mounting : 0 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:963:19: warning: '&' within '|' [-Wbitwise-op-parentheses] else if (!(reg & CTRL_STOP | count) && io) ~~~~^~~~~~~~~~~ ~ source/core/NstFds.cpp:963:19: note: place parentheses around the '&' expression to silence this warning else if (!(reg & CTRL_STOP | count) && io) ^ ( ) source/core/NstFds.cpp:1225:6: error: non-constant-expression cannot be narrowed from type 'Nes::uint' (aka 'unsigned int') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] unit.timer.ctrl, ^~~~~~~~~~~~~~~ source/core/NstFds.cpp:1225:6: note: insert an explicit cast to silence this issue unit.timer.ctrl, ^~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:1226:6: error: non-constant-expression cannot be narrowed from type 'Nes::uint' (aka 'unsigned int') to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] unit.status, ^~~~~~~~~~~ source/core/NstFds.cpp:1226:6: note: insert an explicit cast to silence this issue unit.status, ^~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:1227:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] unit.timer.latch & 0xFFU, ^~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:1227:6: note: insert an explicit cast to silence this issue unit.timer.latch & 0xFFU, ^~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:1228:6: error: non-constant-expression cannot be narrowed from type 'int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] unit.timer.latch >> 8, ^~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:1228:6: note: insert an explicit cast to silence this issue unit.timer.latch >> 8, ^~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:1229:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] unit.timer.count & 0xFFU, ^~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:1229:6: note: insert an explicit cast to silence this issue unit.timer.count & 0xFFU, ^~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:1230:6: error: non-constant-expression cannot be narrowed from type 'int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] unit.timer.count >> 8, ^~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:1230:6: note: insert an explicit cast to silence this issue unit.timer.count >> 8, ^~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:1244:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] unit.drive.in & 0xFFU, ^~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:1244:6: note: insert an explicit cast to silence this issue unit.drive.in & 0xFFU, ^~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:1246:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] unit.drive.count ? headPos & 0xFF : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:1246:6: note: insert an explicit cast to silence this issue unit.drive.count ? headPos & 0xFF : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:1247:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] unit.drive.count ? headPos >> 8 : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:1247:6: note: insert an explicit cast to silence this issue unit.drive.count ? headPos >> 8 : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:1248:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] unit.drive.count ? unit.drive.dataPos & 0xFFU : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:1248:6: note: insert an explicit cast to silence this issue unit.drive.count ? unit.drive.dataPos & 0xFFU : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:1249:6: error: non-constant-expression cannot be narrowed from type 'int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] unit.drive.count ? unit.drive.dataPos >> 8 : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:1249:6: note: insert an explicit cast to silence this issue unit.drive.count ? unit.drive.dataPos >> 8 : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:1250:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] unit.drive.count ? unit.drive.gap & 0xFFU : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:1250:6: note: insert an explicit cast to silence this issue unit.drive.count ? unit.drive.gap & 0xFFU : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:1251:6: error: non-constant-expression cannot be narrowed from type 'int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] unit.drive.count ? unit.drive.gap >> 8 : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:1251:6: note: insert an explicit cast to silence this issue unit.drive.count ? unit.drive.gap >> 8 : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:1252:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] unit.drive.count ? unit.drive.length & 0xFFU : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:1252:6: note: insert an explicit cast to silence this issue unit.drive.count ? unit.drive.length & 0xFFU : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) source/core/NstFds.cpp:1253:6: error: non-constant-expression cannot be narrowed from type 'int' to 'Nes::byte' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] unit.drive.count ? unit.drive.length >> 8 : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/core/NstFds.cpp:1253:6: note: insert an explicit cast to silence this issue unit.drive.count ? unit.drive.length >> 8 : 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) fatal error: too many errors emitted, stopping now [-ferror-limit=] 1 warning and 20 errors generated. gmake: *** [Makefile:152: objs/core/NstFds.o] Error 1 source/linux/uihelp.cpp:267:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ source/linux/uihelp.cpp:337:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 2 warnings generated. *** Error code 2 Stop. make[1]: stopped in /data/pkgsrc/emulators/nestopia *** Error code 1 Stop. make: stopped in /data/pkgsrc/emulators/nestopia