Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
d759c723
Commit
d759c723
authored
Sep 02, 2007
by
Ian Lynagh
Browse files
Fix and supress some warnings, and turn on -Werror when validating
parent
fbb3eef5
Changes
6
Hide whitespace changes
Inline
Side-by-side
rts/Makefile
View file @
d759c723
...
...
@@ -171,6 +171,16 @@ RtsUtils_CC_OPTS += -DTargetPlatform=$(DQ)$(TARGETPLATFORM)$(DQ)
RtsUtils_CC_OPTS
+=
-DGhcUnregisterised
=
$(DQ)$(GhcUnregisterised)$(DQ)
RtsUtils_CC_OPTS
+=
-DGhcEnableTablesNextToCode
=
$(DQ)$(GhcEnableTablesNextToCode)$(DQ)
StgCRun_CC_OPTS
+=
-w
Typeable_CC_OPTS
+=
-w
RetainerProfile_CC_OPTS
+=
-w
sm/
Compact_CC_OPTS
+=
-w
# The above warning supression flags are a temporary kludge.
# While working on this module you are encouraged to remove it and fix
# any warnings in the module. See
# http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
# for details
ifeq
"$(way)" "mp"
SRC_HC_OPTS
+=
-I
$$
PVM_ROOT/include
endif
...
...
rts/Schedule.c
View file @
d759c723
...
...
@@ -2577,7 +2577,12 @@ initScheduler(void)
}
void
exitScheduler
(
rtsBool
wait_foreign
)
exitScheduler
(
rtsBool
wait_foreign
#if !defined(THREADED_RTS)
__attribute__
((
unused
))
#endif
)
/* see Capability.c, shutdownCapability() */
{
Task
*
task
=
NULL
;
...
...
utils/genapply/GenApply.hs
View file @
d759c723
{-# OPTIONS -cpp -fglasgow-exts #-}
{-# OPTIONS_GHC -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- for details
module
Main
(
main
)
where
#
include
"../../includes/ghcconfig.h"
...
...
utils/genprimopcode/Parser.y
View file @
d759c723
{
{-# OPTIONS_GHC -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- for details
module Parser (parse) where
import Lexer (lex_tok)
...
...
utils/hpc/HpcParser.y
View file @
d759c723
{
{-# OPTIONS_GHC -w #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See
-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings
-- for details
module HpcParser where
import HpcLexer
...
...
validate
View file @
d759c723
...
...
@@ -11,9 +11,11 @@ if [ -f mk/build.mk ]; then
fi
# The default is a "quick" build
echo
BuildFlavour
=
quick
>
mk/build.mk
echo
HADDOCK_DOCS
=
YES
>>
mk/build.mk
cat
mk/build.mk.sample
>>
mk/build.mk
echo
"BuildFlavour = quick"
>
mk/build.mk
echo
"HADDOCK_DOCS = YES"
>>
mk/build.mk
cat
mk/build.mk.sample
>>
mk/build.mk
echo
"SRC_HC_OPTS += -Werror"
>>
mk/build.mk
echo
"SRC_CC_OPTS += -Werror"
>>
mk/build.mk
# You can override the default validate settings using mk/validate.mk
# e.g. you could add GhcLibWays=p to test profiling.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment