From 699e507237ccda65fe9f37651d2358129390e2de Mon Sep 17 00:00:00 2001 From: Simon Jakobi Date: Thu, 22 Nov 2018 11:52:53 -0500 Subject: 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 --- compiler/cmm/CmmLex.x | 7 ------- 1 file changed, 7 deletions(-) (limited to 'compiler/cmm') diff --git a/compiler/cmm/CmmLex.x b/compiler/cmm/CmmLex.x index 691ca5eb28..468ea00a93 100644 --- a/compiler/cmm/CmmLex.x +++ b/compiler/cmm/CmmLex.x @@ -11,13 +11,6 @@ ----------------------------------------------------------------------------- { --- 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-unused-imports #-} -{-# OPTIONS_GHC -fno-warn-tabs #-} -{-# OPTIONS_GHC -fno-warn-missing-signatures #-} - module CmmLex ( CmmToken(..), cmmlex, ) where -- cgit v1.2.1