public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-56] testsuite/100176 - fix struct-layout-1_generate.c compile
@ 2021-04-22  7:52 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-04-22  7:52 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:5668843346c74cabf830e46b45fad24db4566fd6

commit r12-56-g5668843346c74cabf830e46b45fad24db4566fd6
Author: Richard Biener <rguenther@suse.de>
Date:   Thu Apr 22 09:50:26 2021 +0200

    testsuite/100176 - fix struct-layout-1_generate.c compile
    
    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.

Diff:
---
 gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c b/gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c
index 824e4ba6503..ca242004e64 100644
--- a/gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c
+++ b/gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c
@@ -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;
     }
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-22  7:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22  7:52 [gcc r12-56] testsuite/100176 - fix struct-layout-1_generate.c compile Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).