Commit 6876cb6f authored by Dmitry Kazakov's avatar Dmitry Kazakov Committed by Eliakin Costa

Add -Werror=delete-incomplete

Deletion of an incomplete type is extremely dangerous and usually
causes memory leaks, so just make it a build error instead, so we
couldn't miss it.
parent 35993514
......@@ -61,6 +61,10 @@ if (APPLE)
add_definitions(-mmacosx-version-min=10.9 -Wno-macro-redefined -Wno-deprecated-register)
endif()
if (CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
add_definitions(-Werror=delete-incomplete)
endif()
######################
#######################
## Constants defines ##
......
......@@ -45,6 +45,7 @@
#include <asl/kis_asl_reader_utils.h>
#include "psd_pixel_utils.h"
#include <kundo2command.h>
// Just for pretty debug messages
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment