[linux笔记]__must_check含义及出处

 

include/linux/compiler-gcc4.h
#define __must_check            __attribute__((warn_unused_result))
__must_check函数是指调用函数一定要处理该函数的返回值,否则编译器会给出警告
Logo

更多推荐