Skip to content

The flag `Werror=unrecognised-warning-flags` does not turn unrecognised warnings on fatal errors

By running on GHC 9.2.3

ghc -Werror -Wunrecognised-warning-flags -Wfoo Main.hs

I got a compilation error as expected due to the unrecognised warning Wfoo. However, by running

ghc -Werror=unrecognised-warning-flags -Werror=foo Main.hs

I only got a warning instead of a compilation error.

Edited by Andrés Sicard-Ramírez
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information