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;