diff options
author | Tsukasa OI <research_trasio@irq.a4lg.com> | 2022-10-06 06:43:50 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-10-11 15:18:14 +0100 |
commit | 25ae9e265976b45897865d14ed454ec3c937bd78 (patch) | |
tree | ec43f85805736cf23eacab457f45bf87a2e4f4e8 /gdb | |
parent | 5294d882ebb5b10f8a246f2c51ffef05622ef16c (diff) | |
download | gdb-25ae9e265976b45897865d14ed454ec3c937bd78.zip gdb-25ae9e265976b45897865d14ed454ec3c937bd78.tar.gz gdb-25ae9e265976b45897865d14ed454ec3c937bd78.tar.bz2 |
sim: Make WITH_{TRACE,PROFILE}-based macros bool
Clang generates a warning if there is an ambiguous expression (possibly a
bitwise operation (& or |), but a logical operator (&& or ||) is used;
"-Wconstant-logical-operand"). On the default configuration, it causes a
build failure (unless "--disable-werror" is specified).
This is caused by predicate macros that use the form (base_variable & flag).
Clang considers them as regular integer values (not boolean) and
generates that warning.
This commit makes Clang think those predicate macros to be boolean.
Diffstat (limited to 'gdb')
0 files changed, 0 insertions, 0 deletions