Skip to content

Commit

Permalink
FIX: non-void function does not return a value
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Oct 3, 2021
1 parent c8198a8 commit 4127a7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/u-compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ static REBYTE get_png_filter_type(REBVAL* val) {
return MIN(PNG_FILTER_PAETH, MAX(0, VAL_INT32(val)));
}
Trap1(RE_INVALID_ARG, val);
return 0; // to make xcode happy
}

// See: https://www.rfc-editor.org/rfc/rfc2083.html#page-31
Expand Down Expand Up @@ -497,7 +498,7 @@ static REBYTE get_png_filter_type(REBVAL* val) {
REBINT width = AS_INT32(val_width);
REBCNT r, c, rows;
REBYTE *scan, *prev, *temp, *out;
REBYTE filter;
REBYTE filter = 0;
REBCNT bytes = VAL_LEN(val_data);
REBCNT bpp = ref_skip ? VAL_INT32(val_bpp) : 1;

Expand Down

0 comments on commit 4127a7c

Please sign in to comment.