summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/minimaws/lib/lxparse.py
diff options
context:
space:
mode:
author Billy Robert O'Neal III <bion@microsoft.com>2019-08-23 17:18:04 -0700
committer Billy Robert O'Neal III <bion@microsoft.com>2019-08-23 17:18:04 -0700
commit66ba636f1fa453335539e27dccd1def8aa7208ef (patch)
treecff9303cb7f58f35cd97987eb20167316e85ae71 /scripts/minimaws/lib/lxparse.py
parent70f176f74f42366ffc69fc048085edce7ffd8ce1 (diff)
Resolve [[nodiscard]] warning from c_str() call.
In C++98/03, basic_string::c_str() was allowed to be a reallocation to insert the null terminator. MAME is ensuring this actually happens with a do-nothing call to c_str(). In C++11 and later, this is prohibited, and the string is mandated to be always null terminated. As a result Visual C++ marks c_str() with [[nodiscard]], triggering a warning here for discarding the result. (I don't know of any C++03 implementation that actually reallocates here, but just in case this code actually targeted such an implementation I've just suppressed the warning for now. If MAME only targets C++11 or later, we should fix it by deleting the line.)
Diffstat (limited to 'scripts/minimaws/lib/lxparse.py')
0 files changed, 0 insertions, 0 deletions