From 7ee91c7d919e9b509ef059f590627d66e0d38f8c Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 10 Oct 2026 02:43:48 +0200 Subject: [PATCH] Suppress Flawfinder's read() finding on the deleted overload Signed-off-by: Niels Lohmann --- include/nlohmann/json_view.hpp | 2 +- single_include/nlohmann/json_view.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nlohmann/json_view.hpp b/include/nlohmann/json_view.hpp index 90ac019ea..5a7eb715b 100644 --- a/include/nlohmann/json_view.hpp +++ b/include/nlohmann/json_view.hpp @@ -349,8 +349,8 @@ class basic_json_document } template - // flawfinder: ignore (a member function, not POSIX read()) typename std::enable_if::value, void>::type + // flawfinder: ignore (a member function, not POSIX read()) read(InputType&& input, IntegerType value, Flags&&... flags) = delete; //////////// diff --git a/single_include/nlohmann/json_view.hpp b/single_include/nlohmann/json_view.hpp index 028e2e8c0..94d4e0528 100644 --- a/single_include/nlohmann/json_view.hpp +++ b/single_include/nlohmann/json_view.hpp @@ -2444,8 +2444,8 @@ class basic_json_document } template - // flawfinder: ignore (a member function, not POSIX read()) typename std::enable_if::value, void>::type + // flawfinder: ignore (a member function, not POSIX read()) read(InputType&& input, IntegerType value, Flags&&... flags) = delete; ////////////