-
Notifications
You must be signed in to change notification settings - Fork 42
add missing const in external umf api #1257
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
Conversation
26e2716 to
dc6d570
Compare
| // in an mmap call like this: | ||
| // mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0) | ||
| umf_memory_provider_ops_t *provider_ops = umfOsMemoryProviderOps(); | ||
| const umf_memory_provider_ops_t *provider_ops = umfOsMemoryProviderOps(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compat tests should fail here - I need to investigate this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/home/runner/work/unified-memory-framework/unified-memory-framework/tag_version/examples/basic/basic.c: In function ‘main’:
/home/runner/work/unified-memory-framework/unified-memory-framework/tag_version/examples/basic/basic.c:25:47: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
25 | umf_memory_provider_ops_t *provider_ops = umfOsMemoryProviderOps();
| ^~~~~~~~~~~~~~~~~~~~~~
/home/runner/work/unified-memory-framework/unified-memory-framework/tag_version/examples/basic/basic.c:72:39: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
72 | umf_memory_pool_ops_t *pool_ops = umfScalablePoolOps();
| ^~~~~~~~~~~~~~~~~~
fixes: #1080
Description
Checklist