Skip to content

Mostly error and warning fixes.#92

Open
Jonathan-Weinstein-AMD wants to merge 3 commits intomicrosoft:developmentfrom
Jonathan-Weinstein-AMD:fixes
Open

Mostly error and warning fixes.#92
Jonathan-Weinstein-AMD wants to merge 3 commits intomicrosoft:developmentfrom
Jonathan-Weinstein-AMD:fixes

Conversation

@Jonathan-Weinstein-AMD
Copy link

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]
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.

1 participant