Commit d6419f5b authored by captainwong's avatar captainwong

fix gcc warning

parent eba1a32c
...@@ -103,7 +103,7 @@ inline std::wstring timePointToWString(const std::chrono::system_clock::time_poi ...@@ -103,7 +103,7 @@ inline std::wstring timePointToWString(const std::chrono::system_clock::time_poi
inline std::chrono::system_clock::time_point timePointFromString(const std::string& s) inline std::chrono::system_clock::time_point timePointFromString(const std::string& s)
{ {
std::tm tm = { 0 }; std::tm tm = {};
std::istringstream ss(s); std::istringstream ss(s);
ss >> std::get_time(&tm, "%Y-%m-%d %H:%M:%S"); ss >> std::get_time(&tm, "%Y-%m-%d %H:%M:%S");
return std::chrono::system_clock::from_time_t(std::mktime(&tm)); return std::chrono::system_clock::from_time_t(std::mktime(&tm));
...@@ -111,7 +111,7 @@ inline std::chrono::system_clock::time_point timePointFromString(const std::stri ...@@ -111,7 +111,7 @@ inline std::chrono::system_clock::time_point timePointFromString(const std::stri
inline std::chrono::system_clock::time_point timePointFromWString(const std::wstring& s) inline std::chrono::system_clock::time_point timePointFromWString(const std::wstring& s)
{ {
std::tm tm = { 0 }; std::tm tm = {};
std::wistringstream ss(s); std::wistringstream ss(s);
ss >> std::get_time(&tm, L"%Y-%m-%d %H:%M:%S"); ss >> std::get_time(&tm, L"%Y-%m-%d %H:%M:%S");
return std::chrono::system_clock::from_time_t(std::mktime(&tm)); return std::chrono::system_clock::from_time_t(std::mktime(&tm));
......
#!/bin/bash
set -e
DST_HOST="192.168.50.107"
IGNORES="qt/Debug qt/Release"
rm -f jlib.zip
cd jlib
zip -r ../jlib.zip * -x $IGNORES
cd ..
scp jlib.zip root@$DST_HOST:/root/projects/jlib
rm -f jlib.zip
ssh root@$DST_HOST "cd /root/projects/jlib && unzip -o jlib.zip -d jlib && rm -f jlib.zip"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment