Fix unused variable errors (#5843)

Signed-off-by: Steve Pham <82231385+spham-amzn@users.noreply.github.com>
This commit is contained in:
Steve Pham
2021-11-22 14:19:59 -08:00
committed by GitHub
parent cbe40935ee
commit be2a32d68d
2 changed files with 2 additions and 2 deletions
@@ -52,7 +52,7 @@ namespace ImageProcessingAtom
namespace
{
static constexpr const char* const LogWindow = "Image Processing";
[[maybe_unused]] static constexpr const char* const LogWindow = "Image Processing";
}
#if defined(AZ_TOOLS_EXPAND_FOR_RESTRICTED_PLATFORMS)
@@ -38,7 +38,7 @@ namespace QtForPython
void* moduleHandle = dlopen(moduleToLoad, RTLD_NOW | RTLD_GLOBAL);
if (!moduleHandle)
{
const char* loadError = dlerror();
[[maybe_unused]] const char* loadError = dlerror();
AZ_Error("QtForPython", false, "Unable to load python library %s for Pyside2: %s", moduleToLoad,
loadError ? loadError : "Unknown Error");
}