mirror of
https://github.com/pantor/inja.git
synced 2026-05-13 16:15:23 +00:00
Suppress "missing initializer" warnings (#169)
* Suppress "missing initializer" warnings * Try to fix build error on some platforms * Add constructor for FunctionData * Make Codacy happy
This commit is contained in:
@@ -71,6 +71,7 @@ public:
|
||||
};
|
||||
|
||||
struct FunctionData {
|
||||
explicit FunctionData(const Operation &op, const CallbackFunction &cb = CallbackFunction{}) : operation(op), callback(cb) {}
|
||||
const Operation operation;
|
||||
const CallbackFunction callback;
|
||||
};
|
||||
@@ -129,7 +130,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
return { Operation::None };
|
||||
return FunctionData { Operation::None };
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -1589,6 +1589,7 @@ public:
|
||||
};
|
||||
|
||||
struct FunctionData {
|
||||
explicit FunctionData(const Operation &op, const CallbackFunction &cb = CallbackFunction{}) : operation(op), callback(cb) {}
|
||||
const Operation operation;
|
||||
const CallbackFunction callback;
|
||||
};
|
||||
@@ -1647,7 +1648,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
return { Operation::None };
|
||||
return FunctionData { Operation::None };
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user