diff options
author | John Baldwin <jhb@FreeBSD.org> | 2016-11-24 12:01:24 -0800 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2016-11-24 12:01:24 -0800 |
commit | bbe910e6e1140cb484a74911f3cea854cf9e7e2a (patch) | |
tree | f1e36cce0d512302a559831c0df78c913e86303b /gdb/m32r-linux-nat.c | |
parent | 793c128d03113816db85e8d1fa0bcd4982e246ee (diff) | |
download | gdb-bbe910e6e1140cb484a74911f3cea854cf9e7e2a.zip gdb-bbe910e6e1140cb484a74911f3cea854cf9e7e2a.tar.gz gdb-bbe910e6e1140cb484a74911f3cea854cf9e7e2a.tar.bz2 |
Add noexcept to custom non-throwing new operators.
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.
Diffstat (limited to 'gdb/m32r-linux-nat.c')
0 files changed, 0 insertions, 0 deletions