From 34ec64233a57cea75faa66029e2e1b50b9587d87 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 14 Aug 2020 08:26:47 -0400 Subject: [PATCH] macro-interpreter: Resolve -Wself-assign-field warning This was assigning the field to itself, which is a no-op. The size doesn't change between its initial assignment and this one, so this is a safe change to make. --- src/video_core/macro/macro_interpreter.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/video_core/macro/macro_interpreter.cpp b/src/video_core/macro/macro_interpreter.cpp index aa52564197..bd01fd1f25 100644 --- a/src/video_core/macro/macro_interpreter.cpp +++ b/src/video_core/macro/macro_interpreter.cpp @@ -34,7 +34,6 @@ void MacroInterpreterImpl::Execute(const std::vector& parameters, u32 metho this->parameters = std::make_unique(num_parameters); } std::memcpy(this->parameters.get(), parameters.data(), num_parameters * sizeof(u32)); - this->num_parameters = num_parameters; // Execute the code until we hit an exit condition. bool keep_executing = true;