Skip to content
  • barrucadu's avatar
    Print which warning-flag controls an emitted warning · 4f5b7ad8
    barrucadu authored and Herbert Valerio Riedel's avatar Herbert Valerio Riedel committed
    Both gcc and clang tell which warning flag a reported warning can be
    controlled with, this patch makes ghc do the same. More generally, this
    allows for annotated compiler output, where an optional annotation is
    displayed in brackets after the severity.
    
    This also adds a new flag `-f(no-)show-warning-groups` to control
    whether to show which warning-group (such as `-Wall` or `-Wcompat`)
    a warning belongs to. This flag is on by default.
    
    This implements #10752
    
    (cherry picked from commit bb5afd3c)
    4f5b7ad8