songdongsheng commented on issue #1693:
URL: 
https://github.com/apache/incubator-brpc/issues/1693#issuecomment-1149540326

   > 1. 修改pthread_self()等函数的声明。但是,这个问题在于要改很多基础库。
   
   不是很理解仅仅删除这个编译优化提示`__attribute__ ((const))`为什么要改其它基础库?
   
   ARM Compiler 的文档说得更清楚,只有函数的返回值只依赖其输入参数时才可以使用`__attribute__ ((const))`:
   
https://developer.arm.com/documentation/100067/0612/Compiler-specific-Function--Variable--and-Type-Attributes/--attribute----const---function-attribute
   


-- 
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-unsubscr...@brpc.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to