diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2020-05-21 13:51:15 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2020-05-21 13:51:15 -0500 |
| commit | 6c01f5504771d2a3b013097007f16a5414baa5b7 (patch) | |
| tree | ad854669b805f8f11e22f9f1f9e9a4f3ea2e3cd6 | |
| parent | e32fd4d1d2542a6ffaeb8221a3da7ef136669651 (diff) | |
| download | nimterop-6c01f5504771d2a3b013097007f16a5414baa5b7.tar.gz nimterop-6c01f5504771d2a3b013097007f16a5414baa5b7.zip | |
No pointless hints
| -rw-r--r-- | nimterop/ast.nim | 2 | ||||
| -rw-r--r-- | nimterop/ast2.nim | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/nimterop/ast.nim b/nimterop/ast.nim index 96116c7..78501fd 100644 --- a/nimterop/ast.nim +++ b/nimterop/ast.nim @@ -238,6 +238,8 @@ proc printNim*(gState: State) = if gState.procStr.nBl: gecho &"{gState.procStr}\n" + gecho "{.pop.}" + if gState.debug: if gState.debugStr.nBl: gecho gState.debugStr diff --git a/nimterop/ast2.nim b/nimterop/ast2.nim index e2cdf8f..f4e15db 100644 --- a/nimterop/ast2.nim +++ b/nimterop/ast2.nim @@ -1815,7 +1815,10 @@ proc setupPragmas(gState: State, root: TSNode, fullpath: string) = proc initNim*(gState: State) = # Initialize for parseNim() one time - gecho "import nimterop/types\n" + gecho """import nimterop/types + +{.push hint[ConvFromXtoItselfNotNeeded]: off.} +""" # Track identifiers already rendered and corresponding PNodes gState.identifiers = newTable[string, string]() @@ -1867,3 +1870,5 @@ proc printNim*(gState: State) = tree.add gState.procSection gecho tree.renderTree() + + gecho "{.pop.}"
\ No newline at end of file |
