From acf20c7dbde56c0b7c076d5ee08d78a9aa135fea Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 23 Sep 2009 16:27:10 +0000 Subject: Add attribute to check if return value of certain functions is incorrectly ignored. --- e_os2.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'e_os2.h') 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 -- cgit v1.2.3