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
	* g++.dg/compat/struct-layout-1_generate.c: Add missing return.
	* gcc.dg/compat/struct-layout-1_generate.c: Likewise.

(cherry picked from commit d8f953819e)
This commit is contained in:
Richard Biener 2021-04-21 12:46:51 +02:00
parent 53e85b38aa
commit 89ddb58cda
2 changed files with 4 additions and 0 deletions

View File

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

View File

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