From: Fabrice Bellard Date: Wed, 13 Dec 2023 18:00:17 +0000 (+0100) Subject: added -fwrapv to CFLAGS to ensure that signed overflows have a well defined behavior X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=a610598df6f0cb920ba877adbc9a29f83954df52;p=quickjs.git added -fwrapv to CFLAGS to ensure that signed overflows have a well defined behavior --- diff --git a/Makefile b/Makefile index 39bd3ad..082fc73 100644 --- a/Makefile +++ b/Makefile @@ -96,6 +96,7 @@ else endif endif STRIP=$(CROSS_PREFIX)strip +CFLAGS+=-fwrapv # ensure that signed overflows behave as expected ifdef CONFIG_WERROR CFLAGS+=-Werror endif