testsuite/100176 - fix struct-layout-1_generate.c compile
authorRichard Biener <rguenther@suse.de>
Thu, 22 Apr 2021 07:50:26 +0000 (09:50 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 22 Apr 2021 07:51:01 +0000 (09:51 +0200)
With -Werror=return-type we run into compile fails complaining about
missing return stmts.

2021-04-21  Richard Biener  <rguenther@suse.de>

PR testsuite/100176
* objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c: Add
missing return.

gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c

index 824e4ba..ca24200 100644 (file)
@@ -690,6 +690,8 @@ subvalues (struct entry *e, char *p, char *letter)
       if (e[0].len != 0)
        output_FNB ('B', e);
       return 1;
+    default:
+      return 0;
     }
 }