From 4abb81c230bfcd599ccceb2b1bcbdcadbd859537 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 11 Jul 2024 15:18:16 +0200 Subject: Cleanup makefile and tools --- tools/run_tool.sh | 14 +------------- tools/stats_tables_h48/stats_tables_h48.c | 2 +- 2 files changed, 2 insertions(+), 14 deletions(-) (limited to 'tools') diff --git a/tools/run_tool.sh b/tools/run_tool.sh index 14d0e45..495d68c 100755 --- a/tools/run_tool.sh +++ b/tools/run_tool.sh @@ -5,19 +5,7 @@ if [ -z "$TOOL" ]; then exit 1 fi -CC="cc -std=c99 -pedantic -Wall -Wextra \ - -Wno-unused-parameter -Wno-unused-function -D$CUBETYPE \ - -D_POSIX_C_SOURCE=199309L" - -if [ -n "$DEBUG" ]; then - CC="$CC -fsanitize=address -g3" - CUBEOBJ="debugcube.o" -else - CC="$CC -O3" - CUBEOBJ="cube.o" -fi - -[ "$CUBETYPE" = "CUBE_AVX2" ] && CC="$CC -mavx2" +CC="$CC -D_POSIX_C_SOURCE=199309L" BIN="tools/run" d="$(date +'%Y-%m-%d-%H-%M-%S')" diff --git a/tools/stats_tables_h48/stats_tables_h48.c b/tools/stats_tables_h48/stats_tables_h48.c index fc8c981..7c6bc3c 100644 --- a/tools/stats_tables_h48/stats_tables_h48.c +++ b/tools/stats_tables_h48/stats_tables_h48.c @@ -127,7 +127,7 @@ int getdata(int64_t size) { return 0; } -int main() { +int main(void) { int64_t size; srand(time(NULL)); -- cgit v1.3