removed compiler warnings

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2223 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper 2002-12-10 20:15:29 +00:00
parent 5f511927a9
commit 5aab162dcc
6 changed files with 9 additions and 5 deletions

View File

@ -36,6 +36,7 @@ public:
items[i] = new value;
*items[i] = *other.items[i];
}
return *this;
}
bool Insert(const value &v)

View File

@ -38,6 +38,7 @@ public:
items[i]->k = other.items[i]->k;
items[i]->v = other.items[i]->v;
}
return *this;
}
bool Insert(const key &k, const value &v)

View File

@ -78,7 +78,7 @@ status_t rtm_size_for(void * data)
status_t rtm_phys_size_for(void * data)
{
UNIMPLEMENTED();
TRACE(" ptr = %p\n",(int)data);
TRACE(" ptr = %p\n", data);
return 0;
}
@ -86,7 +86,7 @@ rtm_pool * rtm_default_pool()
{
BROKEN();
/* Return the default pool, or NULL if not yet initialized */
TRACE(" returning pool = %p\n", 0x22229999);
TRACE(" returning pool = %p\n", (void *) 0x22229999);
return (rtm_pool *) 0x22229999;
}

View File

@ -14,10 +14,12 @@ namespace MediaKitPrivate {
status_t GetMasterVolume(float *left, float *right)
{
return B_OK;
}
status_t SetMasterVolume(float left, float right)
{
return B_OK;
}
} //namespace MediaKitPrivate

View File

@ -585,7 +585,7 @@ NodeManager::Dump()
printf("NodeManager: registered nodes map follows:\n");
registered_node *rn;
for (fRegisteredNodeMap->Rewind(); fRegisteredNodeMap->GetNext(&rn); ) {
printf(" node-id %ld, addon-id %ld, addon-flavor-id %ld, port %ld, team %ld, kinds %#08x, name \"%s\"\n",
printf(" node-id %ld, addon-id %ld, addon-flavor-id %ld, port %ld, team %ld, kinds %#08Lx, name \"%s\"\n",
rn->nodeid, rn->addon_id, rn->addon_flavor_id, rn->port, rn->team, rn->kinds, rn->name);
printf(" teams (refcount): ");
team_id *team;
@ -613,7 +613,7 @@ NodeManager::Dump()
for (fDormantFlavorList->Rewind(); fDormantFlavorList->GetNext(&dfi); ) {
printf(" addon-id %ld, addon-flavor-id %ld, addon-name \"%s\"\n",
dfi->node_info.addon, dfi->node_info.flavor_id, dfi->node_info.name);
printf(" flavor-kinds %#08x, flavor_flags %#08x, internal_id %ld, possible_count %ld, in_format_count %ld, out_format_count %ld\n",
printf(" flavor-kinds %#08Lx, flavor_flags %#08lx, internal_id %ld, possible_count %ld, in_format_count %ld, out_format_count %ld\n",
dfi->kinds, dfi->flavor_flags, dfi->internal_id, dfi->possible_count, dfi->in_format_count, dfi->out_format_count);
printf(" flavor-name \"%s\"\n", dfi->name);
printf(" flavor-info \"%s\"\n", dfi->info);

View File

@ -259,7 +259,7 @@ NotificationManager::Dump()
printf("NotificationManager: list of subscribers follows:\n");
Notification *n;
for (fNotificationList->Rewind(); fNotificationList->GetNext(&n); ) {
printf(" team %ld, what %#08x, node-id %ld, node-port %ld, messenger %svalid\n",
printf(" team %ld, what %#08lx, node-id %ld, node-port %ld, messenger %svalid\n",
n->team, n->what, n->node.node, n->node.port, n->messenger.IsValid() ? "" : "NOT ");
}
printf("NotificationManager: list end\n");