Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix incompatible pointers #150

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

Schievel1
Copy link
Contributor

Clang16 and GCC 14 will make incompatible-function-pointer-types and incompatible-pointer-types and error by default.
This patch sets the functions return and parameter types to the correct expected types and casts to the expected pointer.

See also: https://wiki.gentoo.org/wiki/Modern_C_porting
Bug: https://bugs.gentoo.org/919066

Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
@@ -664,14 +664,14 @@ zzip_disk_entry_fopen(ZZIP_DISK * disk, ZZIP_DISK_ENTRY * entry)
off_t offset = zzip_file_header_to_data(header);
if (csize == 0xFFFFu) {
struct zzip_extra_zip64* zip64 =
zzip_file_header_to_extras(header);
(struct zzip_extra_zip64*)zzip_file_header_to_extras(header);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this obscures a real bug: #141 (comment)

@gdraheim gdraheim changed the base branch from master to develop February 26, 2024 22:27
@gdraheim gdraheim merged commit 1db4fe9 into gdraheim:develop Feb 26, 2024
2 checks passed
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.

3 participants