From c6ae9b562bc14780c1b4022e1851a9a843e5e145 Mon Sep 17 00:00:00 2001 From: Yuchen Zeng Date: Thu, 4 Jan 2018 16:29:06 -0800 Subject: Silence openssl 1.1.0 warnings --- include/grpc/impl/codegen/port_platform.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/grpc/impl/codegen/port_platform.h') diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codegen/port_platform.h index f4bc3eb3e0..1c03197db5 100644 --- a/include/grpc/impl/codegen/port_platform.h +++ b/include/grpc/impl/codegen/port_platform.h @@ -421,6 +421,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) \ -- cgit v1.2.3