diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-12-05 16:15:08 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-12-05 16:15:09 -0500 |
commit | ed9376bd95c52ba00aa37b224b4407030a00d184 (patch) | |
tree | 5acd5e21570cf8fdc27b6c34734b4ca6aeea0ca4 /gdb/xml-tdesc.c | |
parent | 798a7429f980a00844c22dfdda9475c451c635d4 (diff) | |
download | binutils-ed9376bd95c52ba00aa37b224b4407030a00d184.zip binutils-ed9376bd95c52ba00aa37b224b4407030a00d184.tar.gz binutils-ed9376bd95c52ba00aa37b224b4407030a00d184.tar.bz2 |
Redefine gdb_static_assert as static_assert
Since we use C++11, we can use static_assert instead doing the trick
that makes a negative-sized array if the expression is false.
static_assert is built in the language and gives clearer error messages.
To avoid modifying the usages of gdb_static_assert, redefine
gdb_static_assert in terms of static_assert, passing an empty message.
If we want to add an assert with a message, it's always possible to use
static_assert directly.
gdb/ChangeLog:
* common/gdb_assert.h (gdb_static_assert): Redefine using
static_assert.
Diffstat (limited to 'gdb/xml-tdesc.c')
0 files changed, 0 insertions, 0 deletions