Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: gcc-14 #34

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ jobs:
cxxcompiler: clang++
libraries: libsdl2-dev
- name: GCC - SDL2
compiler: gcc
cxxcompiler: g++
compiler: gcc-14
cxxcompiler: g++-14
libraries: libsdl2-dev
extra-cmake-parameters: -DCMAKE_BUILD_TYPE=RelWithDebInfo
- name: GCC - Dedicated
compiler: gcc
cxxcompiler: g++
Expand Down
2 changes: 2 additions & 0 deletions src/core/pool_type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,15 @@ struct Pool : PoolBase {
* @param p memory to free
* @note the item has to be allocated in the pool!
*/
IGNORE_UNINITIALIZED_WARNING_START
inline void operator delete(void *p)
{
if (p == nullptr) return;
Titem *pn = static_cast<Titem *>(p);
assert(pn == Tpool->Get(pn->index));
Tpool->FreeItem(pn->index);
}
IGNORE_UNINITIALIZED_WARNING_STOP

/**
* Allocates space for new Titem with given index
Expand Down
2 changes: 2 additions & 0 deletions src/fileio_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ enum Searchpath : unsigned {

DECLARE_POSTFIX_INCREMENT(Searchpath)

IGNORE_UNINITIALIZED_WARNING_START
class FileHandle {
public:
static std::optional<FileHandle> Open(const std::string &filename, const std::string &mode);
Expand All @@ -180,6 +181,7 @@ class FileHandle {

FileHandle(FILE *f) : f(f) { assert(this->f != nullptr); }
};
IGNORE_UNINITIALIZED_WARNING_STOP

/* Ensure has_value() is used consistently. */
template <> constexpr std::optional<FileHandle>::operator bool() const noexcept = delete;
Expand Down
Loading