anchao opened a new pull request, #7414:
URL: https://github.com/apache/incubator-nuttx/pull/7414

   ## Summary
   
   arch/armv6-m: fix compile error on LLVM clang
   
   ```
   armv6-m/arm_exception.S:139:2: error: invalid instruction, any one of the 
following would fix this:
    sub r1, #(4 * (10))
    ^
   armv6-m/arm_exception.S:139:2: note: instruction requires: thumb2
    sub r1, #(4 * (10))
    ^
   armv6-m/arm_exception.S:139:10: note: invalid operand for instruction
    sub r1, #(4 * (10))
            ^
   armv6-m/arm_exception.S:139:2: note: no flag-preserving variant of this 
instruction available
    sub r1, #(4 * (10))
    ^
   armv6-m/arm_exception.S:139:10: note: operand must be a register in range 
[r0, r7]
    sub r1, #(4 * (10))
            ^
   ```
   
   
   ```
   bringup.c:125:18: warning: variable 'ret' is uninitialized when used here 
[-Wuninitialized]
             return ret;
                    ^~~
   bringup.c:73:10: note: initialize the variable 'ret' to silence this warning
     int ret;
            ^
             = 0
   ```
   
   
   ## Impact
   
   N/A
   
   ## Testing
   
   CI check


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to