You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/08/24 05:54:42 UTC

[GitHub] [incubator-nuttx] anchao opened a new pull request, #6909: libs: fix visual studio Compiler Error C2124

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

   ## Summary
   
   libs: fix visual studio Compiler Error C2124
   
   `D:\code\incubator-nuttx\libs\libc\stdlib\lib_strtof.c(76,1): error C2124: divide or mod by zero`
   
   Windows MSVC restrictions, MSVC doesn't allow division through a
   zero literal, but allows it through non-const variable set to zero
   
   Reference:
   https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/compiler-error-c2124?view=msvc-170
   
   Signed-off-by: chao.an <an...@xiaomi.com>
   
   ## Impact
   
   N/A
   
   ## Testing
   
   visual studio + cmake


-- 
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-unsubscribe@nuttx.apache.org

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


[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #6909: libs: fix visual studio Compiler Error C2124

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged PR #6909:
URL: https://github.com/apache/incubator-nuttx/pull/6909


-- 
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-unsubscribe@nuttx.apache.org

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