Default to -fno-show-warning-groups (re #10752)
authorHerbert Valerio Riedel <hvr@gnu.org>
Sat, 27 Feb 2016 22:36:11 +0000 (23:36 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Sat, 27 Feb 2016 22:45:35 +0000 (23:45 +0100)
commit46f3775c683faeb710c9dc22f360f39334947d73
treec365cd820603f01c4b97392fe3824e014160d5a6
parent3cd4c9ca4564982cf159f11f59d434235ba28808
Default to -fno-show-warning-groups (re #10752)

As `-fno-show-warning-groups` shows associated warning groups regardless
of whether the respective warning group flag as been passed on the CLI,
the warning-group information may be confusing to users.

At this point, `-fshow-warning-groups` is useful mostly to GHC
developers and possibly GHC users who want to see which warning groups
an emitted warning is part of. (Btw, this is particularly interesting in
combination with `-Weverything` which enables *every* warning flag known
to GHC.)

Consequently, starting with this commit, one has to opt-in via
`-fshow-warning-groups` for GHC to show warning groups.

In order to reduce the testsuite delta in this commit, the
`-fshow-warning-groups` flag has been added to TEST_HC_OPTS.
compiler/main/DynFlags.hs
docs/users_guide/using-warnings.rst
testsuite/mk/test.mk
testsuite/tests/ghc-api/apirecomp001/apirecomp001.stderr
testsuite/tests/ghci/scripts/T9293.stdout
testsuite/tests/ghci/scripts/ghci024.stdout
testsuite/tests/ghci/scripts/ghci057.stdout