8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 02:03:04 +01:00

1) Fix posix build

2) Remove some warnings
This commit is contained in:
asfernandes 2009-02-15 14:45:37 +00:00
parent a1517aa94f
commit d369e26979
3 changed files with 5 additions and 5 deletions

View File

@ -660,7 +660,7 @@ Firebird::PathName get_process_name()
if (len <= 0)
buffer[0] = 0;
else if (len < sizeof(buffer))
else if (size_t(len) < sizeof(buffer))
buffer[len] = 0;
else
buffer[len - 1] = 0;
@ -861,7 +861,7 @@ void exactNumericToStr(SINT64 value, int scale, Firebird::string& target, bool a
buffer[--iter] = '0';
}
bool dot_used = false;
UINT64 uval = neg ? UINT64(-(value + 1)) + 1 : value; // avoid problems with MIN_SINT64
FB_UINT64 uval = neg ? FB_UINT64(-(value + 1)) + 1 : value; // avoid problems with MIN_SINT64
while (uval)
{
buffer[--iter] = static_cast<char>(uval % 10) + '0';

View File

@ -467,8 +467,8 @@ public:
virtual const char* getRemoteProcessName() { return m_options->dpb_remote_process.c_str(); }
private:
const DatabaseOptions* m_options;
const char* m_filename;
const DatabaseOptions* m_options;
};
static void cancel_attachments();

View File

@ -185,9 +185,9 @@ LockManager::LockManager(const Firebird::string& id)
m_header(NULL),
m_process(NULL),
m_processOffset(0),
m_dbId(getPool(), id),
m_acquireSpins(Config::getLockAcquireSpins()),
m_memorySize(Config::getLockMemSize()),
m_dbId(getPool(), id)
m_memorySize(Config::getLockMemSize())
{
Firebird::string name;
name.printf(LOCK_FILE, m_dbId.c_str());