]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-111485: Silence warnings in Python/executor_cases.c.h (#111619)
authorGuido van Rossum <guido@python.org>
Wed, 1 Nov 2023 21:24:52 +0000 (14:24 -0700)
committerGitHub <noreply@github.com>
Wed, 1 Nov 2023 21:24:52 +0000 (14:24 -0700)
Python/bytecodes.c
Python/executor_cases.c.h
Python/generated_cases.c.h

index 98af114a72fa602006a094386798f5554aea401a..9aca82a80ce839f595872fecf3f8c1705b9ecd7f 100644 (file)
@@ -1216,6 +1216,8 @@ dummy_func(
             STAT_INC(UNPACK_SEQUENCE, deferred);
             DECREMENT_ADAPTIVE_COUNTER(this_instr[1].cache);
             #endif  /* ENABLE_SPECIALIZATION */
+            (void)seq;
+            (void)counter;
         }
 
         op(_UNPACK_SEQUENCE, (seq -- unused[oparg])) {
index fdf3e4b01a88b3fac5a31712bb16977bb0decfdf..903fc40595ceb7f1e4001bb6255bb48cedf94366 100644 (file)
             STAT_INC(UNPACK_SEQUENCE, deferred);
             DECREMENT_ADAPTIVE_COUNTER(this_instr[1].cache);
             #endif  /* ENABLE_SPECIALIZATION */
+            (void)seq;
+            (void)counter;
             break;
         }
 
index e4b328fee99738a4b2421c20ca0bada5407e5098..dc62d797ae7c3b495431f872eae977afdc1e8f4a 100644 (file)
                 STAT_INC(UNPACK_SEQUENCE, deferred);
                 DECREMENT_ADAPTIVE_COUNTER(this_instr[1].cache);
                 #endif  /* ENABLE_SPECIALIZATION */
+                (void)seq;
+                (void)counter;
             }
             // _UNPACK_SEQUENCE
             {