Skip to content

Commit 002797a

Browse files
committed
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
1 parent bf42611 commit 002797a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shared-bindings/help.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
//| prints general port information.
3636
//|
3737

38-
const char *circuitpython_help_text =
38+
const char circuitpython_help_text[] =
3939
"Welcome to Adafruit CircuitPython " MICROPY_GIT_TAG "!\r\n"
4040
"\r\n"
4141
"Please visit learn.adafruit.com/category/circuitpython for project guides.\r\n"

0 commit comments

Comments
 (0)