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

Fix GCC 14.2 warnings.

This commit is contained in:
Adriano dos Santos Fernandes 2024-10-21 22:33:50 -03:00
parent e5b4a5d1da
commit e27f67b6ad
5 changed files with 12 additions and 10 deletions

View File

@ -79,7 +79,7 @@ namespace
class AutoImpl
{
public:
AutoImpl<T, Clear>(T* aPtr = NULL)
AutoImpl(T* aPtr = NULL)
: ptr(aPtr)
{
}
@ -139,7 +139,7 @@ namespace
private:
// not implemented
AutoImpl<T, Clear>(AutoImpl<T, Clear>&);
AutoImpl(AutoImpl<T, Clear>&);
void operator =(AutoImpl<T, Clear>&);
private:

View File

@ -247,7 +247,7 @@ private:
template <class SHA> class SrpServerImpl final : public SrpServer
{
public:
explicit SrpServerImpl<SHA>(IPluginConfig* ipc)
explicit SrpServerImpl(IPluginConfig* ipc)
: SrpServer(ipc)
{}

View File

@ -133,19 +133,19 @@ public:
template <typename T> class Nullable : public BaseNullable<T>
{
public:
explicit Nullable<T>(const T& v)
explicit Nullable(const T& v)
{
this->value = v;
this->specified = true;
}
Nullable<T>(const Nullable<T>& o)
Nullable(const Nullable<T>& o)
{
this->value = o.value;
this->specified = o.specified;
}
Nullable<T>()
Nullable()
{
invalidate();
}

View File

@ -330,7 +330,7 @@ template <typename SubsystemThreadData, typename SubsystemPool>
class SubsystemContextPoolHolder : public ContextPoolHolder
{
public:
SubsystemContextPoolHolder <SubsystemThreadData, SubsystemPool>
SubsystemContextPoolHolder
(
SubsystemThreadData* subThreadData,
SubsystemPool* newPool
@ -341,10 +341,12 @@ public:
{
savedThreadData->setDefaultPool(newPool);
}
~SubsystemContextPoolHolder()
{
savedThreadData->setDefaultPool(savedPool);
}
private:
SubsystemThreadData* savedThreadData;
SubsystemPool* savedPool;

View File

@ -36,7 +36,7 @@ namespace Firebird {
class Stack : public AutoStorage
{
private:
Stack<Object, Capacity>(Stack<Object, Capacity>&); // not implemented
Stack(Stack<Object, Capacity>&); // not implemented
class Entry : public Vector<Object, Capacity>
{
@ -117,11 +117,11 @@ namespace Firebird {
Entry* stk_cache;
public:
explicit Stack<Object, Capacity>(MemoryPool& p)
explicit Stack(MemoryPool& p)
: AutoStorage(p), stk(0), stk_cache(0)
{ }
Stack<Object, Capacity>() : AutoStorage(), stk(0), stk_cache(0) { }
Stack() : AutoStorage(), stk(0), stk_cache(0) { }
~Stack()
{