-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Bluetooth: gatt_pool: Supress -Waddress in EL_IN_POOL_VERIFY #19856
Bluetooth: gatt_pool: Supress -Waddress in EL_IN_POOL_VERIFY #19856
Conversation
Thank you for your contribution! Note: This comment is automatically posted and updated by the Contribs GitHub Action. |
GCC13 will complain here with: gatt_pool.c:165:69: warning: the comparison will always evaluate as 'true' for the address of 'chrc_tab' will never be NULL [-Waddress] when CONFIG_ASSERT is set. Since the problem is harmless add warning supression pragmas to avoid build failures with -Werror. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
8309bd4
to
e64d3c7
Compare
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.
This is source file and pools are defined buildtime.
If this is a real problem it can be resolved by modifying the way the check is done.
From reading the code
Thoughts? I'm low on any other ideas, but I'm open to suggestions. |
This pull request has been marked as stale because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 7 days. Note, that you can always re-open a closed pull request at any time. |
Can someone from Nordic please take a look at this? I don't think any actions were required of me to make any progress here |
GCC13 will complain here with:
gatt_pool.c:165:69: warning: the comparison will always evaluate as 'true' for the address of 'chrc_tab' will never be NULL [-Waddress]
when CONFIG_ASSERT is set. Since the problem is harmless add warning supression pragmas to avoid build failures with -Werror.