BAN-AI-Communications/k95-mingw

View on GitHub
zlib-1.2.8/contrib/untgz/untgz.c

Summary

Maintainability
Test Coverage

Showing 16 of 16 total issues

High complexity in tar: [76/30]
Open

{

struct member tar_header::chksum is never used.
Open

char chksum[8]; /* 148 */
Severity: Minor
Found in zlib-1.2.8/contrib/untgz/untgz.c by cppcheck

The scope of the variable prev can be reduced.
Open

struct attr_item *item, *prev;
Severity: Minor
Found in zlib-1.2.8/contrib/untgz/untgz.c by cppcheck

struct member tar_header::linkname is never used.
Open

char linkname[100]; /* 157 */
Severity: Minor
Found in zlib-1.2.8/contrib/untgz/untgz.c by cppcheck

struct member tar_header::uname is never used.
Open

char uname[32]; /* 265 */
Severity: Minor
Found in zlib-1.2.8/contrib/untgz/untgz.c by cppcheck

struct member tar_header::version is never used.
Open

char version[2]; /* 263 */
Severity: Minor
Found in zlib-1.2.8/contrib/untgz/untgz.c by cppcheck

The scope of the variable c can be reduced.
Open

char c;
Severity: Minor
Found in zlib-1.2.8/contrib/untgz/untgz.c by cppcheck

struct member tar_header::uid is never used.
Open

char uid[8]; /* 108 */
Severity: Minor
Found in zlib-1.2.8/contrib/untgz/untgz.c by cppcheck

The scope of the variable len can be reduced.
Open

int len;
Severity: Minor
Found in zlib-1.2.8/contrib/untgz/untgz.c by cppcheck

struct member tar_header::magic is never used.
Open

char magic[6]; /* 257 */
Severity: Minor
Found in zlib-1.2.8/contrib/untgz/untgz.c by cppcheck

struct member tar_header::gid is never used.
Open

char gid[8]; /* 116 */
Severity: Minor
Found in zlib-1.2.8/contrib/untgz/untgz.c by cppcheck

union member tar_buffer::buffer is never used.
Open

char buffer[BLOCKSIZE];
Severity: Minor
Found in zlib-1.2.8/contrib/untgz/untgz.c by cppcheck

struct member tar_header::gname is never used.
Open

char gname[32]; /* 297 */
Severity: Minor
Found in zlib-1.2.8/contrib/untgz/untgz.c by cppcheck

struct member tar_header::prefix is never used.
Open

char prefix[155]; /* 345 */
Severity: Minor
Found in zlib-1.2.8/contrib/untgz/untgz.c by cppcheck

struct member tar_header::devminor is never used.
Open

char devminor[8]; /* 337 */
Severity: Minor
Found in zlib-1.2.8/contrib/untgz/untgz.c by cppcheck

struct member tar_header::devmajor is never used.
Open

char devmajor[8]; /* 329 */
Severity: Minor
Found in zlib-1.2.8/contrib/untgz/untgz.c by cppcheck

There are no issues that match your filters.

Category
Status