]> granicus.if.org Git - vim/commitdiff
patch 8.2.0393: Coverity warns for not using return value v8.2.0393
authorBram Moolenaar <Bram@vim.org>
Mon, 16 Mar 2020 19:07:16 +0000 (20:07 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 16 Mar 2020 19:07:16 +0000 (20:07 +0100)
Problem:    Coverity warns for not using return value.
Solution:   Add (void).

src/popupmenu.c
src/version.c

index 3a5e1032410bbf7748bebab0cc56ad4f2d273710..c57681c9e95cf2c4d921ab208df413ead11581b7 100644 (file)
@@ -1071,12 +1071,13 @@ pum_set_event_info(dict_T *dict)
 {
     if (!pum_visible())
        return;
-    dict_add_number(dict, "height", pum_height);
-    dict_add_number(dict, "width", pum_width);
-    dict_add_number(dict, "row", pum_row);
-    dict_add_number(dict, "col", pum_col);
-    dict_add_number(dict, "size", pum_size);
-    dict_add_bool(dict, "scrollbar", pum_scrollbar ? VVAL_TRUE : VVAL_FALSE);
+    (void)dict_add_number(dict, "height", pum_height);
+    (void)dict_add_number(dict, "width", pum_width);
+    (void)dict_add_number(dict, "row", pum_row);
+    (void)dict_add_number(dict, "col", pum_col);
+    (void)dict_add_number(dict, "size", pum_size);
+    (void)dict_add_bool(dict, "scrollbar",
+                                      pum_scrollbar ? VVAL_TRUE : VVAL_FALSE);
 }
 #endif
 
index fdd9d39da9ce214d95393024c9c33fd26c4dde17..b0497a52c0de8a499643609bfd59291da1840b05 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    393,
 /**/
     392,
 /**/