Add a space between literal and string macro to eliminate warning under G++.

This commit is contained in:
Chunting Gu
2018-10-22 22:13:48 +08:00
parent 6a51be172a
commit 09ae5b4a2f
2 changed files with 58 additions and 62 deletions
+2 -1
View File
@@ -15,7 +15,8 @@ void HttpRequest::Make() {
SetHeader(kHost, host_ + ":" + port_);
}
SetHeader(kUserAgent, "Webcc/"WEBCC_VERSION);
// NOTE: C++11 requires a space between literal and string macro.
SetHeader(kUserAgent, "Webcc/" WEBCC_VERSION);
}
} // namespace webcc