Add attribute to check if return value of certain functions is incorrectly
[openssl.git] / e_os2.h
diff --git a/e_os2.h b/e_os2.h
index 4c785c62cf7a7c1aa7d41f0921b4f82ec85f9668..f5a5fa2bfb15d47bf6e8be98c65201f2ff3660d2 100644 (file)
--- 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