Skip to content
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

validation_layer_generator: do not check static array addresses #399

Merged
merged 2 commits into from
Apr 27, 2023

Conversation

sdegrande
Copy link
Contributor

@sdegrande sdegrande commented Apr 25, 2023

The generator creates the same validation code for a static array of structs than for a pointer to a struct (used for dynamically allocated arrays): it first checks if the member is not null.

Given that static array addresses are always not null, GCC (12.2.1) and CLANG (16.0.1) emit pointer-bool-conversion warnings.

The generator creates the same validation code for a static array
of structs than for a pointer to a struct (used for dynamically
allocated arrays): it first checks if the content of the member is not
null.

Given that static array addresses are always not null, GCC (12.2.1) and
CLANG (16.0.1) emit pointer-bool-conversion warnings.
@CLAassistant
Copy link

CLAassistant commented Apr 25, 2023

CLA assistant check
All committers have signed the CLA.

@rpavlik
Copy link
Contributor

rpavlik commented Apr 25, 2023

Oh so that's why it's making that warning... I hadn't had a chance to look into it but I had seen the warning. Thanks, this is great!

Would you mind putting a changelog fragment in changes/sdk/pr.399.gh.OpenXR-SDK-Source.md ?

@rpavlik rpavlik added in layers needs changelog fragment Someone, preferably the submitter, needs to add a changelog fragment describing this. labels Apr 25, 2023
@sdegrande
Copy link
Contributor Author

Would you mind putting a changelog fragment in changes/sdk/pr.399.gh.OpenXR-SDK-Source.md ?

What's that ? Ok, I'll have a look.

@sdegrande
Copy link
Contributor Author

Done. I hope that it conforms to what you're expecting.

@rpavlik
Copy link
Contributor

rpavlik commented Apr 25, 2023

Awesome, that looks great! Thank you so much!

@rpavlik rpavlik merged commit ede3de6 into KhronosGroup:main Apr 27, 2023
@sdegrande
Copy link
Contributor Author

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in layers needs changelog fragment Someone, preferably the submitter, needs to add a changelog fragment describing this.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants