Merge pull request #7901 from deepikabhavnani/warning_fix

Compiler Warning fixes
pull/8156/head
Martin Kojtal 2018-09-17 14:29:15 +02:00 committed by GitHub
commit 9abcbf6acf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -47,7 +47,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;
}

View File

@ -55,8 +55,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)