mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 09:45:55 +08:00
Eliminate a warning
This commit is contained in:
@@ -311,7 +311,7 @@ static void _up_assert(int errorcode)
|
||||
|
||||
void up_assert(const uint8_t *filename, int lineno)
|
||||
{
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_FEATURES)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -366,7 +366,7 @@ static void _up_assert(int errorcode)
|
||||
|
||||
void up_assert(const uint8_t *filename, int lineno)
|
||||
{
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_FEATURES)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -372,7 +372,7 @@ static void _up_assert(int errorcode)
|
||||
|
||||
void up_assert(const uint8_t *filename, int lineno)
|
||||
{
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_FEATURES)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
#endif
|
||||
board_autoled_on(LED_ASSERTION);
|
||||
|
||||
@@ -375,7 +375,7 @@ static void _up_assert(int errorcode)
|
||||
|
||||
void up_assert(const uint8_t *filename, int lineno)
|
||||
{
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_FEATURES)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -367,7 +367,7 @@ static void _up_assert(int errorcode)
|
||||
|
||||
void up_assert(const uint8_t *filename, int lineno)
|
||||
{
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_FEATURES)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
#endif
|
||||
board_autoled_on(LED_ASSERTION);
|
||||
|
||||
@@ -131,7 +131,7 @@ static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg)
|
||||
|
||||
void up_assert(const uint8_t *filename, int lineno)
|
||||
{
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_FEATURES)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -294,7 +294,7 @@ static void _up_assert(int errorcode)
|
||||
|
||||
void up_assert(const uint8_t *filename, int lineno)
|
||||
{
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_FEATURES)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg)
|
||||
|
||||
void up_assert(const uint8_t *filename, int lineno)
|
||||
{
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_FEATURES)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg)
|
||||
|
||||
void up_assert(const uint8_t *filename, int lineno)
|
||||
{
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_FEATURES)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -256,7 +256,7 @@ static void _up_assert(int errorcode)
|
||||
|
||||
void up_assert(const uint8_t *filename, int lineno)
|
||||
{
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_FEATURES)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ void up_assert(const uint8_t *filename, int lineno)
|
||||
void up_assert(void)
|
||||
#endif
|
||||
{
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_FEATURES)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
#endif
|
||||
|
||||
@@ -150,7 +150,7 @@ void up_assert(void)
|
||||
filename, lineno);
|
||||
#endif
|
||||
#else
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_FEATURES)
|
||||
_alert("Assertion failed: task: %s\n", rtcb->name);
|
||||
#else
|
||||
_alert("Assertion failed\n");
|
||||
|
||||
@@ -134,7 +134,7 @@ void up_assert(const uint8_t *filename, int lineno)
|
||||
void up_assert(void)
|
||||
#endif
|
||||
{
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
#if CONFIG_TASK_NAME_SIZE > 0 && defined(CONFIG_DEBUG_FEATURES)
|
||||
struct tcb_s *rtcb = this_task();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user