Adding GRPC_MUST_USE_RESULT

pull/1969/head
Nicolas "Pixel" Noble 10 years ago committed by Craig Tiller
parent 50a7a68ca2
commit e850f3caad
  1. 8
      include/grpc/support/port_platform.h

@ -266,4 +266,12 @@ typedef uintptr_t gpr_uintptr;
power of two */
#define GPR_MAX_ALIGNMENT 16
#ifndef GRPC_MUST_USE_RESULT
#ifdef __GNUC__
#define GRPC_MUST_USE_RESULT __attribute__ ((warn_unused_result))
#else
#define GRPC_MUST_USE_RESULT
#endif
#endif
#endif /* GRPC_SUPPORT_PORT_PLATFORM_H */

Loading…
Cancel
Save