From 1afc53a338292e9068442e60fce202d375cd8e00 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Sun, 26 Jan 2025 12:33:11 -0800 Subject: [PATCH] fix warning --- common/json-schema-to-grammar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/json-schema-to-grammar.cpp b/common/json-schema-to-grammar.cpp index 021d1aba0..9d41761c2 100644 --- a/common/json-schema-to-grammar.cpp +++ b/common/json-schema-to-grammar.cpp @@ -995,6 +995,8 @@ std::string json_schema_to_grammar(const json & schema, bool force_gbnf) { if (!force_gbnf) { return "%llguidance {}\nstart: %json " + schema.dump(); } +#else + (void)force_gbnf; #endif // LLAMA_USE_LLGUIDANCE return build_grammar([&](const llama_grammar_builder & callbacks) { auto copy = schema;