[commit: ghc] master: Testsuite: ignore `stdcall attribute ignored` (#1288) (07feab1)

git at git.haskell.org git at git.haskell.org
Thu Jun 4 22:01:26 UTC 2015


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

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

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

commit 07feab194aff4a2ae39514480736ce23a3b679b1
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Fri May 29 21:13:39 2015 +0200

    Testsuite: ignore `stdcall attribute ignored` (#1288)
    
    That warning is only shown on some platforms, and is I believe harmless.


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

07feab194aff4a2ae39514480736ce23a3b679b1
 testsuite/tests/ffi/should_run/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/testsuite/tests/ffi/should_run/Makefile b/testsuite/tests/ffi/should_run/Makefile
index 98d26fe..a4a716a 100644
--- a/testsuite/tests/ffi/should_run/Makefile
+++ b/testsuite/tests/ffi/should_run/Makefile
@@ -6,10 +6,12 @@ ffi018_ghci_setup :
 	'$(TEST_HC)' $(TEST_HC_OPTS) -c ffi018_ghci_c.c
 
 T1288_ghci_setup :
-	'$(TEST_HC)' $(TEST_HC_OPTS) $(ghciWayFlags) -c T1288_ghci_c.c
+	# Don't show gcc warning: 'stdcall' attribute ignored [-Wattributes]
+	'$(TEST_HC)' $(TEST_HC_OPTS) $(ghciWayFlags) -c -optc=-Wno-attributes T1288_ghci_c.c
 
 T2276_ghci_setup :
-	'$(TEST_HC)' $(TEST_HC_OPTS) $(ghciWayFlags) -c T2276_ghci_c.c
+	# Don't show gcc warning: 'stdcall' attribute ignored [-Wattributes]
+	'$(TEST_HC)' $(TEST_HC_OPTS) $(ghciWayFlags) -c -optc=-Wno-attributes T2276_ghci_c.c
 
 ffi002_setup :
 	'$(TEST_HC)' $(TEST_HC_OPTS) -c ffi002.hs



More information about the ghc-commits mailing list