_FORTIFY_SOURCE requires at least -O2 optimization level.
This may result in compilation warnings. Fix it.
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
ifdef CONFIG_CODE_COVERAGE
-CFLAGS += -O0 -fprofile-arcs -ftest-coverage
+CFLAGS += -O0 -fprofile-arcs -ftest-coverage -U_FORTIFY_SOURCE
LIBS += -lgcov
LIBS_c += -lgcov
LIBS_h += -lgcov
CONFIG_MBO=y
CONFIG_CODE_COVERAGE=y
-CFLAGS += -O0 -Wsign-compare
+CFLAGS += -O0 -Wsign-compare -U_FORTIFY_SOURCE
CONFIG_TAXONOMY=y
#CONFIG_FILS=y
CONFIG_MBO=y
#CONFIG_CODE_COVERAGE=y
-CFLAGS += -O0 -Wsign-compare
+CFLAGS += -O0 -Wsign-compare -U_FORTIFY_SOURCE
#CONFIG_FILS=y
#CONFIG_FILS_SK_PFS=y
CONFIG_PMKSA_CACHE_EXTERNAL=y
endif
ifdef CONFIG_CODE_COVERAGE
-CFLAGS += -O0 -fprofile-arcs -ftest-coverage
+CFLAGS += -O0 -fprofile-arcs -ftest-coverage -U_FORTIFY_SOURCE
LIBS += -lgcov
LIBS_c += -lgcov
LIBS_p += -lgcov