Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0418-erts-Silence-CodeChecker-in-erlexec.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0418-erts-Silence-CodeChecker-in-erlexec.patch of Package erlang
From 4acc2343f9ad6afd4bfeafa40077925e29b2f5d5 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson <sverker@erlang.org> Date: Tue, 9 Feb 2021 12:14:26 +0100 Subject: [PATCH 18/34] erts: Silence CodeChecker in erlexec --- erts/etc/common/erlexec.c | 1 + erts/etc/common/etc_common.h | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c index e9d18964d6..0efacd67a1 100644 --- a/erts/etc/common/erlexec.c +++ b/erts/etc/common/erlexec.c @@ -1342,6 +1342,7 @@ ensure_EargsSz(int sz) if (EargsSz < sz) Eargsp = (char **) erealloc((void *) Eargsp, sizeof(char *) * (EargsSz = sz)); + ASSERT(Eargsp); } static void diff --git a/erts/etc/common/etc_common.h b/erts/etc/common/etc_common.h index 3f26064a9e..7561630945 100644 --- a/erts/etc/common/etc_common.h +++ b/erts/etc/common/etc_common.h @@ -63,3 +63,9 @@ #define HAVE_STRERROR 1 #define snprintf _snprintf #endif + +#ifdef DEBUG +# define ASSERT(Cnd) ((void)((Cnd) ? 1 : abort())) +#else +# define ASSERT(Cnd) +#endif -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor