Skip to content

Mostly error and warning fixes.#92

Merged
pm4rtx merged 4 commits intomicrosoft:developmentfrom
Jonathan-Weinstein-AMD:fixes
Mar 25, 2026
Merged

Mostly error and warning fixes.#92
pm4rtx merged 4 commits intomicrosoft:developmentfrom
Jonathan-Weinstein-AMD:fixes

Conversation

@Jonathan-Weinstein-AMD
Copy link
Copy Markdown

Exit with help text on an unknown/bad command line argument (intentionally entering an unknown arg like "?" can be useful to just print that). Coded in probably not the best way to reduce potential merge conflicts.

Fix the build by using symbol with _SingleStream. PR #91 seems to have been based on a branch that didn't have PR #90.

Fix warnings, see below. The volatile is unusual, but I figured there was value in keeping const[-expr] and not having to change multiple ifs to if constexpr.

zstdgpu_shaders.h(3875,24): warning C4189: 'seqMemStart': local variable is initialized but not referenced
main.cpp(1230,31): warning C4127: conditional expression is constant
main.cpp(...): [3 more of the above]

…s value in keeping `const[-expr]` and not having to change multiple `if`s to `if constexpr`.

zstdgpu_shaders.h(3875,24): warning C4189: 'seqMemStart': local variable is initialized but not referenced
main.cpp(1230,31): warning C4127: conditional expression is constant
main.cpp(...): [3 more of the above]
@pm4rtx pm4rtx merged commit 12db198 into microsoft:development Mar 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants