Skip to content

Commit 137a30a

Browse files
committed
fix mpy-cross
1 parent de5a9d7 commit 137a30a

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

py/makeqstrdata.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@
1111

1212
import collections
1313
import gettext
14+
import os.path
1415

15-
sys.path.append("../../tools/huffman")
16+
py = os.path.dirname(sys.argv[0])
17+
top = os.path.dirname(py)
18+
19+
sys.path.append(os.path.join(top, "tools/huffman"))
1620

1721
import huffman
1822

supervisor/shared/translate.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ char* decompress(const compressed_string_t* compressed, char* decompressed) {
7171
return decompressed;
7272
}
7373

74-
#pragma GCC diagnostic push
75-
#pragma GCC diagnostic ignored "-Wreturn-local-addr"
7674
inline __attribute__((always_inline)) const compressed_string_t* translate(const char* original) {
7775
#ifndef NO_QSTR
7876
#define QDEF(id, str)
@@ -83,4 +81,3 @@ inline __attribute__((always_inline)) const compressed_string_t* translate(const
8381
#endif
8482
return NULL;
8583
}
86-
#pragma GCC diagnostic pop

0 commit comments

Comments
 (0)