Skip to content

Commit

Permalink
Fix re-declared scoped enum as unscoped (Causes issues with some comp…
Browse files Browse the repository at this point in the history
…ilers) (bitcoin#13180)
  • Loading branch information
jonasschnelli authored and Duddino committed Jan 30, 2025
1 parent 48dc0e4 commit 6717891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ enum class RetFormat {
};

static const struct {
enum RetFormat rf;
RetFormat rf;
const char* name;
} rf_names[] = {
{RetFormat::UNDEF, ""},
Expand Down Expand Up @@ -69,7 +69,7 @@ static bool RESTERR(HTTPRequest* req, enum HTTPStatusCode status, std::string me
return false;
}

static enum RetFormat ParseDataFormat(std::vector<std::string>& params, const std::string& strReq)
static RetFormat ParseDataFormat(std::vector<std::string>& params, const std::string& strReq)
{
boost::split(params, strReq, boost::is_any_of("."));
if (params.size() > 1) {
Expand Down

0 comments on commit 6717891

Please sign in to comment.