pbarada commented on PR #3517:
URL: https://github.com/apache/nuttx-apps/pull/3517#issuecomment-4623598053

   > @pbarada Could you check this error? Thanks :-) 
https://github.com/apache/nuttx-apps/actions/runs/26888626961/job/79428686703#step:10:943
   > 
   > ```
   > Configuration/Tool: esp32-devkitc/crypto
   > hash.c: In function 'hash_main':
   > Error: hash.c:1081:3: error: 'huge_block' may be used uninitialized 
[-Werror=maybe-uninitialized]
   >  1081 |   free(huge_block);
   >       |   ^~~~~~~~~~~~~~~~
   > hash.c:913:18: note: 'huge_block' was declared here
   >   913 |   unsigned char *huge_block = NULL;
   >       |                  ^~~~~~~~~~
   > ```
   
   I'd love to "fix" it, but how can huge_block be uninitialized?  The compiler 
notes at line 913 that huge_block is forcibly initialized during declaration to 
NULL which makes any code path that gets to line 1081 have an initialized value 
for huge_block.
   May take a bit (need to install xtensa toolchain) and try some code 
rearrangements, but I believe that compiler warning is erroneously generated
   


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