From 806e18c022bd137326f5c19e2b0c7f466e93ed54 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Wed, 24 May 2017 18:04:18 -0400 Subject: [PATCH] Define OPENSSL_UNUSED for __clang__ as well. Windows Clang needs this in the stack case too, but it doesn't define __GNUC__ since it's emulating MSVC. Change-Id: I646550ca95240e80822adddc2b53c3b58c2ec4a6 Reviewed-on: https://boringssl-review.googlesource.com/16644 Commit-Queue: Steven Valdez Reviewed-by: Steven Valdez CQ-Verified: CQ bot account: commit-bot@chromium.org --- include/openssl/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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