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

   
   ## Summary
   
   compiler/diagnostic: Replace all #warning to #pragma message
   
   Since some compilers(MSVC) do not support the syntax of "#warning", use 
"#pragma message" to enhance portability
   
   D:\archer\code\nuttx\net\can\can_sockif.c(680,1): fatal  error C1021: 
invalid preprocessor command
   
   Reference:
   
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1021?view=msvc-170
   
   Signed-off-by: chao an <[email protected]>
   
   
   ## Impact
   
   N/A
   
   ## Testing
   
   cmake + visual studio 2022


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