Follow-up Comment #7, bug #43569 (project groff):

Ingo Schwarze wrote:
> it may be appropriate to cast to (void) if a thorough audit     > reveals
that ignoring the return value is OK in the
> (exceptional) case at hand, usually together with a comment
> explaining why it is ok, for the next auditor.

The code I found HAD a cast to (void):
(void) fscanf(file, "%" MAXSTRING_S "s%*[^n]n", string);
But nevertheless gcc issued the warning. That's why I submitted the patch.

ulrich


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43569>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
bug-groff mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-groff

Reply via email to