texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[7774] cast return value of a function to void


From: gavinsmith0123
Subject: [7774] cast return value of a function to void
Date: Sat, 13 May 2017 14:21:37 -0400 (EDT)

Revision: 7774
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7774
Author:   gavin
Date:     2017-05-13 14:21:37 -0400 (Sat, 13 May 2017)
Log Message:
-----------
cast return value of a function to void

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/window.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2017-05-13 13:38:44 UTC (rev 7773)
+++ trunk/ChangeLog     2017-05-13 18:21:37 UTC (rev 7774)
@@ -1,5 +1,11 @@
 2017-05-13  Gavin Smith  <address@hidden>
 
+       * info/window.c (calculate_line_starts, window_compute_line_map):
+       Add a comment and cast return value of a function to void to 
+       make it clear that the return value is being discarded.
+
+2017-05-13  Gavin Smith  <address@hidden>
+
        * info/indices.c (info_index_search, info_next_index_match),
        * info/indices.h (APROPOS_NONE),
        * info/info-utils.c (copy_converting),

Modified: trunk/info/window.c
===================================================================
--- trunk/info/window.c 2017-05-13 13:38:44 UTC (rev 7773)
+++ trunk/info/window.c 2017-05-13 18:21:37 UTC (rev 7774)
@@ -1173,7 +1173,9 @@
       size_t pbytes = 0; /* Not used. */
       int delim = 0;
 
-      printed_representation (&iter, &delim, pl_chars, &pchars, &pbytes);
+      /* Set pchars. */
+      (void) printed_representation (&iter, &delim, pl_chars,
+                                     &pchars, &pbytes);
 
       /* If this character can be printed without passing the width of
          the line, then include it in the line. */
@@ -1298,8 +1300,9 @@
       if (cur_ptr >= endp)
        break;
       
-      printed_representation (&iter, &delim, win->line_map.used,
-                              &pchars, &pbytes);
+      /* Set pchars */
+      (void) printed_representation (&iter, &delim, win->line_map.used,
+                                     &pchars, &pbytes);
 
       while (pchars--)
         line_map_add (&win->line_map, cur_ptr - win->node->contents);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]