Add clangd-diag-all-source and run it

This commit is contained in:
2026-03-12 19:12:37 -04:00
parent c6f7a89ccd
commit 9f90c14aa4
18 changed files with 125 additions and 4 deletions

View File

@@ -103,7 +103,7 @@ void LuaSnap::deserialize(StreamBuffer *sb) {
// Set up a stack frame manually. Eris deserialization
// should have left permstable and regcopy on the stack.
assert(lua_gettop(state_) == 2);
LuaSpecial permstable(1);
[[maybe_unused]] LuaSpecial permstable(1);
LuaSpecial regcopy(2);
lua_pushnil(state_);
lua_pushnil(state_);

View File

@@ -503,7 +503,7 @@ constexpr auto dec = FormattedNumber<int>(0, false, 0, ' ', 6);
// Returns zero if the string is empty, too long, or contains
// invalid characters.
//
static constexpr uint64_t encode_token(std::string_view str) {
[[maybe_unused]] static constexpr uint64_t encode_token(std::string_view str) {
if (str.size() > 12) return 0;
if (str.empty()) return 0;

View File

@@ -1,10 +1,12 @@
#include <time.h>
#include <unistd.h>
#include <string>
#include <cstring>
#include <cassert>
#include <cstdio>
#include <pthread.h>
#include "drvutil.hpp"
namespace drvutil {