Commit 3235f6c6 authored by incardon's avatar incardon
Browse files

Openfpm fixing compilation for scan coverty

parent c3a1b4df
...@@ -92,22 +92,23 @@ fi ...@@ -92,22 +92,23 @@ fi
INCLUDES_PATH+=" -I/usr/local/include -I. -Iconfig -I../../openfpm_devices/src -I../../openfpm_data/src" INCLUDES_PATH+=" -I/usr/local/include -I. -Iconfig -I../../openfpm_devices/src -I../../openfpm_data/src"
###### Check for memleak check compilation ########
AC_MSG_CHECKING(whether to build with memory check) ## Enable scan coverty
mem_check=no
AC_ARG_ENABLE(memcheck, AC_MSG_CHECKING(whether to build for scan coverty compilation)
AC_HELP_STRING( AC_ARG_ENABLE(scan-coverty,
[--enable-memcheck], AC_HELP_STRING(
[enable memory checking (def=no)] [--enable-scan-coverty],
), [enable scan-coverty compilation (def=no)]
mem_check="$enableval" ),
scancoverty="$enableval"
) )
AC_MSG_RESULT($scancoverty)
AC_MSG_RESULT($mem_check) if test x"$scancoverty" = x"yes"; then
if test x"$mem_check" = x"yes"; then AC_DEFINE([COVERTY_SCAN],[],[Compile for coverty scan])
AC_DEFINE([MEMLEAK_CHECK],[],[Memory check])
fi fi
#################################### ####################################
......
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