aboutsummaryrefslogtreecommitdiff
path: root/include/flatbuffers/idl.h
diff options
context:
space:
mode:
authorVladimir Glavnyy <31897320+vglavnyy@users.noreply.github.com>2019-01-18 00:49:27 +0700
committerWouter van Oortmerssen <aardappel@gmail.com>2019-01-17 09:49:27 -0800
commitd44931656ab5801db260236650701812f4a7eb18 (patch)
tree0682071a8530ae75230fbdf307ab4c051eebde4b /include/flatbuffers/idl.h
parentbbfd12eb11a878a740d81f56fe8b426197a8b4f3 (diff)
downloadflatbuffers-d44931656ab5801db260236650701812f4a7eb18.tar.gz
Fix high certainty warnings from PVS-studio (#5115)
* Fix high certainty warnings from PVS-studio - Introduced FLATBUFFERS_ATTRIBUTE macro to use [[attribute]] if modern C++ compiler used * Update the note about __cplusplus usage in the MSVC
Diffstat (limited to 'include/flatbuffers/idl.h')
-rw-r--r--include/flatbuffers/idl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/flatbuffers/idl.h b/include/flatbuffers/idl.h
index 00e6af5e..e48edb01 100644
--- a/include/flatbuffers/idl.h
+++ b/include/flatbuffers/idl.h
@@ -326,7 +326,7 @@ inline size_t InlineAlignment(const Type &type) {
struct EnumVal {
EnumVal(const std::string &_name, int64_t _val) : name(_name), value(_val) {}
- EnumVal(){};
+ EnumVal() : value(0){};
Offset<reflection::EnumVal> Serialize(FlatBufferBuilder *builder, const Parser &parser) const;
@@ -672,7 +672,7 @@ class Parser : public ParserState {
bool Deserialize(const reflection::Schema* schema);
Type* DeserializeType(const reflection::Type* type);
-
+
// Checks that the schema represented by this parser is a safe evolution
// of the schema provided. Returns non-empty error on any problems.
std::string ConformTo(const Parser &base);