summaryrefslogtreecommitdiffstats
path: root/src/bp_sim.cpp
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-12-25 11:25:02 +0200
committerHanoh Haim <hhaim@cisco.com>2016-12-25 11:25:29 +0200
commit9508e95686a4c1f468c5cd77a3c9ab679bafdb58 (patch)
tree4e87c44b078e002a3cf7aa6d92b53231e5667d0e /src/bp_sim.cpp
parentaf7770d4a895f7432c916c650ca7d98c021fe595 (diff)
gcc macro cleanup
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'src/bp_sim.cpp')
-rwxr-xr-xsrc/bp_sim.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/bp_sim.cpp b/src/bp_sim.cpp
index 72eb91ba..68cc325d 100755
--- a/src/bp_sim.cpp
+++ b/src/bp_sim.cpp
@@ -26,6 +26,7 @@ limitations under the License.
#include "msg_manager.h"
#include "trex_watchdog.h"
#include "utl_ipg_bucket.h"
+#include <common/utl_gcc_diag.h>
#include <common/basic_utils.h>
@@ -3791,16 +3792,6 @@ inline void CFlowGenListPerThread::on_flow_tick(CGenNode *node){
}
}
-#define GCC_DIAG_STR(s) #s
-#define GCC_DIAG_JOINSTR(x,y) GCC_DIAG_STR(x ## y)
-# define GCC_DIAG_DO_PRAGMA(x) _Pragma (#x)
-# define GCC_DIAG_PRAGMA(x) GCC_DIAG_DO_PRAGMA(GCC diagnostic x)
-#define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(push) \
- GCC_DIAG_PRAGMA(ignored GCC_DIAG_JOINSTR(-W,x))
-#define GCC_DIAG_ON() GCC_DIAG_PRAGMA(pop)
-
-#define UNSAFE_CONTAINER_OF_PUSH GCC_DIAG_OFF(invalid-offsetof)
-#define UNSAFE_CONTAINER_OF_POP GCC_DIAG_ON()
static void tw_free_node(void *userdata,