Mailing List Archive

gh-117680: Fix msvc warning in instruction_sequence.c (#118326)
https://github.com/python/cpython/commit/63add11704078390909a485b57a7de6a0358fc2b
commit: 63add11704078390909a485b57a7de6a0358fc2b
branch: main
author: neonene <53406459+neonene@users.noreply.github.com>
committer: iritkatriel <1055913+iritkatriel@users.noreply.github.com>
date: 2024-04-26T17:20:30+01:00
summary:

gh-117680: Fix msvc warning in instruction_sequence.c (#118326)

files:
M Python/instruction_sequence.c

diff --git a/Python/instruction_sequence.c b/Python/instruction_sequence.c
index 3a254b2c9def4e..a3f85f754d71bb 100644
--- a/Python/instruction_sequence.c
+++ b/Python/instruction_sequence.c
@@ -20,6 +20,8 @@ typedef _Py_SourceLocation location;
#define INITIAL_INSTR_SEQUENCE_SIZE 100
#define INITIAL_INSTR_SEQUENCE_LABELS_MAP_SIZE 10

+#include "clinic/instruction_sequence.c.h"
+
#undef SUCCESS
#undef ERROR
#define SUCCESS 0
@@ -172,8 +174,6 @@ class InstructionSequenceType "_PyInstructionSequence *" "&_PyInstructionSequenc
[clinic start generated code]*/
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=589963e07480390f]*/

-#include "clinic/instruction_sequence.c.h"
-
static _PyInstructionSequence*
inst_seq_create(void)
{

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-leave@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: list-python-checkins@lists.gossamer-threads.com