Skip to content

Commit 1e33151

Browse files
committed
Fix GCC 14.2 warnings.
1 parent be5650b commit 1e33151

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

examples/udr/UdrCppExample.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ namespace
7979
class AutoImpl
8080
{
8181
public:
82-
AutoImpl<T, Clear>(T* aPtr = NULL)
82+
AutoImpl(T* aPtr = NULL)
8383
: ptr(aPtr)
8484
{
8585
}
@@ -139,7 +139,7 @@ namespace
139139

140140
private:
141141
// not implemented
142-
AutoImpl<T, Clear>(AutoImpl<T, Clear>&);
142+
AutoImpl(AutoImpl<T, Clear>&);
143143
void operator =(AutoImpl<T, Clear>&);
144144

145145
private:

src/auth/SecureRemotePassword/server/SrpServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ class SecurityDatabase : public VSecDb
247247
template <class SHA> class SrpServerImpl final : public SrpServer
248248
{
249249
public:
250-
explicit SrpServerImpl<SHA>(IPluginConfig* ipc)
250+
explicit SrpServerImpl(IPluginConfig* ipc)
251251
: SrpServer(ipc)
252252
{}
253253

src/common/classes/alloc.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ template <typename SubsystemThreadData, typename SubsystemPool>
339339
class SubsystemContextPoolHolder : public ContextPoolHolder
340340
{
341341
public:
342-
SubsystemContextPoolHolder <SubsystemThreadData, SubsystemPool>
342+
SubsystemContextPoolHolder
343343
(
344344
SubsystemThreadData* subThreadData,
345345
SubsystemPool* newPool
@@ -350,10 +350,12 @@ class SubsystemContextPoolHolder : public ContextPoolHolder
350350
{
351351
savedThreadData->setDefaultPool(newPool);
352352
}
353+
353354
~SubsystemContextPoolHolder()
354355
{
355356
savedThreadData->setDefaultPool(savedPool);
356357
}
358+
357359
private:
358360
SubsystemThreadData* savedThreadData;
359361
SubsystemPool* savedPool;

src/common/classes/stack.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace Firebird {
3636
class Stack : public AutoStorage
3737
{
3838
private:
39-
Stack<Object, Capacity>(Stack<Object, Capacity>&); // not implemented
39+
Stack(Stack<Object, Capacity>&); // not implemented
4040

4141
class Entry : public Vector<Object, Capacity>
4242
{
@@ -117,11 +117,11 @@ namespace Firebird {
117117
Entry* stk_cache;
118118

119119
public:
120-
explicit Stack<Object, Capacity>(MemoryPool& p)
120+
explicit Stack(MemoryPool& p)
121121
: AutoStorage(p), stk(0), stk_cache(0)
122122
{ }
123123

124-
Stack<Object, Capacity>() : AutoStorage(), stk(0), stk_cache(0) { }
124+
Stack() : AutoStorage(), stk(0), stk_cache(0) { }
125125

126126
~Stack()
127127
{

0 commit comments

Comments
 (0)