diff --git a/ext/drampower/src/MemCommand.h b/ext/drampower/src/MemCommand.h index 4159fe008..ea7164577 100644 --- a/ext/drampower/src/MemCommand.h +++ b/ext/drampower/src/MemCommand.h @@ -159,6 +159,7 @@ class MemCommand { } } assert(false); // Unknown name. + return NOP; // For clang compilation } private: diff --git a/ext/drampower/src/Utils.h b/ext/drampower/src/Utils.h index 3fba0961f..4aa8bb220 100644 --- a/ext/drampower/src/Utils.h +++ b/ext/drampower/src/Utils.h @@ -54,8 +54,7 @@ throw(std::runtime_error) T t; if (!(is >> f >> t)) { - throw std::runtime_error("Cannot convert '" + s + "' to " + - typeid(t).name() + " using fromString"); + throw std::runtime_error("fromString cannot convert " + s); } return t;