Skip to content

Commit

Permalink
Repair GCC patch for GCC 12 and higher
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Dec 19, 2023
1 parent 0a81e4d commit 5fc7a77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ref_app/src/mcal/mcal_gcc_cxx_completion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ void* operator new(std::size_t size) noexcept
}

void operator delete(void*) noexcept { }
#if (defined(__GNUC__) && (__GNUC__ >= 12))
inline
#endif
void operator delete(void*, void*) noexcept { }
#if(__cplusplus >= 201400L)
void operator delete(void*, std::size_t) noexcept { }
Expand Down Expand Up @@ -145,11 +148,8 @@ extern "C"

namespace std
{
void __throw_out_of_range_fmt(char const*, ...);

void __throw_out_of_range_fmt(char const*, ...)
{
}
[[noreturn]]
void __throw_out_of_range_fmt(char const*, ...) { for(;;) { ; } }
}

#if defined(__GNUC__)
Expand Down

0 comments on commit 5fc7a77

Please sign in to comment.