summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2025-08-29 18:59:27 -0700
committerGitHub <noreply@github.com>2025-08-29 18:59:27 -0700
commit288a63dea8c441df6edc4f8fae10d340c20e1ba3 (patch)
tree2ac4776b496940769a820ca18cd377b30f958971
parent7758625d3fea67e55e98e7e4103d56c9918365be (diff)
Remove unused variable in slangc::main (#8325)
-rw-r--r--source/slangc/main.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/source/slangc/main.cpp b/source/slangc/main.cpp
index ae663e050..7b3aec476 100644
--- a/source/slangc/main.cpp
+++ b/source/slangc/main.cpp
@@ -30,20 +30,14 @@ static SlangResult _compile(SlangCompileRequest* compileRequest, int argc, const
spSetDiagnosticCallback(compileRequest, &_diagnosticCallback, nullptr);
spSetCommandLineCompilerMode(compileRequest);
- char const* appName = "slangc";
- if (argc > 0)
- appName = argv[0];
-
+ SlangResult res = spProcessCommandLineArguments(compileRequest, &argv[1], argc - 1);
+ if (SLANG_FAILED(res))
{
- const SlangResult res = spProcessCommandLineArguments(compileRequest, &argv[1], argc - 1);
- if (SLANG_FAILED(res))
- {
- // TODO: print usage message
- return res;
- }
+ // TODO: print usage message
+ return res;
}
- SlangResult res = SLANG_OK;
+ res = SLANG_OK;
#ifndef _DEBUG
try