From 9833385da5dcab302b41ccf99e1e9a27a697df8f Mon Sep 17 00:00:00 2001 From: shatty Date: Sun, 21 Nov 2004 18:53:01 +0000 Subject: [PATCH] address compiler warnings git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10127 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kits/media/media_decoder/media_decoder.cpp | 1 + src/tests/kits/media/notificationtest/main.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/tests/kits/media/media_decoder/media_decoder.cpp b/src/tests/kits/media/media_decoder/media_decoder.cpp index 9ab8c0681a..fa5a184e06 100644 --- a/src/tests/kits/media/media_decoder/media_decoder.cpp +++ b/src/tests/kits/media/media_decoder/media_decoder.cpp @@ -22,6 +22,7 @@ protected: memset(mh,0,sizeof(media_header)); status_t result = track->ReadChunk((char**)chunkData,(int32*)chunkLen,mh); const void * data = *chunkData; + (void)data; return result; } }; diff --git a/src/tests/kits/media/notificationtest/main.cpp b/src/tests/kits/media/notificationtest/main.cpp index 5e0ed04b57..17203ffa41 100644 --- a/src/tests/kits/media/notificationtest/main.cpp +++ b/src/tests/kits/media/notificationtest/main.cpp @@ -25,7 +25,7 @@ void InitWatch() status_t rv; rv = roster->StartWatching(be_app_messenger); if (rv != B_OK) { - printf("Globalwatch: StartWatching failed. result = %#x\n",rv); + printf("Globalwatch: StartWatching failed. result = %#lx\n",rv); return; } } @@ -36,7 +36,7 @@ void InitWatch() rv = roster->GetLiveNodes(out_live_nodes, &io_total_count); if (rv != B_OK) { - printf("GetLiveNodes failed. result = %#x\n",rv); + printf("GetLiveNodes failed. result = %#lx\n",rv); return; } @@ -51,7 +51,7 @@ void ExitWatch() status_t rv; rv = roster->StopWatching(be_app_messenger); if (rv != B_OK) { - printf("Globalwatch: StopWatching failed. result = %#x\n",rv); + printf("Globalwatch: StopWatching failed. result = %#lx\n",rv); return; } } @@ -68,7 +68,7 @@ void StartWatch(media_node node) status_t rv; rv = roster->StartWatching(be_app_messenger, node, B_MEDIA_WILDCARD); if (rv != B_OK) { - printf("Nodewatch: StartWatching failed. result = %#x\n",rv); + printf("Nodewatch: StartWatching failed. result = %#lx\n",rv); return; } media_node *mn = new media_node; @@ -83,7 +83,7 @@ void StopWatch(media_node node) status_t rv; rv = roster->StopWatching(be_app_messenger, node, B_MEDIA_WILDCARD); if (rv != B_OK) { - printf("Nodewatch: StopWatching failed. result = %#x\n",rv); + printf("Nodewatch: StopWatching failed. result = %#lx\n",rv); return; } media_node *mn;