-
Notifications
You must be signed in to change notification settings - Fork 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
Compiler warning: unused variable in LoRaMac.h #7807
Conversation
@0xc0170 Please review. Minor compiler warning fix. |
@hasnainvirk Please update the PR title and commit to be something a bit more specific than "a minor warning" |
In release builds where MBED_ASSERT macro is syphoned off, we were hitting an unused variable warning. To mitigate that we could direct the variable used in MBED_ASSERT to void.
b77307a
to
a7cb32f
Compare
@cmonr How does it look now ? Sorry for the lame message in the first attempt. Was in hurry to leave for home :D |
It looks to me like Mutex lock has possibility to fail at runtime (returning status flag) #6872 means a better solution would be to remove the status check. I haven't considered the discussion is great detail but some people think that |
@mattbrown015 This PR is only correcting a unused variable warning. It looks like the discussion in regards to issue #6872 is continuing in this PR: #7423 /morph build |
Build : SUCCESSBuild number : 2831 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2462 |
Test : FAILUREBuild number : 2583 |
@cmonr Actually @mattbrown015 is right. osStatus Mutex::lock will soon get deprecated in favour of void Mutex::lock. I am not sure if this PR is worth it. I pushed this PR thinking that the #7423 will take time. Anyway your call to keep the PR or discard it. |
@cmonr Do we need to restart the CI ? |
/morph test |
Test : SUCCESSBuild number : 2593 |
/morph uvisor-test |
Compiler warning: unused variable in LoRaMac.h
Description
Fixing an unused variable warning
Pull request type