gnucash maint: Fix unused return value error from e4836f3c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

gnucash maint: Fix unused return value error from e4836f3c

Christian Stimming-3
Updated via  https://github.com/Gnucash/gnucash/commit/9069bace (commit)
        from  https://github.com/Gnucash/gnucash/commit/020bc537 (commit)



commit 9069bace158f52b0bd3a679eef7f09221c3a9b2d
Author: Christian Stimming <[hidden email]>
Date:   Sun Jan 20 20:39:20 2019 +0100

    Fix unused return value error from e4836f3c
   
    Re-introducing the fgets() call in e4836f3c that has been removed in
    bf55c30 triggers the "ignoring return value of fgets, declared with
    attribute warn_unused_result" error. The even better way is to actually
    use the return value and check it for non-NULL because only then
    we did a successful fgets call where we can use its result.



Summary of changes:
 gnucash/import-export/log-replay/gnc-log-replay.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

_______________________________________________
gnucash-patches mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-patches