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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to