aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/protobuf/patches/z_03_must_use_result.patch
blob: 96690d9a92d593533a18ffed76660be70416839b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- contrib/libs/protobuf/src/google/protobuf/message_lite.h	(index)
+++ contrib/libs/protobuf/src/google/protobuf/message_lite.h	(working tree)
@@ -39,6 +39,12 @@
 #ifndef GOOGLE_PROTOBUF_MESSAGE_LITE_H__
 #define GOOGLE_PROTOBUF_MESSAGE_LITE_H__
 
+#if defined(_MSC_VER)
+#define PROTOBUF_MUST_USE_RESULT
+#else
+#define PROTOBUF_MUST_USE_RESULT __attribute__((warn_unused_result))
+#endif
+
 #include <climits>
 #include <iosfwd>
 #include <string>