anchao commented on code in PR #18282:
URL: https://github.com/apache/nuttx/pull/18282#discussion_r2766868117


##########
libs/libc/misc/lib_crc16ccitt.c:
##########
@@ -99,10 +61,45 @@ uint16_t crc16ccittpart(FAR const uint8_t *src, size_t len,
 {
   size_t i;
   uint16_t v = crc16val;
+  static const uint16_t g_crc16_tab[256] =

Review Comment:
   So how do we solve this kind of problem? The correct approach is to 
encapsulate the variables into functions and access them through those 
functions.



-- 
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