Skip to content

Commit

Permalink
Merge pull request #457 from ckormanyos/gcc_patch
Browse files Browse the repository at this point in the history
Finish patching the GCC patch
  • Loading branch information
ckormanyos authored Dec 19, 2023
2 parents a34d1da + 59b8275 commit c3b87d9
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,7 +71,10 @@ void* operator new(std::size_t size) noexcept
}

void operator delete(void*) noexcept { }
#if (defined(__GNUC__) && (__GNUC__ >= 12))
#else
void operator delete(void*, void*) noexcept { }
#endif
#if(__cplusplus >= 201400L)
void operator delete(void*, std::size_t) noexcept { }
#endif
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 c3b87d9

Please sign in to comment.