Trying to get build working on Fedora.
This commit is contained in:
parent
00e9bc0f22
commit
a8387f010f
|
@ -51,7 +51,7 @@ using CommanderFunc = std::function<bool (int, char **)>;
|
|||
class Subcommand {
|
||||
public:
|
||||
/// Status describes the results of running a Subcommand.
|
||||
enum class Status : uint8_t {
|
||||
enum class Status : std::uint8_t {
|
||||
/// The subcommand executed correctly.
|
||||
OK = 0,
|
||||
/// Not enough arguments were supplied to the subcommand.
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
/// PERFORMANCE OF THIS SOFTWARE.
|
||||
///
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
|
||||
|
@ -43,16 +44,13 @@ Dictionary::Lookup(const char *key, uint8_t klen, TLV::Record &res)
|
|||
if ((klen == res.Len) &&
|
||||
(memcmp(res.Val, key, klen) == 0)) {
|
||||
TLV::ReadFromMemory(res, cursor);
|
||||
if (res.Tag != this->vTag) {
|
||||
abort();
|
||||
}
|
||||
return true;
|
||||
assert(res.Tag != this->vTag);
|
||||
return res.Tag != this->vTag;
|
||||
}
|
||||
cursor = TLV::FindTag(this->arena, cursor, res);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -26,9 +26,8 @@
|
|||
namespace scsl {
|
||||
|
||||
|
||||
AssertionFailed::AssertionFailed(std::string message) : msg(message)
|
||||
{
|
||||
}
|
||||
AssertionFailed::AssertionFailed(std::string message) : msg(message) {}
|
||||
|
||||
|
||||
const char *
|
||||
AssertionFailed::what() const throw()
|
||||
|
@ -37,6 +36,4 @@ AssertionFailed::what() const throw()
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue