From 944d938919b11d81db67aadf374725afd86b6970 Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Tue, 22 Dec 2015 12:55:02 +0100 Subject: [PATCH] CLuaInstCurl: Fix compiler warning Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/6b6dff36d629581a79b05d5d9ea4f50d152721da Author: Michael Liebmann Date: 2015-12-22 (Tue, 22 Dec 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/lua/lua_curl.cpp | 2 +- src/gui/lua/lua_threads.cpp | 2 -- src/gui/lua/lua_threads.h | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/lua/lua_curl.cpp b/src/gui/lua/lua_curl.cpp index 69d25ea17..02ddad9c0 100644 --- a/src/gui/lua/lua_curl.cpp +++ b/src/gui/lua/lua_curl.cpp @@ -99,7 +99,7 @@ int CLuaInstCurl::CurlProgressFunc(void *p, curl_off_t dltotal, curl_off_t dlnow curl_easy_getinfo(_pgd->curl, CURLINFO_RESPONSE_CODE, &responseCode); uint32_t MUL = 0x7FFF; - uint32_t dlFragment = (dlnow * MUL) / dltotal; + uint32_t dlFragment = (uint32_t)((dlnow * MUL) / dltotal); if (responseCode != 200) { dlFragment = 0; dlSpeed = 0; diff --git a/src/gui/lua/lua_threads.cpp b/src/gui/lua/lua_threads.cpp index 3bc13da75..8885f7ea2 100644 --- a/src/gui/lua/lua_threads.cpp +++ b/src/gui/lua/lua_threads.cpp @@ -21,8 +21,6 @@ * THE SOFTWARE. ******************************************************************************/ -#include - #include #include #include diff --git a/src/gui/lua/lua_threads.h b/src/gui/lua/lua_threads.h index 3d1304982..324e43ccd 100644 --- a/src/gui/lua/lua_threads.h +++ b/src/gui/lua/lua_threads.h @@ -30,6 +30,7 @@ extern "C" #include #include } +#include /* wrap strerror_r(). */ #ifndef strerror_r