You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2020/11/22 11:28:56 UTC

[GitHub] [mynewt-core] kasjer opened a new pull request #2417: baselibc: Always define static_assert for C

kasjer opened a new pull request #2417:
URL: https://github.com/apache/mynewt-core/pull/2417


   Currently **static_assert** is only defined when
   ```__STDC_VERSION__ >= 201112L```.
   
   Static asserts present in header files should
   use static_assert to be able to build with C++.
   
   For non C++ build it should map **_Static_assert**.
   While _Static_assert is C11 feature it can be
   present for older compilers.
   
   This drops checking for compiler version,
   if compiler does not support _Static_assert it
   will fail anyway.
   
   This resolves #2040 


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

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



[GitHub] [mynewt-core] apache-mynewt-bot commented on pull request #2417: baselibc: Always define static_assert for C

Posted by GitBox <gi...@apache.org>.
apache-mynewt-bot commented on pull request #2417:
URL: https://github.com/apache/mynewt-core/pull/2417#issuecomment-731733534


   
   <!-- style-bot -->
   
   ## Style check summary
   
   #### No suggestions at this time!
   


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

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



[GitHub] [mynewt-core] kasjer merged pull request #2417: baselibc: Always define static_assert for C

Posted by GitBox <gi...@apache.org>.
kasjer merged pull request #2417:
URL: https://github.com/apache/mynewt-core/pull/2417


   


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

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