fxysunshine commented on code in PR #18305:
URL: https://github.com/apache/nuttx/pull/18305#discussion_r2758920895


##########
sched/misc/assert.c:
##########
@@ -360,29 +343,41 @@ static void dump_task(FAR struct tcb_s *tcb, FAR void 
*arg)
   size_t stack_filled = 0;
   size_t stack_used;
 #endif
+  static FAR const char * const g_policy[4] =

Review Comment:
   MISRA C:2012 Rule 8.9 is an advisory rule.  But to meet the ISO 26262 
requirements for high cohesion and low coupling for functions,  make sure that 
variables are visible within the smallest scope necessary, and clearly defined 
how variables and functions relate to each other to make the code easier to 
read. So MISRA Rule 8.9 to be applied.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to