Merge pull request #5529 from BillyONeal/master

Resolve [[nodiscard]] warning from c_str() call.
This commit is contained in:
R. Belmont 2019-08-24 15:08:16 -04:00 committed by GitHub
commit b3a1592ba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -374,7 +374,7 @@ private:
void convert_command_glyph(std::string &str)
{
str.c_str(); // force NUL-termination - we depend on it later
(void)str.c_str(); // force NUL-termination - we depend on it later
std::size_t const len(str.length());
std::vector<char> buf(2 * (len + 1));
std::size_t j(0);