]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix up complaints.h for namespace use
authorTom Tromey <tromey@adacore.com>
Wed, 8 Apr 2020 20:33:35 +0000 (14:33 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 8 Apr 2020 20:47:58 +0000 (14:47 -0600)
commita00caa12790706017c9331ad984b4f6b102db1b6
tree00de3d01df99db0d4e16e5f392661fafecdf7ed3
parentd41b524f45fa1f02716bc41f64fb85a42dcec164
Fix up complaints.h for namespace use

If 'complaint' is used in a namespace context, it will fail because
'stop_whining' is only declared at the top level.  This patch fixes
this problem in a simple way, by moving the declaration of
'stop_whining' out of the macro and to the top-level.

gdb/ChangeLog
2020-04-08  Tom Tromey  <tromey@adacore.com>

* complaints.h (stop_whining): Declare at top-level.
(complaint): Don't declare stop_whining.
gdb/ChangeLog
gdb/complaints.h