From 7cef01b090c4c2d2703274edb91886ae37d3ce82 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Fri, 9 Apr 2021 12:04:00 +0200 Subject: Compositor: Enable suggest-override warning. Compostior relies heavilly on overridden methods. The override keyword has been added in this module and is desired. The benefit of the override keyword is that it reports an error when not applied to a (base) virtual method and report what will not match when refactoring the code to be closer to blender style guide. Reviewed By: sybren Differential Revision: https://developer.blender.org/D10846 --- source/blender/compositor/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender') diff --git a/source/blender/compositor/CMakeLists.txt b/source/blender/compositor/CMakeLists.txt index 872eb66e789..3f58f52670e 100644 --- a/source/blender/compositor/CMakeLists.txt +++ b/source/blender/compositor/CMakeLists.txt @@ -608,4 +608,8 @@ endif() blender_add_lib(bf_compositor "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") +if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") + target_compile_options(bf_compositor PRIVATE "-Wsuggest-override") +endif() + add_dependencies(bf_compositor smaa_areatex_header) -- cgit v1.2.3