mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-05 11:15:27 +03:00
imp: update to modern warning flags
This commit is contained in:
parent
b3aff7a394
commit
d9ecd1eb9d
10
Makefile
10
Makefile
@ -203,11 +203,11 @@ VERSION=$(shell cat hledger/.version)
|
||||
|
||||
WARNINGS:=\
|
||||
-Wall \
|
||||
-fno-warn-unused-do-bind \
|
||||
-fno-warn-name-shadowing \
|
||||
-fno-warn-missing-signatures \
|
||||
-fno-warn-orphans \
|
||||
-fno-warn-type-defaults \
|
||||
-Wno-unused-do-bind \
|
||||
-Wno-name-shadowing \
|
||||
-Wno-missing-signatures \
|
||||
-Wno-orphans \
|
||||
-Wno-type-defaults \
|
||||
|
||||
# if you have need to try building in less memory
|
||||
# GHCLOWMEMFLAGS= #+RTS -M200m -RTS
|
||||
|
@ -91,7 +91,7 @@ library
|
||||
Paths_hledger_lib
|
||||
hs-source-dirs:
|
||||
./
|
||||
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans -fno-warn-incomplete-uni-patterns
|
||||
ghc-options: -Wall -Wno-unused-do-bind -Wno-name-shadowing -Wno-missing-signatures -Wno-type-defaults -Wno-orphans -Wno-incomplete-uni-patterns
|
||||
build-depends:
|
||||
Decimal >=0.5.1
|
||||
, Glob >=0.9
|
||||
@ -141,7 +141,7 @@ test-suite doctest
|
||||
hs-source-dirs:
|
||||
./
|
||||
test
|
||||
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans -fno-warn-incomplete-uni-patterns
|
||||
ghc-options: -Wall -Wno-unused-do-bind -Wno-name-shadowing -Wno-missing-signatures -Wno-type-defaults -Wno-orphans -Wno-incomplete-uni-patterns
|
||||
build-depends:
|
||||
Decimal >=0.5.1
|
||||
, Glob >=0.7
|
||||
@ -194,7 +194,7 @@ test-suite unittest
|
||||
hs-source-dirs:
|
||||
./
|
||||
test
|
||||
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans -fno-warn-incomplete-uni-patterns
|
||||
ghc-options: -Wall -Wno-unused-do-bind -Wno-name-shadowing -Wno-missing-signatures -Wno-type-defaults -Wno-orphans -Wno-incomplete-uni-patterns
|
||||
build-depends:
|
||||
Decimal >=0.5.1
|
||||
, Glob >=0.9
|
||||
|
@ -79,13 +79,13 @@ dependencies:
|
||||
|
||||
ghc-options:
|
||||
- -Wall
|
||||
- -fno-warn-unused-do-bind
|
||||
- -fno-warn-name-shadowing
|
||||
- -fno-warn-missing-signatures
|
||||
- -fno-warn-type-defaults
|
||||
- -fno-warn-orphans
|
||||
- -Wno-unused-do-bind
|
||||
- -Wno-name-shadowing
|
||||
- -Wno-missing-signatures
|
||||
- -Wno-type-defaults
|
||||
- -Wno-orphans
|
||||
# XXX seems new in 9.2, fix these
|
||||
- -fno-warn-incomplete-uni-patterns
|
||||
- -Wno-incomplete-uni-patterns
|
||||
|
||||
source-dirs:
|
||||
#- other/ledger-parse
|
||||
|
@ -62,7 +62,7 @@ executable hledger-ui
|
||||
Paths_hledger_ui
|
||||
hs-source-dirs:
|
||||
./
|
||||
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans
|
||||
ghc-options: -Wall -Wno-unused-do-bind -Wno-name-shadowing -Wno-missing-signatures -Wno-type-defaults -Wno-orphans
|
||||
cpp-options: -DVERSION="1.25.99"
|
||||
build-depends:
|
||||
ansi-terminal >=0.9
|
||||
|
@ -94,11 +94,11 @@ executables:
|
||||
main: hledger-ui.hs
|
||||
ghc-options:
|
||||
-Wall
|
||||
-fno-warn-unused-do-bind
|
||||
-fno-warn-name-shadowing
|
||||
-fno-warn-missing-signatures
|
||||
-fno-warn-type-defaults
|
||||
-fno-warn-orphans
|
||||
-Wno-unused-do-bind
|
||||
-Wno-name-shadowing
|
||||
-Wno-missing-signatures
|
||||
-Wno-type-defaults
|
||||
-Wno-orphans
|
||||
when:
|
||||
- condition: flag(threaded)
|
||||
ghc-options: -threaded
|
||||
|
@ -150,7 +150,7 @@ library
|
||||
Paths_hledger_web
|
||||
hs-source-dirs:
|
||||
./
|
||||
ghc-options: -Wall -fwarn-tabs -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints
|
||||
ghc-options: -Wall -Wtabs -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints
|
||||
cpp-options: -DVERSION="1.25.99"
|
||||
build-depends:
|
||||
Decimal >=0.5.1
|
||||
@ -211,7 +211,7 @@ executable hledger-web
|
||||
Paths_hledger_web
|
||||
hs-source-dirs:
|
||||
app
|
||||
ghc-options: -Wall -fwarn-tabs -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints
|
||||
ghc-options: -Wall -Wtabs -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints
|
||||
cpp-options: -DVERSION="1.25.99"
|
||||
build-depends:
|
||||
base
|
||||
@ -231,7 +231,7 @@ test-suite test
|
||||
main-is: test.hs
|
||||
hs-source-dirs:
|
||||
test
|
||||
ghc-options: -Wall -fwarn-tabs -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints
|
||||
ghc-options: -Wall -Wtabs -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints
|
||||
cpp-options: -DVERSION="1.25.99"
|
||||
build-depends:
|
||||
base
|
||||
|
@ -62,7 +62,7 @@ flags:
|
||||
|
||||
ghc-options:
|
||||
- -Wall
|
||||
- -fwarn-tabs
|
||||
- -Wtabs
|
||||
- -Wcompat
|
||||
- -Wincomplete-uni-patterns
|
||||
- -Wincomplete-record-updates
|
||||
|
@ -135,7 +135,7 @@ library
|
||||
Hledger.Cli.CompoundBalanceCommand
|
||||
other-modules:
|
||||
Paths_hledger
|
||||
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans -optP-Wno-nonportable-include-path
|
||||
ghc-options: -Wall -Wno-unused-do-bind -Wno-name-shadowing -Wno-missing-signatures -Wno-type-defaults -Wno-orphans -optP-Wno-nonportable-include-path
|
||||
cpp-options: -DVERSION="1.25.99"
|
||||
build-depends:
|
||||
Decimal >=0.5.1
|
||||
@ -186,7 +186,7 @@ executable hledger
|
||||
Paths_hledger
|
||||
hs-source-dirs:
|
||||
app
|
||||
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans -optP-Wno-nonportable-include-path
|
||||
ghc-options: -Wall -Wno-unused-do-bind -Wno-name-shadowing -Wno-missing-signatures -Wno-type-defaults -Wno-orphans -optP-Wno-nonportable-include-path
|
||||
cpp-options: -DVERSION="1.25.99"
|
||||
build-depends:
|
||||
Decimal >=0.5.1
|
||||
@ -236,7 +236,7 @@ test-suite unittest
|
||||
main-is: unittest.hs
|
||||
hs-source-dirs:
|
||||
test
|
||||
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans -optP-Wno-nonportable-include-path
|
||||
ghc-options: -Wall -Wno-unused-do-bind -Wno-name-shadowing -Wno-missing-signatures -Wno-type-defaults -Wno-orphans -optP-Wno-nonportable-include-path
|
||||
cpp-options: -DVERSION="1.25.99"
|
||||
build-depends:
|
||||
Decimal >=0.5.1
|
||||
@ -284,7 +284,7 @@ benchmark bench
|
||||
main-is: bench.hs
|
||||
hs-source-dirs:
|
||||
bench
|
||||
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans -optP-Wno-nonportable-include-path
|
||||
ghc-options: -Wall -Wno-unused-do-bind -Wno-name-shadowing -Wno-missing-signatures -Wno-type-defaults -Wno-orphans -optP-Wno-nonportable-include-path
|
||||
build-depends:
|
||||
Decimal >=0.5.1
|
||||
, aeson >=1
|
||||
|
@ -87,11 +87,11 @@ flags:
|
||||
|
||||
ghc-options:
|
||||
- -Wall
|
||||
- -fno-warn-unused-do-bind
|
||||
- -fno-warn-name-shadowing
|
||||
- -fno-warn-missing-signatures
|
||||
- -fno-warn-type-defaults
|
||||
- -fno-warn-orphans
|
||||
- -Wno-unused-do-bind
|
||||
- -Wno-name-shadowing
|
||||
- -Wno-missing-signatures
|
||||
- -Wno-type-defaults
|
||||
- -Wno-orphans
|
||||
# avoid "non-portable path" warning on mac, https://github.com/commercialhaskell/stack/issues/3918
|
||||
- -optP-Wno-nonportable-include-path
|
||||
|
||||
|
@ -26,7 +26,7 @@ extra-deps:
|
||||
|
||||
# silence new warnings temporarily
|
||||
ghc-options:
|
||||
"$locals": -Wno-deprecations -Wno-incomplete-uni-patterns -Wno-incomplete-record-updates
|
||||
"$locals": -Wno-incomplete-uni-patterns -Wno-incomplete-record-updates
|
||||
|
||||
nix:
|
||||
pure: false
|
||||
|
Loading…
Reference in New Issue
Block a user