diff options
author | Yuchen Zeng <y-zeng@users.noreply.github.com> | 2018-01-08 17:19:51 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-08 17:19:51 -0800 |
commit | 32d077e7e18ea0164aaa78cf350a00f429cbadeb (patch) | |
tree | 64fcee5fb28598e82c036748eafc8ba45fc01f4a /include | |
parent | e3756b9cf1ee583688bbef3795900422cc1451d5 (diff) | |
parent | c6ae9b562bc14780c1b4022e1851a9a843e5e145 (diff) |
Merge pull request #13922 from y-zeng/openssl_1_1_0
Silence openssl 1.1.0 warnings
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc/impl/codegen/port_platform.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codegen/port_platform.h index e6bee73ef1..ae1f951b49 100644 --- a/include/grpc/impl/codegen/port_platform.h +++ b/include/grpc/impl/codegen/port_platform.h @@ -434,6 +434,14 @@ typedef unsigned __int64 uint64_t; #endif #endif +#ifndef GRPC_UNUSED +#if defined(__GNUC__) && !defined(__MINGW32__) +#define GRPC_UNUSED __attribute__((unused)) +#else +#define GRPC_UNUSED +#endif +#endif + #ifndef GPR_PRINT_FORMAT_CHECK #ifdef __GNUC__ #define GPR_PRINT_FORMAT_CHECK(FORMAT_STR, ARGS) \ |