* various fixes identified by gcc4, provided by Joe Prostko
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30902 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1f58723702
commit
591bc3f2d9
|
@ -197,7 +197,7 @@ static FILE * ntfs_log_get_stream(u32 level)
|
|||
{
|
||||
#if defined(__BEOS__) || defined(__HAIKU__)
|
||||
return NULL;
|
||||
#elif
|
||||
#else
|
||||
FILE *stream;
|
||||
|
||||
switch (level) {
|
||||
|
@ -407,7 +407,7 @@ int ntfs_log_handler_fprintf(const char *function, const char *file,
|
|||
{
|
||||
#if defined(__BEOS__) || defined(__HAIKU__)
|
||||
return 0;
|
||||
#elif
|
||||
#else
|
||||
int ret = 0;
|
||||
int olderr = errno;
|
||||
FILE *stream;
|
||||
|
@ -528,7 +528,7 @@ int ntfs_log_handler_stdout(const char *function, const char *file,
|
|||
{
|
||||
#if defined(__BEOS__) || defined(__HAIKU__)
|
||||
return 0;
|
||||
#elif
|
||||
#else
|
||||
if (!data)
|
||||
data = stdout;
|
||||
|
||||
|
@ -563,7 +563,7 @@ int ntfs_log_handler_outerr(const char *function, const char *file,
|
|||
{
|
||||
#if defined(__BEOS__) || defined(__HAIKU__)
|
||||
return 0;
|
||||
#elif
|
||||
#else
|
||||
if (!data)
|
||||
data = ntfs_log_get_stream(level);
|
||||
|
||||
|
@ -597,7 +597,7 @@ int ntfs_log_handler_stderr(const char *function, const char *file,
|
|||
{
|
||||
#if defined(__BEOS__) || defined(__HAIKU__)
|
||||
return 0;
|
||||
#elif
|
||||
#else
|
||||
if (!data)
|
||||
data = stderr;
|
||||
|
||||
|
|
|
@ -3399,7 +3399,7 @@ BWindow::_HandleKeyDown(BMessage* event)
|
|||
|
||||
be_roster->Launch("application/x-vnd.haiku-screenshot", &message);
|
||||
return true;
|
||||
#elif
|
||||
#else
|
||||
// Get filename
|
||||
BPath homePath;
|
||||
|
||||
|
|
|
@ -1947,6 +1947,9 @@ block_notifier_and_writer(void* /*data*/)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// never can get here
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -739,6 +739,9 @@ IOScheduler::_RequestNotifier()
|
|||
// notify the request
|
||||
request->NotifyFinished();
|
||||
}
|
||||
|
||||
// never can get here
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -756,6 +756,9 @@ object_cache_resizer(void*)
|
|||
if (request->delete_when_done)
|
||||
delete request;
|
||||
}
|
||||
|
||||
// never can get here
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -632,6 +632,9 @@ undertaker(void* /*args*/)
|
|||
thread_enqueue(thread, &dead_q);
|
||||
// TODO: Use the slab allocator!
|
||||
}
|
||||
|
||||
// never can get here
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue