From 50788ad089999a5a58ad4ef76c79cd345e7e81fc Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 25 May 2023 08:52:26 +0000 Subject: [PATCH] Silenced a warning, apparently a GCC 12 (ld) bug. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@16263 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/sb/apps/msh/make/msh-ram.make | 2 +- os/sb/apps/msh/source/sglob.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/os/sb/apps/msh/make/msh-ram.make b/os/sb/apps/msh/make/msh-ram.make index e494ca89c..d7d66b3e5 100644 --- a/os/sb/apps/msh/make/msh-ram.make +++ b/os/sb/apps/msh/make/msh-ram.make @@ -25,7 +25,7 @@ endif # Linker extra options here. ifeq ($(USE_LDOPT),) - USE_LDOPT = -q -Wl,-zmax-page-size=512 + USE_LDOPT = -q -Wl,-zmax-page-size=512,--no-warn-rwx-segment endif # Enable this if you want link time optimizations (LTO). diff --git a/os/sb/apps/msh/source/sglob.c b/os/sb/apps/msh/source/sglob.c index 18f8e197a..996a64d3e 100644 --- a/os/sb/apps/msh/source/sglob.c +++ b/os/sb/apps/msh/source/sglob.c @@ -94,7 +94,7 @@ static char *lsalloc(sglob_t *psglob, size_t len) { } /* Copyright not specified so public domain code, not my thing.*/ -bool match(const char *pattern, const char *text) { +static bool match(const char *pattern, const char *text) { if (*pattern == '\0' && *text == '\0') return true;