Skip to content

Commit

Permalink
examples/gps: Add default case for switch-warning of vendor extended …
Browse files Browse the repository at this point in the history
…sentence

Vendor may add extended sentence may not handled in switch, error if -Werror=switch enabled.
And extended sentence should not added to general examples.

Signed-off-by: wangjianyu3 <[email protected]>
  • Loading branch information
JianyuWang0623 authored and xiaoxiang781216 committed Sep 19, 2024
1 parent abdcb33 commit b1c4e39
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions examples/gps/gps_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,7 @@ int main(int argc, FAR char *argv[])
}
break;

case MINMEA_INVALID:
case MINMEA_UNKNOWN:
case MINMEA_SENTENCE_GSA:
case MINMEA_SENTENCE_GLL:
case MINMEA_SENTENCE_GST:
case MINMEA_SENTENCE_GSV:
case MINMEA_SENTENCE_GBS:
case MINMEA_SENTENCE_VTG:
case MINMEA_SENTENCE_ZDA:
case MINMEA_SENTENCE_LOR_LSQ:
default:
{
}
break;
Expand Down

0 comments on commit b1c4e39

Please sign in to comment.