Skip to content

Commit

Permalink
add maybe_unused (static_cast<void>()) workaround for attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
okdshin committed Oct 9, 2018
1 parent 9eee2ab commit 55aa262
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def make_completion_code(op_name,

attribute_definition = '''
auto {attr_name} = get<{attr_type}>(node.attribute_table.at("{attr_name}"));
static_cast<void>({attr_name}); // maybe unused
'''.format(attr_name=attr_name, attr_type=attr_type)
attribute_definition_list.append(attribute_definition)
# end for
Expand Down

0 comments on commit 55aa262

Please sign in to comment.