From cf8f76a0e1a319ba20810d60c7489f343f8010c7 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sat, 12 May 2018 22:33:15 -0230 Subject: [PATCH] Fix [[nodiscard]] warning in VS (applies only to C++17 mode). --- src/debugger/DebuggerParser.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/debugger/DebuggerParser.cxx b/src/debugger/DebuggerParser.cxx index 53c4596e3..3640e4584 100644 --- a/src/debugger/DebuggerParser.cxx +++ b/src/debugger/DebuggerParser.cxx @@ -414,7 +414,7 @@ bool DebuggerParser::validateArgs(int cmd) { if(required) { - commandResult.str(); + void(commandResult.str()); outputCommandError("missing required argument(s)", cmd); return false; // needed args. didn't get 'em. } @@ -513,13 +513,13 @@ cerr << "curCount = " << curCount << endl if(curCount < argRequiredCount) { - commandResult.str(); + void(commandResult.str()); outputCommandError("missing required argument(s)", cmd); return false; } else if(argCount > curCount) { - commandResult.str(); + void(commandResult.str()); outputCommandError("too many arguments", cmd); return false; }