From 613b4e1131046e9456ba81fd050219666389d6c1 Mon Sep 17 00:00:00 2001 From: shatty Date: Sun, 21 Nov 2004 05:25:16 +0000 Subject: [PATCH] address compiler warnings git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10080 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../media/media-add-ons/multi_audio/MultiAudioAddOn.cpp | 2 +- .../media/media-add-ons/multi_audio/MultiAudioNode.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/add-ons/media/media-add-ons/multi_audio/MultiAudioAddOn.cpp b/src/add-ons/media/media-add-ons/multi_audio/MultiAudioAddOn.cpp index b43813c253..7682ecd41d 100644 --- a/src/add-ons/media/media-add-ons/multi_audio/MultiAudioAddOn.cpp +++ b/src/add-ons/media/media-add-ons/multi_audio/MultiAudioAddOn.cpp @@ -64,7 +64,7 @@ MultiAudioAddOn::~MultiAudioAddOn() void *device = NULL; for ( int32 i = 0; (device = fDevices.ItemAt(i)); i++ ) - delete device; + delete (MultiAudioDevice *)device; SaveSettings(); } diff --git a/src/add-ons/media/media-add-ons/multi_audio/MultiAudioNode.cpp b/src/add-ons/media/media-add-ons/multi_audio/MultiAudioNode.cpp index f436f1af98..eefd3792f9 100644 --- a/src/add-ons/media/media-add-ons/multi_audio/MultiAudioNode.cpp +++ b/src/add-ons/media/media-add-ons/multi_audio/MultiAudioNode.cpp @@ -46,6 +46,9 @@ #include "MultiAudioNode.h" #include "driver_io.h" +#ifdef DEBUG + #define PRINTING +#endif #include "debug.h" #include @@ -299,7 +302,9 @@ void MultiAudioNode::NodeRegistered(void) SetParameterWeb(fWeb); /* apply configuration */ +#ifdef PRINTING bigtime_t start = system_time(); +#endif int32 index = 0; int32 parameterID = 0;