Skip to content

Commit 706e5a0

Browse files
committed
Fix ARMCC compiler warning: Missing arg type.
1 parent 20a80cd commit 706e5a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frameworks/utest/source/unity_handler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121

2222

2323
extern "C"
24-
void utest_unity_assert_failure()
24+
void utest_unity_assert_failure(void)
2525
{
2626
UTEST_LOG_FUNCTION();
2727
utest::v1::Harness::raise_failure(utest::v1::REASON_ASSERTION);
2828
}
2929

3030
extern "C"
31-
void utest_unity_ignore_failure()
31+
void utest_unity_ignore_failure(void)
3232
{
3333
UTEST_LOG_FUNCTION();
3434
utest::v1::Harness::raise_failure(utest::v1::failure_reason_t(utest::v1::REASON_ASSERTION | utest::v1::REASON_IGNORE));

frameworks/utest/utest/unity_handler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
#include <stdint.h>
2323

2424
/// this function is called from the unity module when an assertion failed.
25-
void utest_unity_assert_failure();
25+
void utest_unity_assert_failure(void);
2626

2727
/// this function is called from the unity module when an assertion failed, but is ignored.
28-
void utest_unity_ignore_failure();
28+
void utest_unity_ignore_failure(void);
2929

3030
#endif // UTEST_UNITY_ASSERT_FAILURE_H

0 commit comments

Comments
 (0)