Add clangd-diag-all-source and run it
This commit is contained in:
@@ -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_);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user