Skip to content

Commit

Permalink
Fix latest pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gezalore committed Sep 19, 2024
1 parent dd95e03 commit 3676768
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions bin/verilator_profcfunc
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ def profcfunc(filename):

design_width = 1
for func, func_item in vfuncs.items():
if design_width < len(func_item['design']):
design_width = len(func_item['design'])
design_width = max(design_width, len(func_item['design']))

print("Verilog code profile:")
print(" These are split into three categories:")
Expand Down
4 changes: 4 additions & 0 deletions src/astgen
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,10 @@ def write_type_tests(prefix, nodeList):
base = "DfgVertex"
variable = "vtxp"
enum = "VDfgType"
else:
base = None
variable = None
enum = None
for node in nodeList:
fh.write(
"template<> inline bool {b}::privateTypeTest<{p}{n}>(const {b}* {v}) {{ ".format(
Expand Down
2 changes: 1 addition & 1 deletion src/bisonpre
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def process():
unlink_outputs()

bison_version_check()
supports_report = Bison_Version >= 2.3
supports_report = Bison_Version >= 2.3 # pylint: disable=possibly-used-before-assignment
# supports_counter_examples = Bison_Version >= 3.8

clean_input(Args.input, tmp_prefix() + ".y")
Expand Down

0 comments on commit 3676768

Please sign in to comment.