From 499de3837a87b401ebfa3683ee25502dccdf4a4d Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Tue, 19 Aug 2025 12:23:27 -0400 Subject: [PATCH] Add .clangd --- .clangd | 2 ++ src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .clangd diff --git a/.clangd b/.clangd new file mode 100644 index 0000000..02334e2 --- /dev/null +++ b/.clangd @@ -0,0 +1,2 @@ +CompileFlags: + Add: [-Wno-vla-cxx-extension, -UNDEBUG] diff --git a/src/main.cpp b/src/main.cpp index 1be207c..a4269a0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -161,7 +161,7 @@ struct Connection { // response bool closeConnection{false}; - bool readBytes(size_t max_request_size, size_t buffer_size) { + bool readBytes(size_t /*max_request_size*/, size_t buffer_size) { // Use Variable Length Array for optimal stack allocation char buf[buffer_size];