From 58692adabce88ea4a84ac503e021dc458e53892d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sat, 19 Sep 2026 07:58:59 +0800 Subject: [PATCH] Common (Networking): fixes a non-pure function marked as pure Fixes CI --- src/common/networking.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/networking.h b/src/common/networking.h index 55949027d..719147214 100644 --- a/src/common/networking.h +++ b/src/common/networking.h @@ -38,7 +38,7 @@ typedef struct FFNetworkingState { // Restricting the range matters because the body may already share the same buffer. // Returns a pointer to the first character of the value; `valueLen` receives its // length excluding the terminating CRLF. Returns nullptr when the header is absent. -[[gnu::nonnull(1, 3, 4), gnu::pure, nodiscard]] const char* ffNetworkingFindHeader(const char* headers, uint32_t headerEnd, const char* name, uint32_t* valueLen); +[[gnu::nonnull(1, 3, 4), nodiscard]] const char* ffNetworkingFindHeader(const char* headers, uint32_t headerEnd, const char* name, uint32_t* valueLen); // Checks whether a `Transfer-Encoding: chunked` body has been received in full, so that // framing does not have to rely on the server closing the connection.