mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 20:15:34 +00:00
Add logging of warnings from the flatc compiler (#5289)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
d07a3d2f4c
commit
98b9b5a933
@@ -30,8 +30,10 @@ void FlatCompiler::ParseFile(
|
||||
include_directories.push_back(local_include_directory.c_str());
|
||||
include_directories.push_back(nullptr);
|
||||
if (!parser.Parse(contents.c_str(), &include_directories[0],
|
||||
filename.c_str()))
|
||||
filename.c_str())) {
|
||||
Error(parser.error_, false, false);
|
||||
}
|
||||
if (!parser.error_.empty()) { Warn(parser.error_, false); }
|
||||
include_directories.pop_back();
|
||||
include_directories.pop_back();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user