mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-10 02:14:30 +08:00
parser.c (cp_lexer_start_debugging): Avoid arithmetic operations on boolean variables.
* parser.c (cp_lexer_start_debugging): Avoid arithmetic operations on boolean variables. (cp_lexer_stop_debugging): Likewise. From-SVN: r94731
This commit is contained in:
parent
f8eacd975b
commit
81122c446d
@ -1,3 +1,9 @@
|
||||
2005-02-07 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* parser.c (cp_lexer_start_debugging): Avoid arithmetic operations
|
||||
on boolean variables.
|
||||
(cp_lexer_stop_debugging): Likewise.
|
||||
|
||||
2005-02-03 Giovanni Bajo <giovannibajo@gcc.gnu.org>
|
||||
|
||||
PR c++/17401
|
||||
|
@ -706,7 +706,7 @@ cp_lexer_print_token (FILE * stream, cp_token *token)
|
||||
static void
|
||||
cp_lexer_start_debugging (cp_lexer* lexer)
|
||||
{
|
||||
++lexer->debugging_p;
|
||||
lexer->debugging_p = true;
|
||||
}
|
||||
|
||||
/* Stop emitting debugging information. */
|
||||
@ -714,7 +714,7 @@ cp_lexer_start_debugging (cp_lexer* lexer)
|
||||
static void
|
||||
cp_lexer_stop_debugging (cp_lexer* lexer)
|
||||
{
|
||||
--lexer->debugging_p;
|
||||
lexer->debugging_p = false;
|
||||
}
|
||||
|
||||
#endif /* ENABLE_CHECKING */
|
||||
|
Loading…
Reference in New Issue
Block a user