summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWes McKinney <wesm@users.noreply.github.com>2019-08-19 19:49:37 -0500
committerWouter van Oortmerssen <aardappel@gmail.com>2019-08-19 17:49:37 -0700
commitc1058a903bc908cc6d703512ed291e580bac09e0 (patch)
treeda4e100e2eaeea9f06584337ed79e6dbc8f65d6d /src
parent30304493487d70b0eb6b8ebb7630feb32398dc97 (diff)
downloadflatbuffers-c1058a903bc908cc6d703512ed291e580bac09e0.tar.gz
flatbuffers-c1058a903bc908cc6d703512ed291e580bac09e0.tar.bz2
flatbuffers-c1058a903bc908cc6d703512ed291e580bac09e0.zip
C++ IDL generation adds superfluous semicolon in GenTablePost, causing (#5483)
-Wextra-semi-stmt warning when building with Clang 8.0.0. Update generated files for testing
Diffstat (limited to 'src')
-rw-r--r--src/idl_gen_cpp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idl_gen_cpp.cpp b/src/idl_gen_cpp.cpp
index b667ea43..1efb057c 100644
--- a/src/idl_gen_cpp.cpp
+++ b/src/idl_gen_cpp.cpp
@@ -2607,7 +2607,7 @@ class CppGenerator : public BaseGenerator {
code_.SetValue("FIELD_NAME", Name(field));
auto prefix = " { auto _e = {{FIELD_NAME}}(); ";
auto check = IsScalar(field.value.type.base_type) ? "" : "if (_e) ";
- auto postfix = " };";
+ auto postfix = " }";
code_ += std::string(prefix) + check + statement + postfix;
}
code_ += "}";