diff options
author | Simon Jakobi <simon.jakobi@gmail.com> | 2018-11-22 11:52:53 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-11-22 13:14:02 -0500 |
commit | 699e507237ccda65fe9f37651d2358129390e2de (patch) | |
tree | 0515530b121307e5421a72d1055474a287bf954e /utils | |
parent | f2d9fb0c288788abeb796a13d600295a526290cd (diff) | |
download | haskell-699e507237ccda65fe9f37651d2358129390e2de.tar.gz |
Remove warnings-silencing flags for code generated by Alex
Current versions of Alex don't seem to produce as many warnings any
more.
In order to silence a warning and to avoid overlong lines, I've taken
the liberty of refactoring 'tok_num'.
Test Plan: ./validate
Reviewers: bgamari, simonmar
Reviewed By: simonmar
Subscribers: erikd, rwbarton, carter
Differential Revision: https://phabricator.haskell.org/D5319
Diffstat (limited to 'utils')
-rw-r--r-- | utils/genprimopcode/Lexer.x | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/utils/genprimopcode/Lexer.x b/utils/genprimopcode/Lexer.x index 06624b2ec0..0de81f9614 100644 --- a/utils/genprimopcode/Lexer.x +++ b/utils/genprimopcode/Lexer.x @@ -1,12 +1,4 @@ - { --- See Note [Warnings in code generated by Alex] in compiler/parser/Lexer.x -{-# OPTIONS_GHC -fno-warn-unused-matches #-} -{-# OPTIONS_GHC -fno-warn-unused-binds #-} -{-# OPTIONS_GHC -fno-warn-tabs #-} -{-# OPTIONS_GHC -fno-warn-missing-signatures #-} -{-# OPTIONS_GHC -fno-warn-unused-imports #-} - module Lexer (lex_tok) where import ParserM (ParserM (..), mkT, mkTv, Token(..), start_code, |