diff --git a/msbuild.proj b/msbuild.proj index 60e7666d..3670ed79 100644 --- a/msbuild.proj +++ b/msbuild.proj @@ -20,7 +20,7 @@ %WINDIR%\Sysnative\bash.exe - -I../external-kodi-addon-dev-kit/kodi -I../prebuilt-libcurl/include/curl -I../prebuilt-libuuid/include -I../external-sqlite -Itmp/version + -Wall -Wno-unknown-pragmas -I../external-kodi-addon-dev-kit/kodi -I../prebuilt-libcurl/include/curl -I../prebuilt-libuuid/include -I../external-sqlite -Itmp/version -fPIC -fPIC -std=c++14 $([System.IO.File]::ReadAllText($(SolutionDir)tmp\version\version.txt)) diff --git a/src/livestream.h b/src/livestream.h index 8ca6cca6..670fac4d 100644 --- a/src/livestream.h +++ b/src/livestream.h @@ -132,8 +132,8 @@ class livestream // RING BUFFER // - std::unique_ptr m_buffer; // Ring buffer stroage size_t const m_buffersize; // Size of the ring buffer + std::unique_ptr m_buffer; // Ring buffer stroage bool m_bufferempty = true; // Flag for empty ring buffer bool m_bufferfull = false; // Flag for full ring buffer std::atomic m_bufferhead{0}; // Head (write) buffer position diff --git a/src/pvr.cpp b/src/pvr.cpp index 6cb50dc3..c47c41d3 100644 --- a/src/pvr.cpp +++ b/src/pvr.cpp @@ -798,6 +798,7 @@ static void log_message(addoncallbacks::addon_log_t level, _args&&... args) { std::ostringstream stream; int unpack[] = {0, ( static_cast(stream << args), 0 ) ... }; + (void)unpack; if(g_addon) g_addon->Log(level, stream.str().c_str()); if (level == addoncallbacks::addon_log_t::LOG_ERROR) fprintf(stderr, "ERROR: %s\r\n", stream.str().c_str()); diff --git a/src/string_exception.h b/src/string_exception.h index ca6ca179..e018de73 100644 --- a/src/string_exception.h +++ b/src/string_exception.h @@ -79,6 +79,7 @@ class string_exception : public std::exception { std::ostringstream stream; int unpack[] = {0, ( static_cast(stream << args), 0 ) ... }; + (void)unpack; return stream.str(); }