From: Tom Tromey Date: Wed, 24 Apr 2019 22:19:51 +0000 (-0600) Subject: Use "false" in compile_cplus_convert_enum X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c056022194f9d1f068885cb45c9d23a2e44db54;p=binutils-gdb.git Use "false" in compile_cplus_convert_enum This changes compile_cplus_convert_enum to use "false". Note that this variable is never modified, which seems like an error. I filed PR compile/24473 for this. gdb/ChangeLog 2019-05-04 Tom Tromey * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use "false". --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d0a6f3af55a..4763a839103 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-05-04 Tom Tromey + + * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use + "false". + 2019-05-04 Tom Tromey * arc-tdep.c (arc_tdesc_init): Use bool. diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c index ee3bb438a3b..692393085e2 100644 --- a/gdb/compile/compile-cplus-types.c +++ b/gdb/compile/compile-cplus-types.c @@ -910,7 +910,7 @@ static gcc_type compile_cplus_convert_enum (compile_cplus_instance *instance, struct type *type, enum gcc_cp_symbol_kind nested_access) { - int scoped_enum_p = FALSE; + bool scoped_enum_p = false; /* Create a new scope for this type. */ compile_scope scope = instance->new_scope (TYPE_NAME (type), type);