| 133 | | == Warnings == |
| 134 | | |
| 135 | | We are aiming to make the GHC code warning-free for all warnings turned on by |
| 136 | | {{{ |
| 137 | | -Wall -fno-warn-name-shadowing |
| 138 | | }}} |
| 139 | | and as such the build sets these flags for the stage 2 compiler, and the validate script, which is used to test the build before commiting, additionally sets the `-Werror` flag. As the `-Werror` flag is not set during normal builds, during development warnings will be printed but won't halt the build. |
| 140 | | |
| 141 | | Currently we are some way from our goal, so many modules have a |
| 142 | | {{{ |
| 143 | | {-# OPTIONS_GHC -w #-} |
| 144 | | }}} |
| 145 | | pragma; you are encouraged to remove this pragma and fix any warnings when working on a module. |
| 146 | | |