From bad1100a030546674ceefe1b0f098ccaeadf578a Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Fri, 9 Jan 2026 14:02:30 +0100 Subject: [PATCH 1/2] Bump minimum cmake version (#323) Avoids the annoying warning messages such as: ``` CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier. ``` and allows to get rid of the policy definition --- CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a7fc86..4888d01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,4 @@ -cmake_minimum_required(VERSION 3.5) - -# See https://cmake.org/cmake/help/latest/policy/CMP0077.html -# This allows for setting option variables externally, when this project -# is included in another CMake project. -cmake_policy(SET CMP0077 NEW) +cmake_minimum_required(VERSION 3.13) project(inja DESCRIPTION "Template engine for modern C++" From 751eab3906a688df5b4e7643bbb9bb0c2b098ea6 Mon Sep 17 00:00:00 2001 From: Armaan Chahal Date: Fri, 9 Jan 2026 07:03:19 -0600 Subject: [PATCH 2/2] resolve MSVC warning (#321) (#322) * move warning producing statement after default switch case to within the default case * remove redundant nullptr assignment in default switch case * Update single include --------- Co-authored-by: Berscheid <1885260+pantor@users.noreply.github.com> --- include/inja/parser.hpp | 1 - single_include/inja/inja.hpp | 1 - 2 files changed, 2 deletions(-) diff --git a/include/inja/parser.hpp b/include/inja/parser.hpp index 816f589..8882dfe 100644 --- a/include/inja/parser.hpp +++ b/include/inja/parser.hpp @@ -659,7 +659,6 @@ class Parser { } break; } } - current_block = nullptr; } public: diff --git a/single_include/inja/inja.hpp b/single_include/inja/inja.hpp index db597fa..2fdbb70 100644 --- a/single_include/inja/inja.hpp +++ b/single_include/inja/inja.hpp @@ -2109,7 +2109,6 @@ class Parser { } break; } } - current_block = nullptr; } public: