gnuastro-devel
[Top][All Lists]
Advanced

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

[gnuastro-devel] [bug #52979] Adding (void) to avoid unused result warni


From: Mohammad Akhlaghi
Subject: [gnuastro-devel] [bug #52979] Adding (void) to avoid unused result warnings in asprintf
Date: Fri, 26 Jan 2018 11:07:55 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

URL:
  <http://savannah.gnu.org/bugs/?52979>

                 Summary: Adding (void) to avoid unused result warnings in
asprintf
                 Project: GNU Astronomy Utilities
            Submitted by: makhlaghi
            Submitted on: Fri 26 Jan 2018 05:07:53 PM CET
                Category: Installation
                Severity: 3 - Normal
              Item Group: Source code
                  Status: Postponed
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Some compilers run with the `-Wunused-result' flag which tells the compiler to
emit a warning when the result is not used. For example see the warnings here
<https://buildd.debian.org/status/fetch.php?pkg=gnuastro&arch=amd64&ver=0.5-1&stamp=1516267382&raw=0>
for the debian compiler while it was packaging Gnuastro 0.5.

It would be great if these warnings could be removed, both for them selves,
and also so we can spot more important warnings if they pop up.

Éric Thiébaut recently suggested to fix this problem by adding a `(void)'
before the calls to `asprintf'.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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