anchao opened a new pull request, #16167:
URL: https://github.com/apache/nuttx/pull/16167
## Summary
nuttx/compiler: add support of deprecated attribute
Warning about usage of deprecated features.
since __deprecated__ is a compiler built-in macro, so we define the
deprecated with "__deprecated"
Break log:
```
| /usr/include/x86_64-linux-gnu/sys/cdefs.h:355:65: error: missing ')' after
"__has_attribute"
| 355 | #if __GNUC_PREREQ (3,2) || __glibc_has_attribute (__deprecated__)
| | ^
| /usr/include/x86_64-linux-gnu/sys/cdefs.h:355:51: error: missing binary
operator before token "("
| 355 | #if __GNUC_PREREQ (3,2) || __glibc_has_attribute (__deprecated__)
| | ^~~~~~~~~~~~~~
```
Signed-off-by: chao an <[email protected]>
## 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]