Skip to content
Snippets Groups Projects
Commit 9d5e601b authored by Oleg Hahm's avatar Oleg Hahm Committed by GitHub
Browse files

Merge pull request #5779 from OlegHahm/no_wchar_warnings

cpu: cortex-M: disable wchar warnings
parents 6d65494a 00dd2fdc
Branches
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ ifneq (,$(filter newlib_nano,$(USEMODULE)))
USE_NEWLIB_NANO = 1
ifeq ($(shell echo "int main(){} void _exit(int n) {(void)n;while(1);}" | LC_ALL=C $(CC) -xc - -o /dev/null -lc -specs=nano.specs -Wall -Wextra -pedantic 2>&1 | grep -q "use of wchar_t values across objects may fail" ; echo $$?),0)
CFLAGS += -fshort-wchar
LINKFLAGS += -Wl,--no-wchar-size-warning
endif
endif
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment