aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-02-25 11:21:39 +0000
committergatecat <gatecat@ds0.me>2021-02-25 15:15:25 +0000
commit23413a4d12ad070c8a356c5a3186f81def705c54 (patch)
treee18884eb5006aa991402b3576e188d7977ef88e8 /ecp5
parent17183fff05e52471ff4c619fc24e104234489803 (diff)
downloadnextpnr-23413a4d12ad070c8a356c5a3186f81def705c54.tar.gz
nextpnr-23413a4d12ad070c8a356c5a3186f81def705c54.tar.bz2
nextpnr-23413a4d12ad070c8a356c5a3186f81def705c54.zip
Fix compiler warnings introduced by -Wextra
Signed-off-by: gatecat <gatecat@ds0.me>
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"))