From 671789146057df61a8a6436dcd255474cf8ac035 Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Thu, 30 Jan 2025 16:48:42 +0100 Subject: [PATCH] Fix re-declared scoped enum as unscoped (Causes issues with some compilers) (https://github.com/bitcoin/bitcoin/pull/13180) --- src/rest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rest.cpp b/src/rest.cpp index aac6ff19a81ae..860a3b7ce2ae3 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -33,7 +33,7 @@ enum class RetFormat { }; static const struct { - enum RetFormat rf; + RetFormat rf; const char* name; } rf_names[] = { {RetFormat::UNDEF, ""}, @@ -69,7 +69,7 @@ static bool RESTERR(HTTPRequest* req, enum HTTPStatusCode status, std::string me return false; } -static enum RetFormat ParseDataFormat(std::vector& params, const std::string& strReq) +static RetFormat ParseDataFormat(std::vector& params, const std::string& strReq) { boost::split(params, strReq, boost::is_any_of(".")); if (params.size() > 1) {