summaryrefslogtreecommitdiffstats
path: root/tools/gfx-unit-test/shader-cache-tests.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2022-11-17 03:33:10 +0800
committerGitHub <noreply@github.com>2022-11-16 11:33:10 -0800
commit09d8e048d2264d89886cda8e87e8a452d4f913c1 (patch)
treede925c032837ae21e7693e3c44a1c825c5fd3e6e /tools/gfx-unit-test/shader-cache-tests.cpp
parent8d500475bb11b025960bf211d505540867ce68e7 (diff)
Squash warnings (#2515)
* Don't use uname -p It's not portable (doesn't work on my machine) * Disable maybe-uninitialized warning on gcc Only false positives at the moment * Squash warning in miniz Allow it to use 64 bit file handing functions with gcc * Use noreturn c++11 attribute in SLANG_RETURN_NEVER * Squash uninitialized variable warnings * Squash const char/char conversion warnings Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/gfx-unit-test/shader-cache-tests.cpp')
-rw-r--r--tools/gfx-unit-test/shader-cache-tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gfx-unit-test/shader-cache-tests.cpp b/tools/gfx-unit-test/shader-cache-tests.cpp
index a9939d434..a7306599a 100644
--- a/tools/gfx-unit-test/shader-cache-tests.cpp
+++ b/tools/gfx-unit-test/shader-cache-tests.cpp
@@ -271,7 +271,7 @@ namespace gfx_test
{
ComPtr<IShaderProgram> shaderProgram;
slang::ProgramLayout* slangReflection;
- char* shaderFilename;
+ const char* shaderFilename;
switch (shaderIndex)
{
case 0:
@@ -361,7 +361,7 @@ namespace gfx_test
{
ComPtr<IShaderProgram> shaderProgram;
slang::ProgramLayout* slangReflection;
- char* entryPointName;
+ const char* entryPointName;
switch (shaderIndex)
{
case 0: