Silence an Infer false positive in json_view materialize (#5905)
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
1 parent
9c50bdd140
commit
01139dc192
2 files changed
+4
No files matched your search
@@ -143,6 +143,8 @@ BasicJsonType materialize(const document_data& d, const node* n)
|
|||||||
case value_t::binary:
|
case value_t::binary:
|
||||||
case value_t::discarded:
|
case value_t::discarded:
|
||||||
default:
|
default:
|
||||||
|
// false positive: the parser's frame stack points into its own storage (never null)
|
||||||
|
// @infer-ignore NULLPTR_DEREFERENCE
|
||||||
sax.null();
|
sax.null();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+2
@@ -6152,6 +6152,8 @@ BasicJsonType materialize(const document_data& d, const node* n)
|
|||||||
case value_t::binary:
|
case value_t::binary:
|
||||||
case value_t::discarded:
|
case value_t::discarded:
|
||||||
default:
|
default:
|
||||||
|
// false positive: the parser's frame stack points into its own storage (never null)
|
||||||
|
// @infer-ignore NULLPTR_DEREFERENCE
|
||||||
sax.null();
|
sax.null();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user