From 572addee5d261104c5817e24608ea0ae9c1d4c75 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Tue, 6 Feb 2007 10:04:44 -0800 Subject: [PATCH] Fix for previous commit: need to ifdef NDEBUG on the definition as well as the declaration. --HG-- extra : convert_revision : 4f073fa6b47bf21abf58d92cb1c9eed699c9c89e --- src/sim/eventq.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sim/eventq.cc b/src/sim/eventq.cc index de3050d8c..356472d9a 100644 --- a/src/sim/eventq.cc +++ b/src/sim/eventq.cc @@ -53,7 +53,9 @@ using namespace std; // EventQueue mainEventQueue("MainEventQueue"); +#ifndef NDEBUG Counter Event::instanceCounter = 0; +#endif void EventQueue::insert(Event *event) -- 2.30.2