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
This commit is contained in:
Jeroen Bakker 2021-04-09 12:04:00 +02:00 committed by Jeroen Bakker
parent 27dcccb20f
commit 7cef01b090
Notes: blender-bot 2023-02-14 03:46:57 +01:00
Referenced by commit aa95f8019e, macOS: Fix unknown -Wsuggest-override warning
1 changed files with 4 additions and 0 deletions

View File

@ -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)