include/linux/compiler-gcc4.h
#define __must_check __attribute__((warn_unused_result))
#define __must_check __attribute__((warn_unused_result))
__must_check函数是指调用函数一定要处理该函数的返回值,否则编译器会给出警告。
定义一个必须检查返回值得函数:
int pop(_Type& data) __must_check {
....
}