avoid build warnings when building w/o concurrent-output

This commit is contained in:
Joey Hess 2016-09-06 14:35:24 -04:00
parent 867fd50637
commit 03b031554f
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
2 changed files with 9 additions and 3 deletions

View file

@ -45,8 +45,8 @@ metered combinemeterupdate key a = case keySize key of
maybe noop (\m -> m n) combinemeterupdate
liftIO $ clearMeter stdout meter
return r
go size o@(ConcurrentOutput {})
#if WITH_CONCURRENTOUTPUT
go size o@(ConcurrentOutput {})
| concurrentOutputEnabled o = withProgressRegion $ \r -> do
(progress, meter) <- mkmeter size
a $ \n -> liftIO $ do
@ -54,6 +54,8 @@ metered combinemeterupdate key a = case keySize key of
s <- renderMeter meter
Regions.setConsoleRegion r ("\n" ++ s)
maybe noop (\m -> m n) combinemeterupdate
#else
go _size _o
#endif
| otherwise = nometer