WARN_UNUSED_REZULT
This commit is contained in:
parent
c528da857f
commit
33eb4302c4
@ -123,6 +123,9 @@ You can even embed it into macro in header (see kprint.h)
|
|||||||
CODE; \
|
CODE; \
|
||||||
PRAGMA_WARNING_POP
|
PRAGMA_WARNING_POP
|
||||||
|
|
||||||
|
/// gcc throws warning on unused function return value
|
||||||
|
#define WARN_UNUSED_REZULT __attribute__((warn_unused_result))
|
||||||
|
|
||||||
#if __cplusplus
|
#if __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
Loading…
Reference in New Issue
Block a user