aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/archdefs.h1
-rw-r--r--ecp5/lpf.cc2
2 files changed, 1 insertions, 2 deletions
diff --git a/ecp5/archdefs.h b/ecp5/archdefs.h
index 732ea99a..cf6902d3 100644
--- a/ecp5/archdefs.h
+++ b/ecp5/archdefs.h
@@ -56,7 +56,6 @@ struct Location
Location() : x(-1), y(-1){};
Location(int16_t x, int16_t y) : x(x), y(y){};
Location(const LocationPOD &pod) : x(pod.x), y(pod.y){};
- Location(const Location &loc) : x(loc.x), y(loc.y){};
bool operator==(const Location &other) const { return x == other.x && y == other.y; }
bool operator!=(const Location &other) const { return x != other.x || y != other.y; }
diff --git a/ecp5/lpf.cc b/ecp5/lpf.cc
index c12b65c4..22859783 100644
--- a/ecp5/lpf.cc
+++ b/ecp5/lpf.cc
@@ -77,7 +77,7 @@ bool Arch::apply_lpf(std::string filename, std::istream &in)
std::string tmp;
while (ss >> tmp)
words.push_back(tmp);
- if (words.size() >= 0) {
+ if (words.size() > 0) {
std::string verb = words.at(0);
if (verb == "BLOCK") {
if (words.size() != 2 || (words.at(1) != "ASYNCPATHS" && words.at(1) != "RESETPATHS"))