aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/dedicated_interconnect.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-09-30 11:05:32 +0100
committerGitHub <noreply@github.com>2021-09-30 11:05:32 +0100
commit7550b60069facbca9e4292ad2753f8e317a5d681 (patch)
tree0849903696aabb1ff58b9365b7c84be0936ff8dc /fpga_interchange/dedicated_interconnect.cc
parentbd137a8b50c220b2547030a4618aeefead2a1c38 (diff)
parent19afb073705ce17dd70adff4215a6f6bf24d2562 (diff)
downloadnextpnr-7550b60069facbca9e4292ad2753f8e317a5d681.tar.gz
nextpnr-7550b60069facbca9e4292ad2753f8e317a5d681.tar.bz2
nextpnr-7550b60069facbca9e4292ad2753f8e317a5d681.zip
Merge pull request #828 from YosysHQ/gatecat/interchange-warn-fix
interchange: Enable Werror on CI and fix some compile warnings
Diffstat (limited to 'fpga_interchange/dedicated_interconnect.cc')
-rw-r--r--fpga_interchange/dedicated_interconnect.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/fpga_interchange/dedicated_interconnect.cc b/fpga_interchange/dedicated_interconnect.cc
index 56b6b706..e4ce2b95 100644
--- a/fpga_interchange/dedicated_interconnect.cc
+++ b/fpga_interchange/dedicated_interconnect.cc
@@ -23,7 +23,7 @@
#include "util.h"
NEXTPNR_NAMESPACE_BEGIN
-
+namespace {
// All legal routes involved at most 2 sites, the source site and the sink
// site. The source site and sink sites may be the same, but that is not
// dedicated routing, that is intra site routing.
@@ -51,6 +51,7 @@ struct WireNode
WireNodeState state;
int depth;
};
+} // namespace
// Maximum depth that a dedicate interconnect is considered.
//