Skip to content

Commit e90d363

Browse files
committed
Fix non-mac CI build warning
1 parent 74c82b3 commit e90d363

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

csrc/compact_pro_cli.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,8 +1718,8 @@ static int write_linux_xattr(const char *path, const char *name, const uint8_t *
17181718
#endif
17191719
}
17201720

1721-
static int read_macos_resource_fork_optional(const char *path, uint8_t **out, size_t *out_len) {
17221721
#if defined(__APPLE__)
1722+
static int read_macos_resource_fork_optional(const char *path, uint8_t **out, size_t *out_len) {
17231723
*out = NULL;
17241724
*out_len = 0;
17251725

@@ -1743,13 +1743,8 @@ static int read_macos_resource_fork_optional(const char *path, uint8_t **out, si
17431743
*out = buf;
17441744
*out_len = (size_t)got;
17451745
return 0;
1746-
#else
1747-
(void)path;
1748-
(void)out;
1749-
(void)out_len;
1750-
return 0;
1751-
#endif
17521746
}
1747+
#endif
17531748

17541749
static int read_resource_for_input(const char *data_path, const selectors *s, uint8_t **out, size_t *out_len) {
17551750
*out = NULL;

0 commit comments

Comments
 (0)