mirror of
https://github.com/holub/mame
synced 2025-04-20 23:42:22 +03:00
Merge pull request #5529 from BillyONeal/master
Resolve [[nodiscard]] warning from c_str() call.
This commit is contained in:
commit
b3a1592ba8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user