Replace "return" with "break"
authorTom Tromey <tom@tromey.com>
Fri, 12 May 2017 01:44:43 +0000 (19:44 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 12 May 2017 14:52:55 +0000 (08:52 -0600)
This replaces a "return" with a "break" in rust_print_subexp, for
consistency.

ChangeLog
2017-05-12  Tom Tromey  <tom@tromey.com>

* rust-lang.c (rust_print_subexp): Replace "return" with "break".

gdb/ChangeLog
gdb/rust-lang.c

index 7fa037038f233f633e56cb9d651eed3f56441c4e..b4caf1f43d941b9bd5a990111adefd61bfe095d7 100644 (file)
@@ -1,3 +1,7 @@
+2017-05-12  Tom Tromey  <tom@tromey.com>
+
+       * rust-lang.c (rust_print_subexp): Replace "return" with "break".
+
 2017-05-09  Yao Qi  <yao.qi@linaro.org>
 
        * regcache.c: Include <forward_list>.
index fe8a58cb0f3ff2d6b21a225ed76c5f8452f03ad6..dc48ff9dbf7528540df1b4a5dbf58a61d6c41c92 100644 (file)
@@ -2021,7 +2021,7 @@ rust_print_subexp (struct expression *exp, int *pos, struct ui_file *stream,
        print_subexp (exp, pos, stream, PREC_SUFFIX);
        fprintf_filtered (stream, ".%d", tem);
       }
-      return;
+      break;
 
     case OP_RUST_ARRAY:
       ++*pos;