aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/impl/codegen/port_platform.h
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2018-01-04 16:29:06 -0800
committerGravatar Yuchen Zeng <zyc@google.com>2018-01-04 16:29:06 -0800
commitc6ae9b562bc14780c1b4022e1851a9a843e5e145 (patch)
tree71a23d4272deb246b5a5bc7929fb3b8f1f33db71 /include/grpc/impl/codegen/port_platform.h
parentd9c69e1963288ff6fafb930ce55ea612808931f0 (diff)
Silence openssl 1.1.0 warnings
Diffstat (limited to 'include/grpc/impl/codegen/port_platform.h')
-rw-r--r--include/grpc/impl/codegen/port_platform.h8
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 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) \