From 39fe75eed3102bc000e467c374e25e904419d893 Mon Sep 17 00:00:00 2001 From: Mario Emmenlauer <mario@emmenlauer.de> Date: Tue, 13 Dec 2016 22:35:01 +0100 Subject: [PATCH] include/grpc/impl/codegen/port_platform.h: disable warn_unused_result on MINGW32 platform --- include/grpc/impl/codegen/port_platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codegen/port_platform.h index cd989d664c..4633fa12e8 100644 --- a/include/grpc/impl/codegen/port_platform.h +++ b/include/grpc/impl/codegen/port_platform.h @@ -361,7 +361,7 @@ typedef unsigned __int64 uint64_t; #define GPR_MAX_ALIGNMENT 16 #ifndef GRPC_MUST_USE_RESULT -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__MINGW32__) #define GRPC_MUST_USE_RESULT __attribute__((warn_unused_result)) #else #define GRPC_MUST_USE_RESULT -- GitLab