Skip to content

Commit

Permalink
fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Smith committed Mar 14, 2024
1 parent 71e9bdd commit 7625be1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions six/modules/c++/six.sidd/source/DerivedXMLParser300.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include <sstream>
#include <stdexcept>
#include <tuple>

#include <gsl/gsl.h>

Expand Down Expand Up @@ -344,6 +345,7 @@ void DerivedXMLParser300::parseJ2KCompression(const xml::lite::Element& j2kElem,
{
// The schema says this is required, but we might not be validating.
const size_t index = std::stoi(strIndex);
std::ignore = index; // compiler warning
assert(ii == index); // again, we might not be validating the XML
}

Expand Down

0 comments on commit 7625be1

Please sign in to comment.