Skip to content

mz_compat.c: fix warnings - #321

Merged
nmoinvaz merged 1 commit into
zlib-ng:devfrom
vszakats:warnfix
Oct 1, 2018
Merged

nmoinvaz merged 1 commit into
zlib-ng:devfrom
vszakats:warnfix

Conversation

@vszakats

@vszakats vszakats commented Oct 1, 2018 •

Copy link
Copy Markdown
Contributor
  • remove unused variables
  • fix signedness disagreement:
mz_compat.c:961:27: warning: comparison of integers of different signs: 'int64_t' (aka 'long long') and 'uint64_t'
      (aka 'unsigned long long') [-Wsign-compare]
    if (compat->total_out == file_info->uncompressed_size)
        ~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This one remains:

mz_zip.c:986:57: warning: cast from 'const unsigned char *' to 'void *' drops const qualifier [-Wcast-qual]
        mz_stream_mem_set_buffer(extrafield_ms, (void *)file_info->extrafield, file_info->extrafield_size);
                                                        ^

- remove unused variables
- fix signedness disagreement:
```
mz_compat.c:961:27: warning: comparison of integers of different signs: 'int64_t' (aka 'long long') and 'uint64_t'
      (aka 'unsigned long long') [-Wsign-compare]
    if (compat->total_out == file_info->uncompressed_size)
        ~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
@nmoinvaz
nmoinvaz merged commit f6fe93b into zlib-ng:dev Oct 1, 2018
@nmoinvaz

nmoinvaz commented Oct 1, 2018

Copy link
Copy Markdown
Member

Thanks!

@vszakats
vszakats deleted the warnfix branch October 1, 2018 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants