Skip to content

Commit 948b2d3

Browse files
authored
Fix handling of mbz attributes (#56)
Signed-off-by: Brandon Yates <[email protected]>
1 parent 38379a6 commit 948b2d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/parse_specs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,10 +681,10 @@ def _append(lst, key, val):
681681

682682
# generate results based on parameters
683683
for item in obj['params']:
684-
if not param_traits.is_optional(item):
684+
if not param_traits.is_optional(item) and not param_traits.is_mbz(item):
685685
typename = type_traits.base(item['type'])
686686

687-
if type_traits.is_pointer(item['type']) and not param_traits.is_mbz(item):
687+
if type_traits.is_pointer(item['type']):
688688
_append(rets, "$X_RESULT_ERROR_INVALID_NULL_POINTER", "`nullptr == %s`"%item['name'])
689689

690690
elif type_traits.is_handle(item['type']) and not type_traits.is_ipc_handle(item['type']):

0 commit comments

Comments
 (0)