WARN_UNUSED_REZULT

This commit is contained in:
timerix 2023-03-08 17:17:31 +06:00
parent c528da857f
commit 33eb4302c4

View File

@ -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