bug-groff
[Top][All Lists]
Advanced

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

[bug #43569] Fix for compile warnings with gcc 4.6.3


From: Ulrich Lauther
Subject: [bug #43569] Fix for compile warnings with gcc 4.6.3
Date: Wed, 12 Nov 2014 23:06:35 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:33.0) Gecko/20100101 Firefox/33.0

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/




reply via email to

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