Address two Clang warnings

This commit is contained in:
Martijn van Beurden 2024-07-10 15:34:24 +02:00
parent 09d7887b2f
commit 9977773a60
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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);
}
}
}