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.
This commit is contained in:
parent
022f6ee3ad
commit
d8f953819e
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue