1. 去除一些编译警告
This commit is contained in:
parent
f2103a6f46
commit
2e585032fe
@ -2,7 +2,11 @@
|
||||
|
||||
# 设置交叉编译器
|
||||
#set(CMAKE_CXX_COMPILER /tmp/g++)
|
||||
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
||||
endif()
|
||||
|
||||
project(HDSDK LANGUAGES CXX)
|
||||
|
||||
|
||||
@ -505,7 +505,7 @@ bool HDSDKPrivate::Dispose(int cmd, const std::string &data, const detail::HAny
|
||||
NotifySendFile.Bind(fileInfo_.call);
|
||||
NotifySendFile.SetUserData(fileInfo_.userData);
|
||||
|
||||
std::string sendData = detail::IconvStr<huint16>(47 + fileInfo_.name.size() + 1);
|
||||
std::string sendData = detail::IconvStr<huint16>(static_cast<huint16>(47 + fileInfo_.name.size() + 1));
|
||||
sendData.append(detail::IconvStr<huint16>(detail::kFileStartAsk));
|
||||
sendData.append(fileInfo_.md5);
|
||||
sendData.append(1, '\0');
|
||||
|
||||
@ -259,7 +259,7 @@ public:
|
||||
bool get_to(_T &value) const {
|
||||
CAT_TRY {
|
||||
from_xml(*this, value);
|
||||
} CAT_CATCH (const HXmlException &e) {
|
||||
} CAT_CATCH (const HXmlException &) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user