diff --git a/include/openssl/base.h b/include/openssl/base.h index 8162db30..f00c5638 100644 --- a/include/openssl/base.h +++ b/include/openssl/base.h @@ -197,7 +197,7 @@ extern "C" { #define OPENSSL_MSVC_PRAGMA(arg) #endif -#if defined(__GNUC__) +#if defined(__GNUC__) || defined(__clang__) #define OPENSSL_UNUSED __attribute__((unused)) #else #define OPENSSL_UNUSED