summaryrefslogtreecommitdiff
path: root/supervisor
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2018-08-16 13:34:12 -0700
committerScott Shawcroft <scott@tannewt.org>2018-08-16 17:41:35 -0700
commit2cd166b57370ab4877ec2d9666225faeac6127ce (patch)
tree645f851b1121ce7f52f4b4cf894844e965c4584d /supervisor
parent137a30ad75803255615a422c15ebcd35fbd31130 (diff)
Fix esp and samd
Diffstat (limited to 'supervisor')
-rw-r--r--supervisor/shared/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/supervisor/shared/translate.c b/supervisor/shared/translate.c
index 487ae1997..1fa361c15 100644
--- a/supervisor/shared/translate.c
+++ b/supervisor/shared/translate.c
@@ -74,7 +74,7 @@ char* decompress(const compressed_string_t* compressed, char* decompressed) {
inline __attribute__((always_inline)) const compressed_string_t* translate(const char* original) {
#ifndef NO_QSTR
#define QDEF(id, str)
- #define TRANSLATION(id, len, compressed...) if (strcmp(original, id) == 0) { static compressed_string_t v = {.length = len, .data = compressed}; return &v; } else
+ #define TRANSLATION(id, len, compressed...) if (strcmp(original, id) == 0) { static const compressed_string_t v = {.length = len, .data = compressed}; return &v; } else
#include "genhdr/qstrdefs.generated.h"
#undef TRANSLATION
#undef QDEF