From b1c4e392057657638d9eaed83eb43a8b88b864df Mon Sep 17 00:00:00 2001 From: wangjianyu3 Date: Thu, 19 Sep 2024 18:49:31 +0800 Subject: [PATCH] examples/gps: Add default case for switch-warning of vendor extended 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 --- examples/gps/gps_main.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/examples/gps/gps_main.c b/examples/gps/gps_main.c index b67624e3f..e042449d3 100644 --- a/examples/gps/gps_main.c +++ b/examples/gps/gps_main.c @@ -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;