From 2bf0e93f6cc8ae4b850fa28308bfce0dd40f1380 Mon Sep 17 00:00:00 2001
From: Christoph Alt <christoph.alt@fau.de>
Date: Fri, 28 Jul 2023 11:25:33 +0200
Subject: [PATCH] Make strict-prototypes only a warning not an error to compile
 with likwid

---
 pystencils_benchmark/templates/Clang.mk | 2 +-
 pystencils_benchmark/templates/GCC.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pystencils_benchmark/templates/Clang.mk b/pystencils_benchmark/templates/Clang.mk
index 96296cc..15bfe63 100644
--- a/pystencils_benchmark/templates/Clang.mk
+++ b/pystencils_benchmark/templates/Clang.mk
@@ -12,7 +12,7 @@ CFLAGS   = -O3 -Wno-format -Wall -Werror $(ANSI_CFLAGS) -fopenmp -march=native
 # Maybe too much warnings
 #CFLAGS   += -Wcast-qual -Wswitch-default -Wconversion -Wunreachable-code
 # Specific C flags
-CFLAGS   := $(CFLAGS) -Wstrict-prototypes
+CFLAGS   := $(CFLAGS) -Wstrict-prototypes -Wno-error=strict-prototypes
 LFLAGS   = -fopenmp=libomp
 DEFINES  = -D_GNU_SOURCE -DNDEBUG
 INCLUDES =
diff --git a/pystencils_benchmark/templates/GCC.mk b/pystencils_benchmark/templates/GCC.mk
index a65ec46..7dccdfc 100644
--- a/pystencils_benchmark/templates/GCC.mk
+++ b/pystencils_benchmark/templates/GCC.mk
@@ -12,7 +12,7 @@ CFLAGS   = -O3 -Wno-format -Wall -Werror $(ANSI_CFLAGS) -fopenmp -march=native
 # Maybe too much warnings
 #CFLAGS   += -Wcast-qual -Wswitch-default -Wconversion -Wunreachable-code
 # Specific C flags
-CFLAGS   := $(CFLAGS) -Wstrict-prototypes
+CFLAGS   := $(CFLAGS) -Wstrict-prototypes -Wno-error=strict-prototypes
 LFLAGS   = -fopenmp
 DEFINES  = -D_GNU_SOURCE -DNDEBUG
 INCLUDES =
-- 
GitLab