Trying to get build working on Fedora.

This commit is contained in:
Kyle Isom 2023-10-18 16:19:09 -07:00
parent 00e9bc0f22
commit a8387f010f
3 changed files with 6 additions and 11 deletions

View File

@ -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.

View File

@ -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;
}

View File

@ -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()
}
}