Skip to content

Commit c69446e

Browse files
author
Rik
committed
maint: Silence compiler warning for _Exit function.
* syscalls.cc (F_Exit): Add comment and code "return ovl ();" to stop compiler warning about reaching end of non-void function without a return.
1 parent c77d758 commit c69446e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libinterp/corefcn/syscalls.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,9 @@ The ordinary C library function `exit` will not work.
553553
status = args(0).xint_value ("_Exit: STATUS must be an integer");
554554

555555
octave__Exit_wrapper (status);
556+
557+
// This function never returns. Silent compiler warning.
558+
return ovl ();
556559
}
557560

558561
DEFUNX ("getpgrp", Fgetpgrp, args, ,

0 commit comments

Comments
 (0)