+2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * c-valprint.c (c_val_print): Remove an assignment to i and move
+       its declaration.
+
 2015-07-09  Yao Qi  <yao.qi@linaro.org>
 
        * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
 
 {
   struct gdbarch *gdbarch = get_type_arch (type);
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
-  unsigned int i = 0;  /* Number of characters printed.  */
   unsigned len;
   struct type *elttype, *unresolved_elttype;
   struct type *unresolved_type = type;
   CHECK_TYPEDEF (type);
   switch (TYPE_CODE (type))
     {
+    unsigned int i = 0;        /* Number of characters printed.  */
     case TYPE_CODE_ARRAY:
       unresolved_elttype = TYPE_TARGET_TYPE (type);
       elttype = check_typedef (unresolved_elttype);
            {
              if (want_space)
                fputs_filtered (" ", stream);
-             i = val_print_string (unresolved_elttype, NULL,
-                                   addr, -1,
-                                   stream, options);
+             val_print_string (unresolved_elttype, NULL,
+                               addr, -1,
+                               stream, options);
            }
          else if (cp_is_vtbl_member (type))
            {