-
Notifications
You must be signed in to change notification settings - Fork 206
Fix lots of examples warnings #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix lots of examples warnings #88
Conversation
Hi @Alucowie Thanks a lot for your PRs, I will review them in the upcoming weeks. |
36232af
to
f335834
Compare
Hi @AlejandroCosin, I saw you commit a fix on HelloAPI, I removed my MR. |
Loop variable buffFmt creates a copy from type ImageFormat. Prevent copying and silence compiler warning.
This move prevents compiler to trigger unused-variable warnings.
This also avoids "unused-but-set-variable" warnings.
f335834
to
6c32edf
Compare
Hi @Alucowie, Thanks a lot for your contribution. Your changes are not being ignored: Before approving your PRs I need to integrate the changes in an internal branch (we use the SDK in over a dozen different platforms) and I need to make sure all builds pass, and then do testing to make sure the changes works fine in all the platforms for all SDK samples. |
Fixes are ordered by modules (OGLES/Vulkan/framework) and warnings class.
Here the list of warnings class fixed : class-memaccess, unsused variable, unused but set variable, unused function, stringop-overread, sign-compare, catch-value, invalid-offsetof, switch, return-value, reorder, unknown-pragmas, range-loop-construct and cast-user-defined.