* 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:
@@ -197,7 +197,7 @@ static FILE * ntfs_log_get_stream(u32 level)
|
|||||||
{
|
{
|
||||||
#if defined(__BEOS__) || defined(__HAIKU__)
|
#if defined(__BEOS__) || defined(__HAIKU__)
|
||||||
return NULL;
|
return NULL;
|
||||||
#elif
|
#else
|
||||||
FILE *stream;
|
FILE *stream;
|
||||||
|
|
||||||
switch (level) {
|
switch (level) {
|
||||||
@@ -407,7 +407,7 @@ int ntfs_log_handler_fprintf(const char *function, const char *file,
|
|||||||
{
|
{
|
||||||
#if defined(__BEOS__) || defined(__HAIKU__)
|
#if defined(__BEOS__) || defined(__HAIKU__)
|
||||||
return 0;
|
return 0;
|
||||||
#elif
|
#else
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
int olderr = errno;
|
int olderr = errno;
|
||||||
FILE *stream;
|
FILE *stream;
|
||||||
@@ -528,7 +528,7 @@ int ntfs_log_handler_stdout(const char *function, const char *file,
|
|||||||
{
|
{
|
||||||
#if defined(__BEOS__) || defined(__HAIKU__)
|
#if defined(__BEOS__) || defined(__HAIKU__)
|
||||||
return 0;
|
return 0;
|
||||||
#elif
|
#else
|
||||||
if (!data)
|
if (!data)
|
||||||
data = stdout;
|
data = stdout;
|
||||||
|
|
||||||
@@ -563,7 +563,7 @@ int ntfs_log_handler_outerr(const char *function, const char *file,
|
|||||||
{
|
{
|
||||||
#if defined(__BEOS__) || defined(__HAIKU__)
|
#if defined(__BEOS__) || defined(__HAIKU__)
|
||||||
return 0;
|
return 0;
|
||||||
#elif
|
#else
|
||||||
if (!data)
|
if (!data)
|
||||||
data = ntfs_log_get_stream(level);
|
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__)
|
#if defined(__BEOS__) || defined(__HAIKU__)
|
||||||
return 0;
|
return 0;
|
||||||
#elif
|
#else
|
||||||
if (!data)
|
if (!data)
|
||||||
data = stderr;
|
data = stderr;
|
||||||
|
|
||||||
|
|||||||
@@ -3399,7 +3399,7 @@ BWindow::_HandleKeyDown(BMessage* event)
|
|||||||
|
|
||||||
be_roster->Launch("application/x-vnd.haiku-screenshot", &message);
|
be_roster->Launch("application/x-vnd.haiku-screenshot", &message);
|
||||||
return true;
|
return true;
|
||||||
#elif
|
#else
|
||||||
// Get filename
|
// Get filename
|
||||||
BPath homePath;
|
BPath homePath;
|
||||||
|
|
||||||
|
|||||||
+3
@@ -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
|
// notify the request
|
||||||
request->NotifyFinished();
|
request->NotifyFinished();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// never can get here
|
||||||
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -756,6 +756,9 @@ object_cache_resizer(void*)
|
|||||||
if (request->delete_when_done)
|
if (request->delete_when_done)
|
||||||
delete request;
|
delete request;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// never can get here
|
||||||
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -632,6 +632,9 @@ undertaker(void* /*args*/)
|
|||||||
thread_enqueue(thread, &dead_q);
|
thread_enqueue(thread, &dead_q);
|
||||||
// TODO: Use the slab allocator!
|
// TODO: Use the slab allocator!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// never can get here
|
||||||
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user