z_03_must_use_result.patch 452 B

123456789101112131415
  1. --- contrib/libs/protobuf/src/google/protobuf/message_lite.h (index)
  2. +++ contrib/libs/protobuf/src/google/protobuf/message_lite.h (working tree)
  3. @@ -39,6 +39,12 @@
  4. #ifndef GOOGLE_PROTOBUF_MESSAGE_LITE_H__
  5. #define GOOGLE_PROTOBUF_MESSAGE_LITE_H__
  6. +#if defined(_MSC_VER)
  7. +#define PROTOBUF_MUST_USE_RESULT
  8. +#else
  9. +#define PROTOBUF_MUST_USE_RESULT __attribute__((warn_unused_result))
  10. +#endif
  11. +
  12. #include <climits>
  13. #include <iosfwd>
  14. #include <string>