You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/06/06 12:13:20 UTC
[GitHub] [incubator-brpc] baiwfg2 commented on issue #1693: compile failed with error "error: macro "__has_attribute" requires an identifier"
baiwfg2 commented on issue #1693:
URL: https://github.com/apache/incubator-brpc/issues/1693#issuecomment-1147381819
> 有一个trick的方法,可以把`-D__const__=` 改成 `-D__const__=__unused__` 找了半天似乎就这个unused的attribute影响最小: <img alt="60f18635e94211fdb3f3c1ef3e1a7b43" width="1132" src="https://user-images.githubusercontent.com/3894631/162140725-d0cea1d6-3e71-4f75-8423-da50195c6e76.png">
按照这个做法后,出现
```
In file included from /data/incubator-brpc/bld/incubator-brpc-1.1.0/src/bthread/errno.h:26,
from /data/incubator-brpc/bld/incubator-brpc-1.1.0/src/brpc/log.h:22,
from /data/incubator-brpc/bld/incubator-brpc-1.1.0/src/brpc/ts.cpp:37:
/data/incubator-brpc/bld/incubator-brpc-1.1.0/src/butil/errno.h:25: warning: "__const__" redefined
```
应该没关系吧
--
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: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org