D15320: Fix remaining warnings in fpackutil.c
Thomas Stibor
noreply at phabricator.kde.org
Thu Sep 6 20:13:54 BST 2018
tstibor created this revision.
tstibor added a reviewer: mutlaqja.
Herald added a project: KDE Edu.
Herald added a subscriber: kde-edu.
tstibor requested review of this revision.
REVISION SUMMARY
Fix warnings:
/home/tstibor/dev/astronomy/kstars/kstars/fitsviewer/fpackutil.c:789:7: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
(void)fgets(answer, 29, stdin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tstibor/dev/astronomy/kstars/kstars/fitsviewer/fpackutil.c:829:7: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(answer, 29, stdin);
^~~~~~~~~~~~~~~~~~~~~~~~
/home/tstibor/dev/astronomy/kstars/kstars/fitsviewer/fpackutil.c:874:17: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
system(temp);
^~~~~~~~~~~~
/home/tstibor/dev/astronomy/kstars/kstars/fitsviewer/fpackutil.c: In function ‘fp_test’:
/home/tstibor/dev/astronomy/kstars/kstars/fitsviewer/fpackutil.c:1260:77: warning: ‘bpix’ may be used uninitialized in this function [-Wmaybe-uninitialized]
imagestats.noise2, imagestats.noise3, imagestats.noise5, xbits, bpix/xbits);
~~~~^~~~~~
REPOSITORY
R321 KStars
REVISION DETAIL
https://phabricator.kde.org/D15320
AFFECTED FILES
kstars/fitsviewer/fpackutil.c
To: tstibor, mutlaqja
Cc: kde-edu, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20180906/91ccbb26/attachment.html>
More information about the kde-edu
mailing list