Skip to content

Commit

Permalink
Address two Clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmf01 committed Jul 10, 2024
1 parent 09d7887 commit 9977773
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/share/alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
extern int alloc_check_threshold, alloc_check_counter;

static inline int alloc_check() {
static inline int alloc_check(void) {
if(alloc_check_threshold == INT32_MAX)
return 0;
else if(alloc_check_counter++ == alloc_check_threshold)
Expand Down
2 changes: 1 addition & 1 deletion src/metaflac/operations.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ void write_metadata(const char *filename, FLAC__StreamMetadata *block, unsigned
flac_printf("%c",block->data.application.data[i]);
else {
char replacement[4] = {0xef, 0xbf, 0xbd, 0}; /* Unicode replacement character */
flac_printf(replacement);
flac_printf("%s",replacement);
}
}
}
Expand Down

0 comments on commit 9977773

Please sign in to comment.