From f4bcef53593abe252fa9bdb677c0211b9448c077 Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Wed, 8 Mar 2023 12:36:44 -0800 Subject: [PATCH] Don't use -DDEBUG to change layout of PathId. Since -DDEBUG is commonly used, it is dangerous to change the layout of an object just because of that - project using the Surelog library will now accidentally change the size that is not compatible anymore with the binary library. So, only do this if the very specific debugging option for this case is set. Related: https://github.com/chipsalliance/UHDM/issues/872 --- include/Surelog/Common/PathId.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/Surelog/Common/PathId.h b/include/Surelog/Common/PathId.h index 0887b1ac2e..99acfec402 100644 --- a/include/Surelog/Common/PathId.h +++ b/include/Surelog/Common/PathId.h @@ -28,14 +28,6 @@ #include #include -#if !defined(PATHID_DEBUG_ENABLED) -#if defined(DEBUG) || defined(_DEBUG) -#define PATHID_DEBUG_ENABLED 1 -#else -#define PATHID_DEBUG_ENABLED 0 -#endif -#endif - namespace SURELOG { /** * class PathId