-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interpreters/python: Avoid warnings that could be treated as errors
This commit disables some warnings when building CPython to avoid CI failing when `EXTRAFLAGS="-Wno-cpp -Werror"` is set.
- Loading branch information
Showing
13 changed files
with
99 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
interpreters/python/patch/0001-workaround-newlib-resource.h-limitations.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
interpreters/python/patch/0002-fix-various-uint32_t-unsigned-int-type-mismatch-issu.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
interpreters/python/patch/0004-recognize-nuttx-as-a-supported-OS.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
interpreters/python/patch/0005-gh-122907-Fix-Builds-Without-HAVE_DYNAMIC_LOADING-Se.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
interpreters/python/patch/0006-change-var-name-to-avoid-conflict-with-nuttx-unused_.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
interpreters/python/patch/0009-include-nuttx-sys-select-header-to-define-FD_SETSIZE.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 29 additions & 7 deletions
36
interpreters/python/patch/0010-check-for-the-d_ino-member-of-the-structure-dirent.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
interpreters/python/patch/0011-avoid-redefinition-warning-if-UNUSED-is-already-defi.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From b82ab44e498a9e9bcdcbbfa1d6161023d8ea8c5b Mon Sep 17 00:00:00 2001 | ||
From: Tiago Medicci <tiago.medicci@espressif.com> | ||
Date: Tue, 10 Dec 2024 12:03:47 -0300 | ||
Subject: [PATCH 11/11] avoid redefinition warning if UNUSED is already defined | ||
|
||
--- | ||
Parser/pegen.h | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/Parser/pegen.h b/Parser/pegen.h | ||
index 32c64e7774b..42574456f23 100644 | ||
--- a/Parser/pegen.h | ||
+++ b/Parser/pegen.h | ||
@@ -250,7 +250,9 @@ void * _PyPegen_seq_last_item(asdl_seq *seq); | ||
#define PyPegen_last_item(seq, type) ((type)_PyPegen_seq_last_item((asdl_seq*)seq)) | ||
void * _PyPegen_seq_first_item(asdl_seq *seq); | ||
#define PyPegen_first_item(seq, type) ((type)_PyPegen_seq_first_item((asdl_seq*)seq)) | ||
+#ifndef UNUSED | ||
#define UNUSED(expr) do { (void)(expr); } while (0) | ||
+#endif | ||
#define EXTRA_EXPR(head, tail) head->lineno, (head)->col_offset, (tail)->end_lineno, (tail)->end_col_offset, p->arena | ||
#define EXTRA _start_lineno, _start_col_offset, _end_lineno, _end_col_offset, p->arena | ||
PyObject *_PyPegen_new_type_comment(Parser *, const char *); | ||
-- | ||
2.46.1 | ||
|