Skip to content

Commit

Permalink
Fix a few compilation warnings emitted by g++-13 (#1768)
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes authored Nov 16, 2023
1 parent 1e137f2 commit e68838b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ext/yuni/src/yuni/thread/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ IThread::IThread(uint stacksize) :
,
pShouldStop(true),
#ifdef YUNI_HAS_PTHREAD_ATTR_SETSTACKSIZE
pStackSize((stacksize < PTHREAD_STACK_MIN ? PTHREAD_STACK_MIN : stacksize))
pStackSize((stacksize < PTHREAD_STACK_MIN ? static_cast<uint>(PTHREAD_STACK_MIN) : stacksize))
#else
pStackSize(stacksize)
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/libs/antares/object/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class IObject : public Yuni::IIntrusiveSmartPtr<IObject>
//! \name Events
//@{
//! The object is about to be destroyed
virtual void onRelease();
virtual void onRelease() const;
//@}

protected:
Expand Down
2 changes: 1 addition & 1 deletion src/libs/antares/object/object.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ inline void IObject::enabled(bool state)
pEnabled = state;
}

inline void IObject::onRelease()
inline void IObject::onRelease() const
{
// do nothing
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ void CSR_DEBUG_HANDLE(const PROBLEME_POINT_INTERIEUR& Probleme)
}
}

void handleInteriorPointError(const PROBLEME_POINT_INTERIEUR& Probleme,
void handleInteriorPointError([[maybe_unused]] const PROBLEME_POINT_INTERIEUR& Probleme,
int hour,
uint weekNb,
int yearNb)
Expand Down

0 comments on commit e68838b

Please sign in to comment.