diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2017-02-23 14:52:23 +0100 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2017-02-24 09:21:59 +0100 |
commit | 01b76c2c5d4d786cfcb3cc048d9c0c47229a0aa0 (patch) | |
tree | c08be97dfeed4dd7bf71c109485b6f3d46180647 /include/internal | |
parent | 75c13e7830653eee4b61dd96ceea7c446c381316 (diff) |
Add -Wundef to --strict-warnings options.
Avoid a -Wundef warning in refcount.h
Avoid a -Wundef warning in o_str.c
Avoid a -Wundef warning in testutil.h
Include internal/cryptlib.h before openssl/stack.h
to avoid use of undefined symbol OPENSSL_API_COMPAT.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2712)
Diffstat (limited to 'include/internal')
-rw-r--r-- | include/internal/refcount.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/internal/refcount.h b/include/internal/refcount.h index b83e05c4cc..591561ffee 100644 --- a/include/internal/refcount.h +++ b/include/internal/refcount.h @@ -9,12 +9,14 @@ #ifndef HEADER_INTERNAL_REFCOUNT_H # define HEADER_INTERNAL_REFCOUNT_H -# if __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS__) +# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \ + && !defined(__STDC_NO_ATOMICS__) # include <stdatomic.h> # define HAVE_C11_ATOMICS # endif -# if defined(HAVE_C11_ATOMICS) && ATOMIC_INT_LOCK_FREE > 0 +# if defined(HAVE_C11_ATOMICS) && defined(ATOMIC_INT_LOCK_FREE) \ + && ATOMIC_INT_LOCK_FREE > 0 # define HAVE_ATOMICS 1 |