Skip to content

lib-manager: don't cast away "const" - #9869

Merged
lgirdwood merged 1 commit into
thesofproject:mainfrom
lyakh:const
Mar 4, 2025
Merged

lgirdwood merged 1 commit into
thesofproject:mainfrom
lyakh:const

Conversation

@lyakh

@lyakh lyakh commented Mar 3, 2025

Copy link
Copy Markdown
Collaborator

Don't type-cast pointers to "const" objects to writable pointers even temporarily. This is error-prone and might cause future compiler warnings.

Don't type-cast pointers to "const" objects to writable pointers even
temporarily. This is error-prone and might cause future compiler
warnings.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
@kv2019i
kv2019i requested a review from Copilot March 3, 2025 13:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@lgirdwood

Copy link
Copy Markdown
Member

@lyakh can you check CI thanks

@lyakh

lyakh commented Mar 4, 2025 •

Copy link
Copy Markdown
Collaborator Author

@lyakh can you check CI thanks

@lgirdwood I dare say, that this is a pure compile-time change, since both variables to which expressions are assigned, are const too. So really surprised to see the "Internal Intel CI" failing. @wszypelt has anything broken the down-mix test?

@lgirdwood
lgirdwood merged commit 0d777cb into thesofproject:main Mar 4, 2025
@lyakh
lyakh deleted the const branch March 4, 2025 16:27
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.

5 participants