mirror of
https://github.com/nlohmann/json.git
synced 2026-10-24 23:08:56 +00:00
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::discarded:
|
||||
default:
|
||||
// false positive: the parser's frame stack points into its own storage (never null)
|
||||
// @infer-ignore NULLPTR_DEREFERENCE
|
||||
sax.null();
|
||||
break;
|
||||
}
|
||||
|
||||
Generated
+2
@@ -6152,6 +6152,8 @@ BasicJsonType materialize(const document_data& d, const node* n)
|
||||
case value_t::binary:
|
||||
case value_t::discarded:
|
||||
default:
|
||||
// false positive: the parser's frame stack points into its own storage (never null)
|
||||
// @infer-ignore NULLPTR_DEREFERENCE
|
||||
sax.null();
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user