We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a4e9e6 commit 82c274eCopy full SHA for 82c274e
Tools/peg_generator/pegen/c_generator.py
@@ -694,8 +694,8 @@ def visit_Alt(
694
if v == "_cut_var":
695
v += " = 0" # cut_var must be initialized
696
self.print(f"{var_type}{v};")
697
- if v == "_opt_var":
698
- self.print("UNUSED(_opt_var); // Silence compiler warnings")
+ if v.startswith("_opt_var"):
+ self.print(f"UNUSED({v}); // Silence compiler warnings")
699
700
with self.local_variable_context():
701
if is_loop:
0 commit comments