Skip to content

Commit b74b914

Browse files
authored
[backport] use old style hints in .cfg files (#18917)
refs #18085
1 parent f061971 commit b74b914

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

compiler/nim.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Special configuration file for the Nim project
22

3-
hint:XDeclaredButNotUsed:off
3+
hint[XDeclaredButNotUsed]:off
44

55
define:booting
66
define:nimcore
@@ -23,7 +23,7 @@ define:useStdoutAsStdmsg
2323
#gc:markAndSweep
2424

2525
@if nimHasWarningObservableStores:
26-
warning:ObservableStores: off
26+
warning[ObservableStores]: off
2727
@end
2828

2929
@if nimHasEffectsOf:

compiler/nimfix/nimfix.nim.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Special configuration file for the Nim project
22
# gc:markAndSweep
33

4-
hint:XDeclaredButNotUsed:off
4+
hint[XDeclaredButNotUsed]:off
55
path:"$projectPath/.."
66

77
path:"$lib/packages/docutils"

config/nim.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ cc = gcc
1313
# additional options always passed to the compiler:
1414
--parallel_build: "0" # 0 to auto-detect number of processors
1515

16-
hint:LineTooLong:off
17-
#hint:XDeclaredButNotUsed:off
16+
hint[LineTooLong]=off
17+
#hint[XDeclaredButNotUsed]=off
1818

1919
# Examples of how to setup a cross-compiler:
2020

drnim/nim.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Special configuration file for the Nim project
22

3-
hint:XDeclaredButNotUsed:off
3+
hint[XDeclaredButNotUsed]:off
44

55
define:booting
66
define:nimcore

nimsuggest/nimsuggest.nim.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
gc:markAndSweep
44

5-
hint:XDeclaredButNotUsed:off
5+
hint[XDeclaredButNotUsed]:off
66

77
path:"$lib/packages/docutils"
88

0 commit comments

Comments
 (0)