From 3bc6d6c59a84213259bf4179c6296400a1e4cfe9 Mon Sep 17 00:00:00 2001 From: shadow303 Date: Fri, 4 Jul 2003 21:10:14 +0000 Subject: [PATCH] gcc 3 fixes git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3845 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/AreaLink.cpp | 1 + src/kits/app/MessageUtils.cpp | 1 + src/kits/app/PortLink.cpp | 8 ++++---- src/kits/app/PortMessage.cpp | 3 ++- src/kits/app/PortQueue.cpp | 2 +- src/kits/app/RegistrarThread.cpp | 1 + src/kits/interface/BTextView/TextGapBuffer.cpp | 1 + src/kits/interface/Window.cpp | 18 +++++++++--------- src/kits/storage/FindDirectory.cpp | 1 + src/kits/storage/LibBeAdapter.cpp | 1 + src/kits/storage/Mime.cpp | 1 + 11 files changed, 23 insertions(+), 15 deletions(-) diff --git a/src/kits/app/AreaLink.cpp b/src/kits/app/AreaLink.cpp index b45313f8db..2f79e0650e 100644 --- a/src/kits/app/AreaLink.cpp +++ b/src/kits/app/AreaLink.cpp @@ -26,6 +26,7 @@ //------------------------------------------------------------------------------ #include #include "AreaLink.h" +#include //#define AL_DEBUG diff --git a/src/kits/app/MessageUtils.cpp b/src/kits/app/MessageUtils.cpp index a82f7dd9d6..182df90385 100644 --- a/src/kits/app/MessageUtils.cpp +++ b/src/kits/app/MessageUtils.cpp @@ -4,6 +4,7 @@ //------------------------------------------------------------------------------ // Standard Includes ----------------------------------------------------------- +#include // System Includes ------------------------------------------------------------- #include diff --git a/src/kits/app/PortLink.cpp b/src/kits/app/PortLink.cpp index 998b330039..e67afdee4e 100644 --- a/src/kits/app/PortLink.cpp +++ b/src/kits/app/PortLink.cpp @@ -182,7 +182,7 @@ printf("PortLink::GetPort() returned %lu\n",target); return target; } -status_t PortLink::Flush(bigtime_t timeout=B_INFINITE_TIMEOUT) +status_t PortLink::Flush(bigtime_t timeout) { #ifdef PLDEBUG printf("PortLink::Flush()\n"); @@ -228,7 +228,7 @@ printf("\tFlush(): flushing without attachments\n"); } -int8* PortLink::FlushWithReply(int32 *code, status_t *status, ssize_t *buffersize, bigtime_t timeout=B_INFINITE_TIMEOUT) +int8* PortLink::FlushWithReply(int32 *code, status_t *status, ssize_t *buffersize, bigtime_t timeout) { // Deprecated call which functions exactly like PortLink(PortLink::ReplyData *data) #ifdef PLDEBUG @@ -309,7 +309,7 @@ printf("PortLink::FlushWithReply(): bad port\n"); } -status_t PortLink::FlushWithReply(PortLink::ReplyData *data,bigtime_t timeout=B_INFINITE_TIMEOUT) +status_t PortLink::FlushWithReply(PortLink::ReplyData *data,bigtime_t timeout) { #ifdef PLDEBUG printf("PortLink::FlushWithReply(ReplyData*,bigtime_t)\n"); @@ -396,7 +396,7 @@ printf("\tFlushWithReply(): unable to assign reply port to data\n"); return B_OK; } -status_t PortLink::FlushWithReply(PortMessage *msg,bigtime_t timeout=B_INFINITE_TIMEOUT) +status_t PortLink::FlushWithReply(PortMessage *msg,bigtime_t timeout) { #ifdef PLDEBUG printf("PortLink::FlushWithReply(PortMessage*,bigtime_t)\n"); diff --git a/src/kits/app/PortMessage.cpp b/src/kits/app/PortMessage.cpp index 385ae30761..5246ea90e0 100644 --- a/src/kits/app/PortMessage.cpp +++ b/src/kits/app/PortMessage.cpp @@ -27,6 +27,7 @@ #include #include #include "PortMessage.h" +#include PortMessage::PortMessage(const int32 &code, const void *buffer, const ssize_t &buffersize, const bool ©) @@ -49,7 +50,7 @@ PortMessage::~PortMessage(void) } -status_t PortMessage::ReadFromPort(const port_id &port, const bigtime_t &timeout=B_INFINITE_TIMEOUT) +status_t PortMessage::ReadFromPort(const port_id &port, const bigtime_t &timeout) { if(_buffersize>0 && _buffer!=NULL) delete _buffer; diff --git a/src/kits/app/PortQueue.cpp b/src/kits/app/PortQueue.cpp index 831fc32ac2..bd47c93117 100644 --- a/src/kits/app/PortQueue.cpp +++ b/src/kits/app/PortQueue.cpp @@ -48,7 +48,7 @@ bool PortQueue::SetPort(const port_id &port) return _init; } -void PortQueue::GetMessagesFromPort(bool wait_for_messages=false) +void PortQueue::GetMessagesFromPort(bool wait_for_messages) { if(_init) { diff --git a/src/kits/app/RegistrarThread.cpp b/src/kits/app/RegistrarThread.cpp index c1fa76896b..b98247b35c 100644 --- a/src/kits/app/RegistrarThread.cpp +++ b/src/kits/app/RegistrarThread.cpp @@ -1,4 +1,5 @@ #include "RegistrarThread.h" +#include /*! \class RegistrarThread \brief Base thread class for threads spawned and managed by the registrar diff --git a/src/kits/interface/BTextView/TextGapBuffer.cpp b/src/kits/interface/BTextView/TextGapBuffer.cpp index 1a5ec05e3a..746e4447f5 100644 --- a/src/kits/interface/BTextView/TextGapBuffer.cpp +++ b/src/kits/interface/BTextView/TextGapBuffer.cpp @@ -25,6 +25,7 @@ //------------------------------------------------------------------------------ // Standard Includes ----------------------------------------------------------- +#include // System Includes ------------------------------------------------------------- diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index dc2587518d..8b3fc630a1 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -1571,10 +1571,10 @@ uint32 BWindow::Flags() const{ //------------------------------------------------------------------------------ status_t BWindow::SetWindowAlignment(window_alignment mode, - int32 h, int32 hOffset = 0, - int32 width = 0, int32 widthOffset = 0, - int32 v = 0, int32 vOffset = 0, - int32 height = 0, int32 heightOffset = 0) + int32 h, int32 hOffset, + int32 width, int32 widthOffset, + int32 v, int32 vOffset, + int32 height, int32 heightOffset) { if ( !( (mode && B_BYTE_ALIGNMENT) || (mode && B_PIXEL_ALIGNMENT) ) ) @@ -1624,11 +1624,11 @@ status_t BWindow::SetWindowAlignment(window_alignment mode, //------------------------------------------------------------------------------ -status_t BWindow::GetWindowAlignment(window_alignment* mode = NULL, - int32* h = NULL, int32* hOffset = NULL, - int32* width = NULL, int32* widthOffset = NULL, - int32* v = NULL, int32* vOffset = NULL, - int32* height = NULL, int32* heightOffset = NULL) const +status_t BWindow::GetWindowAlignment(window_alignment* mode, + int32* h, int32* hOffset, + int32* width, int32* widthOffset, + int32* v, int32* vOffset, + int32* height, int32* heightOffset) const { PortLink::ReplyData replyData; int8 *rb; // short for: replybuffer diff --git a/src/kits/storage/FindDirectory.cpp b/src/kits/storage/FindDirectory.cpp index 69c561c287..8b7698091f 100644 --- a/src/kits/storage/FindDirectory.cpp +++ b/src/kits/storage/FindDirectory.cpp @@ -10,6 +10,7 @@ #include #include +#include #include #include diff --git a/src/kits/storage/LibBeAdapter.cpp b/src/kits/storage/LibBeAdapter.cpp index caa92df4b4..94927da6a2 100644 --- a/src/kits/storage/LibBeAdapter.cpp +++ b/src/kits/storage/LibBeAdapter.cpp @@ -4,6 +4,7 @@ #include #include #include +#include status_t entry_ref_to_path_adapter(dev_t device, ino_t directory, const char *name, diff --git a/src/kits/storage/Mime.cpp b/src/kits/storage/Mime.cpp index 2036ab5504..f4c80ab7b4 100644 --- a/src/kits/storage/Mime.cpp +++ b/src/kits/storage/Mime.cpp @@ -21,6 +21,7 @@ #include #include +#include enum { NOT_IMPLEMENTED = B_ERROR,