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
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"
requires(
"nim >= 1.2.0",
"nim >= 1.6.12",
"https://github.com/status-im/NimYAML",
"bearssl",
"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
--noNimblePath
@ -184,8 +191,7 @@ switch("warning", "LockLevel:off")
# Too many right now to read compiler output. Warnings are legitimate, but
# 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
switch("hint", "XCannotRaiseY:off")