From: panne Date: Sun, 25 Jun 2000 17:25:42 +0000 (+0000) Subject: [project @ 2000-06-25 17:25:42 by panne] X-Git-Tag: Approximately_9120_patches~4142 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=36695890847c6be8239b8d7ca18917e5cc80606f;p=ghc-hetmet.git [project @ 2000-06-25 17:25:42 by panne] Keep gcc -Wall happy --- diff --git a/ghc/rts/Main.c b/ghc/rts/Main.c index 0409e7e..f66ecdf 100644 --- a/ghc/rts/Main.c +++ b/ghc/rts/Main.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Main.c,v 1.24 2000/04/26 09:28:18 simonmar Exp $ + * $Id: Main.c,v 1.25 2000/06/25 17:25:42 panne Exp $ * * (c) The GHC Team 1998-2000 * @@ -126,5 +126,6 @@ int main(int argc, char *argv[]) barf("main thread completed with invalid status"); } shutdownHaskellAndExit(exit_status); + return 0; /* never reached, keep gcc -Wall happy */ } # endif /* BATCH_MODE */ diff --git a/ghc/rts/StgMiscClosures.hc b/ghc/rts/StgMiscClosures.hc index 132caaa..b95cfd5 100644 --- a/ghc/rts/StgMiscClosures.hc +++ b/ghc/rts/StgMiscClosures.hc @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: StgMiscClosures.hc,v 1.44 2000/04/27 16:29:55 sewardj Exp $ + * $Id: StgMiscClosures.hc,v 1.45 2000/06/25 17:25:42 panne Exp $ * * (c) The GHC Team, 1998-2000 * @@ -41,6 +41,7 @@ STGFUN(type##_entry) \ FB_ \ DUMP_ERRMSG(#type " object entered!\n"); \ STGCALL1(shutdownHaskellAndExit, EXIT_FAILURE); \ + return NULL; \ FE_ \ } @@ -588,6 +589,7 @@ STGFUN(stg_error_entry) \ FB_ \ DUMP_ERRMSG("fatal: stg_error_entry"); \ STGCALL1(shutdownHaskellAndExit, EXIT_FAILURE); \ + return NULL; \ FE_ \ }