From: Steve Reinhardt Date: Tue, 6 Feb 2007 18:04:44 +0000 (-0800) Subject: Fix for previous commit: need to ifdef NDEBUG on the X-Git-Tag: m5_2.0_beta3~222 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=572addee5d261104c5817e24608ea0ae9c1d4c75;p=gem5.git Fix for previous commit: need to ifdef NDEBUG on the definition as well as the declaration. --HG-- extra : convert_revision : 4f073fa6b47bf21abf58d92cb1c9eed699c9c89e --- 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)