Skip to content

Commit

Permalink
Suppress warnings on MSVC
Browse files Browse the repository at this point in the history
Fixes #257

Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Oct 13, 2023
1 parent ea9ae34 commit 7415e6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/gz/math/Helpers.hh
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,10 @@ namespace ignition
dayString.erase(dayString.length() - 1);
try
{
std::stoi(dayString);
// We are only checking if it sucessfully parses,
// and are not concerned with the actual value.
auto day = std::stoi(dayString);
(void) day;
}
catch (const std::out_of_range &)
{
Expand Down

0 comments on commit 7415e6c

Please sign in to comment.