diff --git a/src/models/eventmodel.cpp b/src/models/eventmodel.cpp index f1448fd14..dfd51052f 100644 --- a/src/models/eventmodel.cpp +++ b/src/models/eventmodel.cpp @@ -12,7 +12,9 @@ #include -static bool operator<(const EventModel::Process& process, qint32 pid) +// silence clang warnings +// NOLINTNEXTLINE(misc-use-anonymous-namespace) +[[maybe_unused]] static bool operator<(const EventModel::Process& process, qint32 pid) { return process.pid < pid; } @@ -21,12 +23,12 @@ namespace { enum class Tag : quint8 { Invalid = 0, - Root = 1, - Overview = 2, - Cpus = 3, - Processes = 4, - Threads = 5, - Tracepoints = 6, + Root, + Overview, + Cpus, + Processes, + Threads, + Tracepoints, }; enum OverViewRow : quint8