mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 12:05:50 +00:00
* Fix C/C++ Create<Type>Direct with sorted vectors If a struct has a key the vector has to be sorted. To sort the vector you can't use "const". * Changes due to code review * Improve code readability * Add generate of JSON schema to string to lib * option indent_step is supported * Remove unused variables * Fix break in test * Fix style to be consistent with rest of the code * Add option --no-warnings to inhibit all warnings * Fix order of member initialization * Add documentation for --no-warnings
This commit is contained in:
@@ -142,7 +142,10 @@ void Parser::Message(const std::string &msg) {
|
||||
error_ += ": " + msg;
|
||||
}
|
||||
|
||||
void Parser::Warning(const std::string &msg) { Message("warning: " + msg); }
|
||||
void Parser::Warning(const std::string &msg) {
|
||||
if (!opts.no_warnings)
|
||||
Message("warning: " + msg);
|
||||
}
|
||||
|
||||
CheckedError Parser::Error(const std::string &msg) {
|
||||
Message("error: " + msg);
|
||||
|
||||
Reference in New Issue
Block a user