modula-2, libm2min: Declare abort and exit as expected.
The build is currently emitting a warning that abort() is declared differently from the built-in. This updates the declaration to match expectations. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> gcc/m2/ChangeLog: * gm2-libs-min/libc.c (abort): Update declaration to match the expected form, add no-return attribute. (exit): Add no-return attribute.
This commit is contained in:
parent
727bd5d478
commit
2d2edf1080
1 changed files with 3 additions and 3 deletions
|
@ -24,10 +24,10 @@ a copy of the GCC Runtime Library Exception along with this program;
|
|||
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
void abort (int);
|
||||
void exit (int);
|
||||
extern void abort (void) __attribute__ ((__noreturn__));
|
||||
extern void exit (int) __attribute__ ((__noreturn__));
|
||||
|
||||
void abort (int i)
|
||||
void abort (void)
|
||||
{
|
||||
while (1)
|
||||
;
|
||||
|
|
Loading…
Add table
Reference in a new issue