diff --git a/plugins/preprocess/preprocess_node.cpp b/plugins/preprocess/preprocess_node.cpp index 19cea3f..047f0f3 100644 --- a/plugins/preprocess/preprocess_node.cpp +++ b/plugins/preprocess/preprocess_node.cpp @@ -431,7 +431,11 @@ private: auto Check = [&](const rga_buffer_t& s, const rga_buffer_t& d) -> bool { const im_rect sr{0, 0, s.width, s.height}; const im_rect dr{0, 0, d.width, d.height}; - const IM_STATUS chk = imcheck(s, d, sr, dr); + // Do NOT call the imcheck(...) variadic macro with 0 extra args: + // under -Wpedantic/-std=c++11 it expands to a zero-sized array. + rga_buffer_t pat{}; + const im_rect pr{0, 0, 0, 0}; + const IM_STATUS chk = imcheck_t(s, d, pat, sr, dr, pr, 0); if (chk != IM_STATUS_NOERROR && chk != IM_STATUS_SUCCESS) { std::cerr << "[preprocess] RGA imcheck failed: " << imStrError(chk) << "\n"; return false;