... | ... | @@ -142,17 +142,17 @@ In short, commit messages describe *changes*, whereas comment explain the code * |
|
|
We are aiming to make the GHC code warning-free, for all warnings turned on by
|
|
|
|
|
|
```wiki
|
|
|
-Wall -fno-warn-name-shadowing
|
|
|
-Wall
|
|
|
```
|
|
|
|
|
|
|
|
|
The build automatically sets these flags for the stage 2 compiler.
|
|
|
The build automatically sets these flags for all source files (see `mk/warnings.mk`).
|
|
|
|
|
|
|
|
|
The [validate script](testing-patches), which is used to test the build before commiting, additionally sets the `-Werror` flag, so that the code **must** be warning-free to pass validation. The `-Werror` flag is not set during normal builds, so warnings will be printed but won't halt the build.
|
|
|
|
|
|
|
|
|
Currently we are some way from our goal, so many modules have a
|
|
|
Currently we are some way from our goal, so some modules have a
|
|
|
|
|
|
```wiki
|
|
|
{-# OPTIONS -w #-}
|
... | ... | |