From 5946a5981e93beb258471cf4963d6fd966f41056 Mon Sep 17 00:00:00 2001 From: Chris Burel Date: Wed, 16 Jun 2021 08:35:07 -0700 Subject: [PATCH] Fix code that triggers `-Wnon-pod-varargs` (#1354) This fixes mac-specific instances of the `-Wnon-pod-varargs` warning. --- .../Metal/Code/Source/RHI.Builders/ShaderPlatformInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gems/Atom/RHI/Metal/Code/Source/RHI.Builders/ShaderPlatformInterface.cpp b/Gems/Atom/RHI/Metal/Code/Source/RHI.Builders/ShaderPlatformInterface.cpp index c4666578a7..600ef4bce5 100644 --- a/Gems/Atom/RHI/Metal/Code/Source/RHI.Builders/ShaderPlatformInterface.cpp +++ b/Gems/Atom/RHI/Metal/Code/Source/RHI.Builders/ShaderPlatformInterface.cpp @@ -417,7 +417,7 @@ namespace AZ AZ::IO::FileIOStream sourceMtlfileStream(inputMetalFile.c_str(), AZ::IO::OpenMode::ModeWrite | AZ::IO::OpenMode::ModeBinary); if (!sourceMtlfileStream.IsOpen()) { - AZ_Error(platformName, false, "Failed because the shader file \"%s\" could not be opened", inputMetalFile); + AZ_Error(platformName, false, "Failed because the shader file \"%s\" could not be opened", inputMetalFile.c_str()); return false; }