Patch 8.2.1082
Problem:    Coverity complains about ignoring dict_add() return value.
Solution:   Add (void).
Files:      src/evalfunc.c


*** ../vim-8.2.1081/src/evalfunc.c      2020-06-24 18:37:28.359249374 +0200
--- src/evalfunc.c      2020-06-29 19:54:40.777872052 +0200
***************
*** 6272,6278 ****
      list = (list_T *)get_reg_contents(regname, GREG_EXPR_SRC | GREG_LIST);
      if (list == NULL)
        return;
!     dict_add_list(dict, "regcontents", list);
  
      buf[0] = NUL;
      buf[1] = NUL;
--- 6272,6278 ----
      list = (list_T *)get_reg_contents(regname, GREG_EXPR_SRC | GREG_LIST);
      if (list == NULL)
        return;
!     (void)dict_add_list(dict, "regcontents", list);
  
      buf[0] = NUL;
      buf[1] = NUL;
***************
*** 6285,6296 ****
                            reglen + 1);
                    break;
      }
!     dict_add_string(dict, (char *)"regtype", buf);
  
      buf[0] = get_register_name(get_unname_register());
      buf[1] = NUL;
      if (regname == '"')
!       dict_add_string(dict, (char *)"points_to", buf);
      else
      {
        dictitem_T      *item = dictitem_alloc((char_u *)"isunnamed");
--- 6285,6296 ----
                            reglen + 1);
                    break;
      }
!     (void)dict_add_string(dict, (char *)"regtype", buf);
  
      buf[0] = get_register_name(get_unname_register());
      buf[1] = NUL;
      if (regname == '"')
!       (void)dict_add_string(dict, (char *)"points_to", buf);
      else
      {
        dictitem_T      *item = dictitem_alloc((char_u *)"isunnamed");
***************
*** 6300,6306 ****
            item->di_tv.v_type = VAR_SPECIAL;
            item->di_tv.vval.v_number = regname == buf[0]
                ? VVAL_TRUE : VVAL_FALSE;
!           dict_add(dict, item);
        }
      }
  }
--- 6300,6306 ----
            item->di_tv.v_type = VAR_SPECIAL;
            item->di_tv.vval.v_number = regname == buf[0]
                ? VVAL_TRUE : VVAL_FALSE;
!           (void)dict_add(dict, item);
        }
      }
  }
*** ../vim-8.2.1081/src/version.c       2020-06-28 22:41:23.351349861 +0200
--- src/version.c       2020-06-29 19:55:32.485492209 +0200
***************
*** 756,757 ****
--- 756,759 ----
  {   /* Add new patch number below this line */
+ /**/
+     1082,
  /**/

-- 
Did Adam and Eve have navels?

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202006291756.05THuXRF670389%40masaka.moolenaar.net.

Raspunde prin e-mail lui