From 17628b4a30ef3136fe45d723f9ea87805079604f Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Wed, 26 Aug 2020 17:55:43 +0800 Subject: [PATCH] Fix build warnings Fix Docker build error. --- .github/workflows/docker.yml | 3 +-- include/inja.hpp | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 1e1658b..d1a7e9a 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -14,10 +14,9 @@ jobs: - name: Set up docker buildx id: buildx - uses: crazy-max/ghaction-docker-buildx@v2 + uses: crazy-max/ghaction-docker-buildx@v3 with: buildx-version: latest - skip-cache: false qemu-version: latest - name: Docker login diff --git a/include/inja.hpp b/include/inja.hpp index cb4e2c0..e8a3edd 100644 --- a/include/inja.hpp +++ b/include/inja.hpp @@ -1592,6 +1592,7 @@ public: }; struct FunctionData { + explicit FunctionData(const Operation &op, const CallbackFunction &cb = CallbackFunction{}) : operation(op), callback(cb) {} const Operation operation; const CallbackFunction callback; }; @@ -1650,7 +1651,7 @@ public: } } - return { Operation::None }; + return FunctionData { Operation::None }; } };