Skip to content

silence various warnings - #262

Merged
nmoinvaz merged 1 commit into
zlib-ng:devfrom
vszakats:warn2
May 3, 2018
Merged

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

Conversation

@vszakats

@vszakats vszakats commented May 2, 2018 •

Copy link
Copy Markdown
Contributor
  • unused parameters
  • trivial const stripping cases
  • missing NULL initializers from vtbls
  • missing static scope for vtbls

Missing newlines at EOF addressed in a separate PR.
It'd be nice to replace ZIP_UNUSED var and (void)var
with a global and non-gcc-specific solution, such as:

   #define MZ_UNUSED(symbol)  (void)symbol

- unused parameters
- trivial const stripping cases
- missing NULL initializers from vtbls
- missing static scope for vtbls

Missing newlines at EOF addressed in a separate PR.
It's be nice to replace `ZIP_UNUSED var` and `(void)var`
with a global and non-gcc-specific solution, such as:
   #define MZ_UNUSED(symbol)  (void)symbol
nmoinvaz added a commit that referenced this pull request May 3, 2018
Added #define for malloc and free. #249
@nmoinvaz
nmoinvaz merged commit 92c8d77 into zlib-ng:dev May 3, 2018
nmoinvaz added a commit that referenced this pull request May 3, 2018
@vszakats
vszakats deleted the warn2 branch May 3, 2018 06:53
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