This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new b1c4e3920 examples/gps: Add default case for switch-warning of vendor 
extended sentence
b1c4e3920 is described below

commit b1c4e392057657638d9eaed83eb43a8b88b864df
Author: wangjianyu3 <[email protected]>
AuthorDate: Thu Sep 19 18:49:31 2024 +0800

    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 <[email protected]>
---
 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;

Reply via email to