From 002797a3b43d19fc4e289608038867312165b09d Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Mon, 19 Mar 2018 20:40:52 -0500 Subject: [PATCH] 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 --- shared-bindings/help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-bindings/help.c b/shared-bindings/help.c index cdd9a4a937..d8ffc13dd0 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"