[commit: ghc] master: Fix ghciprog004 when built with Clang (dbc4605)

git at git.haskell.org git at git.haskell.org
Thu Jan 16 01:16:52 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/dbc4605d203f7a5fa7a7f7783039b2ddc61ba116/ghc

>---------------------------------------------------------------

commit dbc4605d203f7a5fa7a7f7783039b2ddc61ba116
Author: Austin Seipp <austin at well-typed.com>
Date:   Wed Jan 15 19:11:42 2014 -0600

    Fix ghciprog004 when built with Clang
    
    Clang warns about implicit return values by default.
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>


>---------------------------------------------------------------

dbc4605d203f7a5fa7a7f7783039b2ddc61ba116
 testsuite/tests/ghci/prog004/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/tests/ghci/prog004/Makefile b/testsuite/tests/ghci/prog004/Makefile
index 61631fc..49e1f5d 100644
--- a/testsuite/tests/ghci/prog004/Makefile
+++ b/testsuite/tests/ghci/prog004/Makefile
@@ -6,6 +6,6 @@ include $(TOP)/mk/test.mk
 # (sourceforge bug #1073501).
 ghciprog004:
 	rm -f ctest.o
-	echo "int foo(){}" >ctest.c
+	echo "int foo(){return 0;}" >ctest.c
 	'$(TEST_HC)' $(TEST_HC_OPTS) -optc-g -c ctest.c
 	echo ":q" | '$(TEST_HC)' $(TEST_HC_OPTS) -v0 --interactive -ignore-dot-ghci ctest.o



More information about the ghc-commits mailing list