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:
parent
59e1a81871
commit
806e18c022
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user