From ede41c474b11767ac584957b944a95a5e8201744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustaf=20Alh=C3=A4ll?= Date: Wed, 1 Nov 2023 18:30:37 +0100 Subject: [PATCH] Pass -fwrapv to GCC compilation flags --- src/Makefile.d/versions.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Makefile.d/versions.mk b/src/Makefile.d/versions.mk index d2877b374..73d352138 100644 --- a/src/Makefile.d/versions.mk +++ b/src/Makefile.d/versions.mk @@ -160,6 +160,10 @@ opts+=-O0 endif endif +ifdef GCC45 +opts+=-fwrapv +endif + ifdef VALGRIND ifdef GCC46 WFLAGS+=-Wno-error=unused-but-set-variable