diff options
| author | Jeff Epler <jepler@unpythonic.net> | 2018-03-19 20:40:52 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@unpythonic.net> | 2018-03-19 22:11:40 -0500 |
| commit | 002797a3b43d19fc4e289608038867312165b09d (patch) | |
| tree | db7bebd836424c52ec18f7731473dce163b67c7d | |
| parent | bf42611738cd875e1bc6e278040283675599f7b8 (diff) | |
Fix array vs pointer error in declaration of circuitpython_help_text
Building with gcc 5.4.1 (Debian Stretch) with the unsupported
-Wno-error=lto-type-mismatch flag removed, the following diagnostic
occurs:
../../py/builtin.h:121:19: error: type of 'circuitpython_help_text' does not match original declaration [-Werror]
extern const char MICROPY_PY_BUILTINS_HELP_TEXT[];
^
../../shared-bindings/help.c:38:13: note: previously declared here
const char *circuitpython_help_text =
^
lto1: all warnings being treated as errors
lto-wrapper: fatal error: /usr/bin/arm-none-eabi-gcc returned 1 exit status
| -rw-r--r-- | shared-bindings/help.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-bindings/help.c b/shared-bindings/help.c index cdd9a4a93..d8ffc13dd 100644 --- a/shared-bindings/help.c +++ b/shared-bindings/help.c @@ -35,7 +35,7 @@ //| prints general port information. //| -const char *circuitpython_help_text = +const char circuitpython_help_text[] = "Welcome to Adafruit CircuitPython " MICROPY_GIT_TAG "!\r\n" "\r\n" "Please visit learn.adafruit.com/category/circuitpython for project guides.\r\n" |
