Skip to content

Disable -Wcast-function-type-strict - #1010

Merged
dneto0 merged 1 commit into
google:mainfrom
dj2:cast
Dec 16, 2022
Merged

dneto0 merged 1 commit into
google:mainfrom
dj2:cast

Conversation

@dj2

@dj2 dj2 commented Dec 15, 2022

Copy link
Copy Markdown
Collaborator

This CL turns off -Wcast-function-type-strict as it triggers on casts of the vulkan function pointers when casting the pointer returned by getInstanceProcAddr.

Fixes #1009

This CL turns off -Wcast-function-type-strict as it triggers on casts of
the vulkan function pointers when casting the pointer returned by
`getInstanceProcAddr`.

Fixes google#1009
@dj2
dj2 requested a review from dneto0 December 15, 2022 21:30
@dj2 dj2 self-assigned this Dec 15, 2022

@dneto0 dneto0 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the right thing to do.
The way graphics APIs use function pointers via 'get-proc-address' this warning is never going to let that pass.

@dneto0
dneto0 merged commit af97b85 into google:main Dec 16, 2022
@dj2
dj2 deleted the cast branch December 16, 2022 02:07
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.

Build failures on linux/clang-16

3 participants