TIMER: silence a bogus compiler warning

Added a default clause in a switch to silence a
-Werror=maybe-uninitialized warning

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
Alberto Escolar Piedras 2019-11-15 14:59:15 +01:00
parent 9cb5b7f601
commit 7e4e4cbe31
1 changed files with 1 additions and 0 deletions

View File

@ -359,6 +359,7 @@ void nrf_timer_timer_triggered() {
event_cc = TIMER3_EVENTS_COMPARE_0;
break;
case 4:
default: /* Just to silence a -Werror=maybe-uninitialized warning */
event_cc = TIMER4_EVENTS_COMPARE_0;
break;
}