X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=e_os2.h;h=f5a5fa2bfb15d47bf6e8be98c65201f2ff3660d2;hp=e17527ab404b25660434dc24c3f3c8cc59c6fbea;hb=f99f41cf5cdca30e8c1559194e96017669f03861;hpb=e4317d2031759900d964e6f2ab03589b4317dfa2 diff --git a/e_os2.h b/e_os2.h index e17527ab40..f5a5fa2bfb 100644 --- a/e_os2.h +++ b/e_os2.h @@ -262,7 +262,7 @@ extern "C" { #define OPENSSL_EXTERN OPENSSL_IMPORT /* Macros to allow global variables to be reached through function calls when - required (if a shared library version requvres it, for example. + required (if a shared library version requires it, for example. The way it's done allows definitions like this: // in foobar.c @@ -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