disable conditionality of warning disabling (#4908)

* disable conditionality of warning disabling

* add copyright notice with current year

* express version constraint in nimble file

* also needs copyright year
This commit is contained in:
tersec 2023-05-09 09:30:29 +00:00 committed by GitHub
parent 40253a76dd
commit 6458133f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,10 @@
# beacon_chain
# Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms.
mode = ScriptMode.Verbose mode = ScriptMode.Verbose
version = "1.4.2" version = "1.4.2"
@ -6,7 +13,7 @@ description = "The Nimbus beacon chain node is a highly efficient Ethereum 2.0
license = "MIT or Apache License 2.0" license = "MIT or Apache License 2.0"
requires( requires(
"nim >= 1.2.0", "nim >= 1.6.12",
"https://github.com/status-im/NimYAML", "https://github.com/status-im/NimYAML",
"bearssl", "bearssl",
"blscurve", "blscurve",

View File

@ -1,3 +1,10 @@
# beacon_chain
# Copyright (c) 2020-2023 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import strutils import strutils
--noNimblePath --noNimblePath
@ -184,8 +191,7 @@ switch("warning", "LockLevel:off")
# Too many right now to read compiler output. Warnings are legitimate, but # Too many right now to read compiler output. Warnings are legitimate, but
# should be fixed out-of-band of `unstable` branch. # should be fixed out-of-band of `unstable` branch.
if (NimMajor, NimMinor, NimPatch) >= (1, 6, 11): switch("warning", "BareExcept:off")
switch("warning", "BareExcept:off")
# Too many of these because of Defect compat in 1.2 # Too many of these because of Defect compat in 1.2
switch("hint", "XCannotRaiseY:off") switch("hint", "XCannotRaiseY:off")