commit | acf20c7dbde56c0b7c076d5ee08d78a9aa135fea | [log] [tgz] |
---|---|---|
author | Dr. Stephen Henson <steve@openssl.org> | Wed Sep 23 16:27:10 2009 +0000 |
committer | Dr. Stephen Henson <steve@openssl.org> | Wed Sep 23 16:27:10 2009 +0000 |
tree | e81b8d96c7befd5f3b841f385d987bf40bba52c8 | |
parent | 7c75f462e8754c0cf94a0a3678c47fc10c78a314 [diff] [blame] |
Add attribute to check if return value of certain functions is incorrectly ignored.
diff --git a/e_os2.h b/e_os2.h index 4c785c6..f5a5fa2 100644 --- a/e_os2.h +++ b/e_os2.h
@@ -283,6 +283,12 @@ # define OPENSSL_GLOBAL_REF(name) _shadow_##name #endif +#ifdef DEBUG_UNUSED +#define __owur __attribute__((__warn_unused_result__)) +#else +#define __owur +#endif + #ifdef __cplusplus } #endif