Re: [PATCH 2/3] Add noexcept to custom non-throwing new operators.

Pedro Alves
2016-11-24T17:03:39Z

On 11/23/2016 08:06 PM, John Baldwin wrote:
> Both libc++ and libstdc++ declare non-throwing new operators as
> noexcept and overloads must also be noexcept. This fixes a
> -Wmissing-exception-spec warning with clang.
>
> gdb/ChangeLog:
>
> * common/new-op.c (operator new): Mark 'noexcept'.
> (operator new[]): Likewise.

OK.

Thanks,
Pedro Alves