mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Merge remote-tracking branch 'origin/fastpath' into topic/bernhard/sqlite
This commit is contained in:
commit
365c2b0917
1 changed files with 4 additions and 3 deletions
|
@ -801,15 +801,16 @@ bool Manager::UnrollRecordType(vector<Field*> *fields, const RecordType *rec,
|
||||||
if ( allow_file_func )
|
if ( allow_file_func )
|
||||||
{
|
{
|
||||||
if ( ( rec->FieldType(i)->Tag() == TYPE_FILE ||
|
if ( ( rec->FieldType(i)->Tag() == TYPE_FILE ||
|
||||||
rec->FieldType(i)->Tag() == TYPE_FUNC ) &&
|
rec->FieldType(i)->Tag() == TYPE_FUNC ||
|
||||||
|
rec->FieldType(i)->Tag() == TYPE_OPAQUE ) &&
|
||||||
rec->FieldDecl(i)->FindAttr(ATTR_OPTIONAL) )
|
rec->FieldDecl(i)->FindAttr(ATTR_OPTIONAL) )
|
||||||
{
|
{
|
||||||
reporter->Info("Encountered incompatible type \"%s\" in table definition for ReaderFrontend. Ignoring field.", type_name(rec->FieldType(i)->Tag()));
|
reporter->Info("Encountered incompatible type \"%s\" in type definition for ReaderFrontend. Ignoring optional field.", type_name(rec->FieldType(i)->Tag()));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
reporter->Error("Incompatible type \"%s\" in table definition for ReaderFrontend", type_name(rec->FieldType(i)->Tag()));
|
reporter->Error("Incompatible type \"%s\" in type definition for ReaderFrontend", type_name(rec->FieldType(i)->Tag()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue