We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc8799d commit 21f55e2Copy full SHA for 21f55e2
src/flatc.cpp
@@ -768,9 +768,8 @@ void FlatCompiler::ValidateOptions(const FlatCOptions &options) {
768
769
if (!options.filenames.size()) Error("missing input files", false, true);
770
771
- if (opts.proto_mode) {
772
- if (options.any_generator)
773
- Error("cannot generate code directly from .proto files", true);
+ if (opts.proto_mode && options.any_generator) {
+ Warn("cannot generate code directly from .proto files", true);
774
} else if (!options.any_generator && options.conform_to_schema.empty() &&
775
options.annotate_schema.empty()) {
776
Error("no options: specify at least one generator.", true);
0 commit comments