mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-06 05:27:24 +00:00
Switched VS build to -W4, and fixed all resulting warnings.
Change-Id: I654217cbd01a3a449503d95753e19b672ec7ec23 Tested: on Windows, Linux
This commit is contained in:
@@ -34,8 +34,9 @@ const char *NewLine(int indent_step) {
|
||||
// Print (and its template specialization below for pointers) generate text
|
||||
// for a single FlatBuffer value into JSON format.
|
||||
// The general case for scalars:
|
||||
template<typename T> void Print(T val, Type type, int indent, int indent_step,
|
||||
StructDef * /*union_sd*/, std::string *_text) {
|
||||
template<typename T> void Print(T val, Type /*type*/, int /*indent*/,
|
||||
int /*indent_step*/, StructDef * /*union_sd*/,
|
||||
std::string *_text) {
|
||||
std::string &text = *_text;
|
||||
text += NumToString(val);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user