Opened 7 years ago
Closed 5 years ago
#6846 closed defect (wontfix)
hdf-eos clang static analizer complaints
Reported by: | Kurt Schwehr | Owned by: | Kurt Schwehr |
---|---|---|---|
Priority: | normal | Milestone: | closed_because_of_github_migration |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | hdf-eos csa |
Cc: |
Description
https://travis-ci.org/rouault/gdal_coverage/builds/217630923
Not new, but it would be good to eventually clean these up... a sample of the warnings...
DGDAL_COMPILATION -c -o ../../o/GDapi.o GDapi.c EHapi.c:676:5: warning: Value stored to 'status' is never read status = EHchkfid(fid, "EHgetversion", &dum, &sdInterfaceID, &access); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ EHapi.c:1013:21: warning: Call to 'calloc' has an allocation size of 0 bytes ptr = (char **) calloc(nentries, sizeof(char *)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ EHapi.c:1753:24: warning: Call to 'calloc' has an allocation size of 0 bytes metabuf = (char *) calloc(32000 * nmeta, 1); ^~~~~~~~~~~~~~~~~~~~~~~~ EHapi.c:2544:24: warning: Call to 'calloc' has an allocation size of 0 bytes metabuf = (char *) calloc(32000 * nmeta, 1); ^~~~~~~~~~~~~~~~~~~~~~~~ EHapi.c:2566:5: warning: Value stored to 'metalen' is never read metalen = (int)strlen(metabuf); ^ ~~~~~~~~~~~~~~~~~~~~ EHapi.c:3521:2: warning: Value stored to 'status' is never read status = SDend(sdInterfaceID); ^ ~~~~~~~~~~~~~~~~~~~~ EHapi.c:3522:2: warning: Value stored to 'status' is never read status = Vend(HDFfid); ^ ~~~~~~~~~~~~ 7 warnings generated.
Change History (1)
comment:1 by , 5 years ago
Milestone: | → closed_because_of_github_migration |
---|---|
Resolution: | → wontfix |
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.