summaryrefslogtreecommitdiffstats
path: root/e_os2.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-09-23 18:27:10 +0200
committerDr. Stephen Henson <steve@openssl.org>2009-09-23 18:27:10 +0200
commitacf20c7dbde56c0b7c076d5ee08d78a9aa135fea (patch)
treee81b8d96c7befd5f3b841f385d987bf40bba52c8 /e_os2.h
parentPR: 2050 (diff)
downloadopenssl-acf20c7dbde56c0b7c076d5ee08d78a9aa135fea.tar.xz
openssl-acf20c7dbde56c0b7c076d5ee08d78a9aa135fea.zip
Add attribute to check if return value of certain functions is incorrectly
ignored.
Diffstat (limited to 'e_os2.h')
-rw-r--r--e_os2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/e_os2.h b/e_os2.h
index 4c785c62cf..f5a5fa2bfb 100644
--- a/e_os2.h
+++ b/e_os2.h
@@ -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