diff --git a/Gems/Atom/Asset/ImageProcessingAtom/Code/Source/BuilderSettings/BuilderSettingManager.cpp b/Gems/Atom/Asset/ImageProcessingAtom/Code/Source/BuilderSettings/BuilderSettingManager.cpp index 487c659ade..1ae406c6fd 100644 --- a/Gems/Atom/Asset/ImageProcessingAtom/Code/Source/BuilderSettings/BuilderSettingManager.cpp +++ b/Gems/Atom/Asset/ImageProcessingAtom/Code/Source/BuilderSettings/BuilderSettingManager.cpp @@ -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) diff --git a/Gems/QtForPython/Code/Source/Platform/Linux/InitializeEmbeddedPyside2.h b/Gems/QtForPython/Code/Source/Platform/Linux/InitializeEmbeddedPyside2.h index f27b54810f..094a4f8548 100644 --- a/Gems/QtForPython/Code/Source/Platform/Linux/InitializeEmbeddedPyside2.h +++ b/Gems/QtForPython/Code/Source/Platform/Linux/InitializeEmbeddedPyside2.h @@ -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"); }