diff --git a/src/gui/cam_menu.cpp b/src/gui/cam_menu.cpp index 8b3762fc0..163d5b89b 100644 --- a/src/gui/cam_menu.cpp +++ b/src/gui/cam_menu.cpp @@ -348,7 +348,7 @@ int CCAMMenuHandler::handleCamMsg(const neutrino_msg_t msg, neutrino_msg_data_t char * tptr = sptr; int bpos = 0; for(int li = 0; li < slen; li++) { - if((tptr[li] == 0x8A) || ((bpos > 38) && (tptr[li] == 0x20)) ) { + if(((unsigned char)tptr[li] == 0x8A) || ((bpos > 38) && (tptr[li] == 0x20)) ) { bpos = 0; tptr[li] = 0; printf("CCAMMenuHandler::handleCamMsg: subtitle: %s\n", sptr); diff --git a/src/gui/filebrowser.cpp b/src/gui/filebrowser.cpp index 89de8df40..057a1e637 100644 --- a/src/gui/filebrowser.cpp +++ b/src/gui/filebrowser.cpp @@ -1437,7 +1437,7 @@ void CFileBrowser::paintSMSKey() if(m_SMSKeyInput.getOldKey()!=0) { - char cKey[2] = {m_SMSKeyInput.getOldKey(), 0}; + char cKey[2] = {(char)m_SMSKeyInput.getOldKey(), 0}; cKey[0] = toupper(cKey[0]); int len = fnt_small->getRenderWidth(cKey); fnt_small->RenderString(x + width - skwidth, y + height - foheight + foheight/2 + skheight/2, len, cKey, COL_MENUHEAD_TEXT); diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 5521c7d5d..405eeade3 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -2228,7 +2228,7 @@ bool CMoviePlayerGui::mountIso(CFile *file) return false; } -void CMoviePlayerGui::makeScreenShot(bool autoshot, bool forcover) +void CMoviePlayerGui::makeScreenShot(bool autoshot, bool /*forcover*/) { if (autoshot && (autoshot_done || !g_settings.auto_cover)) return; diff --git a/src/nhttpd/yhttpd_core/helper.cpp b/src/nhttpd/yhttpd_core/helper.cpp index e8bc5a235..24498b635 100644 --- a/src/nhttpd/yhttpd_core/helper.cpp +++ b/src/nhttpd/yhttpd_core/helper.cpp @@ -292,6 +292,8 @@ std::string json_out_error(std::string _error) { //----------------------------------------------------------------------------- // JSON: convert string to JSON-String //----------------------------------------------------------------------------- +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wsign-compare" std::string json_convert_string(std::string s) { std::stringstream ss; for (size_t i = 0; i < s.length(); ++i) { @@ -305,4 +307,4 @@ std::string json_convert_string(std::string s) { } return ss.str(); } - +#pragma GCC diagnostic pop