From 009acfa477bbb52560b05006d9b950e014e91d9b Mon Sep 17 00:00:00 2001 From: Omar Emara Date: Tue, 11 Oct 2022 16:22:14 +0200 Subject: [PATCH] Cleanup: Add missing include for parallel reduction The parallel reduction file didn't include its own header, which can yield "no previous declaration" warnings. This patch includes the header to fix the warning. --- source/blender/compositor/realtime_compositor/CMakeLists.txt | 1 + .../algorithms/intern/algorithm_parallel_reduction.cc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/source/blender/compositor/realtime_compositor/CMakeLists.txt b/source/blender/compositor/realtime_compositor/CMakeLists.txt index 5473a253241..90cbe0988ad 100644 --- a/source/blender/compositor/realtime_compositor/CMakeLists.txt +++ b/source/blender/compositor/realtime_compositor/CMakeLists.txt @@ -2,6 +2,7 @@ set(INC . + ./algorithms ../../blenkernel ../../blenlib ../../gpu diff --git a/source/blender/compositor/realtime_compositor/algorithms/intern/algorithm_parallel_reduction.cc b/source/blender/compositor/realtime_compositor/algorithms/intern/algorithm_parallel_reduction.cc index 7b571f381c6..3266ccd14eb 100644 --- a/source/blender/compositor/realtime_compositor/algorithms/intern/algorithm_parallel_reduction.cc +++ b/source/blender/compositor/realtime_compositor/algorithms/intern/algorithm_parallel_reduction.cc @@ -12,6 +12,8 @@ #include "COM_context.hh" #include "COM_utilities.hh" +#include "COM_algorithm_parallel_reduction.hh" + namespace blender::realtime_compositor { /* Reduces the given texture into a single value and returns it. The return value should be freed