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 <svaldez@google.com>
Reviewed-by: Steven Valdez <svaldez@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
This commit is contained in:
David Benjamin 2017-05-24 18:04:18 -04:00 committed by CQ bot account: commit-bot@chromium.org
parent 59e1a81871
commit 806e18c022

View File

@ -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