Add attribute to check if return value of certain functions is incorrectly

ignored.
This commit is contained in:
Dr. Stephen Henson
2009-09-23 16:27:10 +00:00
parent 7c75f462e8
commit acf20c7dbd
3 changed files with 45 additions and 33 deletions

View File

@@ -283,6 +283,12 @@ extern "C" {
# define OPENSSL_GLOBAL_REF(name) _shadow_##name
#endif
#ifdef DEBUG_UNUSED
#define __owur __attribute__((__warn_unused_result__))
#else
#define __owur
#endif
#ifdef __cplusplus
}
#endif