From 9d6321bdaace5b2edfcc646acf32ca721e45cd5c Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Thu, 14 Mar 2024 15:11:30 -0700 Subject: [PATCH] [lib] include `(void)` in function prototype in `reset_util.h` (#9934) Addresses warnings generated on some toolchains. --- src/lib/platform/reset_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/platform/reset_util.h b/src/lib/platform/reset_util.h index 52f568133ca..56e75da93d2 100644 --- a/src/lib/platform/reset_util.h +++ b/src/lib/platform/reset_util.h @@ -32,8 +32,8 @@ #if defined(OPENTHREAD_ENABLE_COVERAGE) && OPENTHREAD_ENABLE_COVERAGE && defined(__GNUC__) #if __GNUC__ >= 11 || (defined(__clang__) && (defined(__APPLE__) && (__clang_major__ >= 13)) || \ (!defined(__APPLE__) && (__clang_major__ >= 12))) -void __gcov_dump(); -void __gcov_reset(); +void __gcov_dump(void); +void __gcov_reset(void); static void flush_gcov(void) {