From 6458133f5ce4bc9fb243f73e2e4759dc4af21cbd Mon Sep 17 00:00:00 2001 From: tersec Date: Tue, 9 May 2023 09:30:29 +0000 Subject: [PATCH] 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 --- beacon_chain.nimble | 9 ++++++++- config.nims | 10 ++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/beacon_chain.nimble b/beacon_chain.nimble index dae4ed16c..5b27dcd7c 100644 --- a/beacon_chain.nimble +++ b/beacon_chain.nimble @@ -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", diff --git a/config.nims b/config.nims index 83809ac63..98f4cc959 100644 --- a/config.nims +++ b/config.nims @@ -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")