Skip to content

Compiler Warning fixes #7901

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

Merged
merged 2 commits into from
Sep 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hal/mbed_ticker_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static void initialize(const ticker_data_t *ticker)

uint8_t frequency_shifts = 0;
for (uint8_t i = 31; i > 0; --i) {
if ((1 << i) == frequency) {
if ((1U << i) == frequency) {
frequency_shifts = i;
break;
}
Expand Down
2 changes: 0 additions & 2 deletions rtos/TARGET_CORTEX/mbed_rtx_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ __NO_RETURN void osRtxIdleThread (void *argument)

__NO_RETURN uint32_t osRtxErrorNotify (uint32_t code, void *object_id)
{
osThreadId_t tid = osThreadGetId();

switch (code) {
case osRtxErrorStackUnderflow:
// Stack underflow detected for thread (thread_id=object_id)
Expand Down