From 6557130792d6d4c2be19c4cbfe86cdf3f0bb2da5 Mon Sep 17 00:00:00 2001 From: 813gan <813gan@protonmail.com> Date: Fri, 30 Aug 2024 01:05:41 +0200 Subject: [PATCH] Enable more warnings and coredump in Makefile https://kristerw.blogspot.com/2017/09/useful-gcc-warning-options-not-enabled.html --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 04d3f17..ecf3d7e 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ endif CLANGFORMAT := clang-format HARDENING_FLAGS := -fstack-protector -fstack-clash-protection -fcf-protection \ - -D_FORTIFY_SOURCE=2 -ftrapv + -D_FORTIFY_SOURCE=2 -ftrapv -Wformat=2 -Wjump-misses-init OPTIMALISATION_FLAGS := -O2 UNAME_S := $(shell uname -s) @@ -45,7 +45,7 @@ clean: test: test_ert test_formatting test_ert: all - ${EMACS} -batch -l tests/prepare-tests.el -l ert -l tests/test.el \ + ulimit -c unlimited; ${EMACS} -batch -l tests/prepare-tests.el -l ert -l tests/test.el \ -f ert-run-tests-batch-and-exit # https://stackoverflow.com/questions/20112989/how-to-use-valgrind-with-python