mirror of https://github.com/ARMmbed/mbed-os.git
Fix ARMCC compiler warning: Missing arg type.
parent
20a80cd0da
commit
706e5a0473
|
@ -21,14 +21,14 @@
|
||||||
|
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
void utest_unity_assert_failure()
|
void utest_unity_assert_failure(void)
|
||||||
{
|
{
|
||||||
UTEST_LOG_FUNCTION();
|
UTEST_LOG_FUNCTION();
|
||||||
utest::v1::Harness::raise_failure(utest::v1::REASON_ASSERTION);
|
utest::v1::Harness::raise_failure(utest::v1::REASON_ASSERTION);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
void utest_unity_ignore_failure()
|
void utest_unity_ignore_failure(void)
|
||||||
{
|
{
|
||||||
UTEST_LOG_FUNCTION();
|
UTEST_LOG_FUNCTION();
|
||||||
utest::v1::Harness::raise_failure(utest::v1::failure_reason_t(utest::v1::REASON_ASSERTION | utest::v1::REASON_IGNORE));
|
utest::v1::Harness::raise_failure(utest::v1::failure_reason_t(utest::v1::REASON_ASSERTION | utest::v1::REASON_IGNORE));
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
/// this function is called from the unity module when an assertion failed.
|
/// this function is called from the unity module when an assertion failed.
|
||||||
void utest_unity_assert_failure();
|
void utest_unity_assert_failure(void);
|
||||||
|
|
||||||
/// this function is called from the unity module when an assertion failed, but is ignored.
|
/// this function is called from the unity module when an assertion failed, but is ignored.
|
||||||
void utest_unity_ignore_failure();
|
void utest_unity_ignore_failure(void);
|
||||||
|
|
||||||
#endif // UTEST_UNITY_ASSERT_FAILURE_H
|
#endif // UTEST_UNITY_ASSERT_FAILURE_H
|
||||||
|
|
Loading…
Reference in New Issue