From 9977773a6027d96a223d2cac12428cdb88639798 Mon Sep 17 00:00:00 2001 From: Martijn van Beurden Date: Wed, 10 Jul 2024 15:34:24 +0200 Subject: [PATCH] Address two Clang warnings --- include/share/alloc.h | 2 +- src/metaflac/operations.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/share/alloc.h b/include/share/alloc.h index b0da6941dc..248ad10295 100644 --- a/include/share/alloc.h +++ b/include/share/alloc.h @@ -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) diff --git a/src/metaflac/operations.c b/src/metaflac/operations.c index 65fc6dbd95..a14a290afe 100644 --- a/src/metaflac/operations.c +++ b/src/metaflac/operations.c @@ -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); } } }