diff options
author | Jeroen Bakker <jbakker> | 2021-04-09 13:04:00 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-04-09 13:04:45 +0300 |
commit | 7cef01b090c4c2d2703274edb91886ae37d3ce82 (patch) | |
tree | 6c9db64f48624e612c63e073dd77cc356faabf25 /source/blender/compositor/CMakeLists.txt | |
parent | 27dcccb20fa4296973fc1f2ddae72af2b4c806d7 (diff) |
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
Diffstat (limited to 'source/blender/compositor/CMakeLists.txt')
-rw-r--r-- | source/blender/compositor/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
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) |