From c29804fe05420516b55ed6323bce8422df168206 Mon Sep 17 00:00:00 2001 From: Tyagiquamar Date: Thu, 1 Oct 2026 16:41:45 +0530 Subject: [PATCH] Fix missing prototype for newlineScanByteCountForTesting Closes #1705. Adds explicit prototype declaration for newlineScanByteCountForTesting() to prevent compiler errors when building with -Wmissing-prototypes. Signed-off-by: Tyagiquamar --- src/lib_json/json_reader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp index 2f901f510..39af2c4c1 100644 --- a/src/lib_json/json_reader.cpp +++ b/src/lib_json/json_reader.cpp @@ -988,6 +988,7 @@ class OurReader { // CharReaderTest/parseCommentsAfterValueScansLinearly). thread_local so it // never races during concurrent parsing; the increment is negligible and only // runs while parsing comments. Not part of the supported public API. +JSON_API size_t& newlineScanByteCountForTesting(); JSON_API size_t& newlineScanByteCountForTesting() { static thread_local size_t count = 0; return count;