Przeglądaj źródła

Fix build warnings

Fix Docker build error.
Tindy X 5 lat temu
rodzic
commit
17628b4a30
2 zmienionych plików z 3 dodań i 3 usunięć
  1. 1 2
      .github/workflows/docker.yml
  2. 2 1
      include/inja.hpp

+ 1 - 2
.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

+ 2 - 1
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 };
   }
 };