mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-24 06:11:47 +00:00
VS warning fixes.
Change-Id: I19662241d56560c064cff73dbebfb2a81d226934
This commit is contained in:
@@ -478,6 +478,7 @@ class CppGenerator : public BaseGenerator {
|
|||||||
: ev.name;
|
: ev.name;
|
||||||
} else {
|
} else {
|
||||||
assert(false);
|
assert(false);
|
||||||
|
return ev.name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ void OutputIdentifier(const std::string &name, const IDLOptions &opts,
|
|||||||
// for a single FlatBuffer value into JSON format.
|
// for a single FlatBuffer value into JSON format.
|
||||||
// The general case for scalars:
|
// The general case for scalars:
|
||||||
template<typename T> bool Print(T val, Type type, int /*indent*/,
|
template<typename T> bool Print(T val, Type type, int /*indent*/,
|
||||||
Type */*union_type*/,
|
Type * /*union_type*/,
|
||||||
const IDLOptions &opts,
|
const IDLOptions &opts,
|
||||||
std::string *_text) {
|
std::string *_text) {
|
||||||
std::string &text = *_text;
|
std::string &text = *_text;
|
||||||
|
|||||||
Reference in New Issue
Block a user