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 build with clang by correcting return types #4

Closed
wants to merge 1 commit into from

Conversation

ilovezfs
Copy link

@ilovezfs ilovezfs commented May 2, 2016

Prevents the following four errors when building with clang:

libdwarf.c:338:43: error: non-void function 'growth' should return a value [-Wreturn-type]
if(!fc_ptr) {printf("no file opened!\n");return;}

libdwarf.c:360:43: error: non-void function 'shrink' should return a value [-Wreturn-type]
if(!fc_ptr) {printf("no file opened!\n");return;}

dw_switchers.c:158:42: error: void function 'set_s_val' should not return a value [-Wreturn-type]
if(!fc_ptr) {printf("unknown file.\n"); return NULL;}

dw_pe_utils.c:575:14: error: non-void function 'get_pe_offset2' should return a value [-Wreturn-type]
if(!fc_ptr) return;

Closes #2.

Prevents the following four errors when building with clang:

libdwarf.c:338:43: error: non-void function 'growth' should return a value [-Wreturn-type]
        if(!fc_ptr) {printf("no file opened!\n");return;}

libdwarf.c:360:43: error: non-void function 'shrink' should return a value [-Wreturn-type]
        if(!fc_ptr) {printf("no file opened!\n");return;}

dw_switchers.c:158:42: error: void function 'set_s_val' should not return a value [-Wreturn-type]
        if(!fc_ptr) {printf("unknown file.\n"); return NULL;}

dw_pe_utils.c:575:14: error: non-void function 'get_pe_offset2' should return a value [-Wreturn-type]
        if(!fc_ptr) return;

Closes elboza#2.
@ilovezfs
Copy link
Author

Bump.

@ilovezfs
Copy link
Author

Boneyarding the formula in Homebrew/core since this remains unaddressed.

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.

None yet

1 participant