re PR c++/4093 (Return type mis-match for (a?b:c) constructs in gcc/cp/cp-tree.h)

2002-02-24 Craig Rodrigues  <rodrigc@gcc.gnu.org>

        PR c++/4093
        * cp-tree.h (SET_BINFO_MARKED): Cast false part of condition
        to void.

From-SVN: r50008
This commit is contained in:
Craig Rodrigues 2002-02-24 18:57:38 +00:00
parent a7261b2da0
commit 3387d36e96
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-02-24 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR c++/4093
* cp-tree.h (SET_BINFO_MARKED): Cast false part of condition
to void.
2002-02-22 Jakub Jelinek <jakub@redhat.com>
PR other/5746

View File

@ -1586,7 +1586,7 @@ struct lang_type
#define SET_BINFO_MARKED(NODE) \
(TREE_VIA_VIRTUAL(NODE) \
? SET_CLASSTYPE_MARKED (BINFO_TYPE (NODE)) \
: (TREE_LANG_FLAG_0 (NODE) = 1))
: (void)(TREE_LANG_FLAG_0 (NODE) = 1))
#define CLEAR_BINFO_MARKED(NODE) \
(TREE_VIA_VIRTUAL (NODE) \
? CLEAR_CLASSTYPE_MARKED (BINFO_TYPE (NODE)) \