From 5dd03b9b3e7a30cf09ef189cfc27496547458b51 Mon Sep 17 00:00:00 2001 From: Sebastian Meiling Date: Tue, 3 Dec 2019 15:50:06 +0100 Subject: [PATCH] pkg/jerryscript: set -Wno-conversion for FreeBSD Fixes compile issue on FreeBSD because of float to double conversion by disabling the corresponding compiler warning. --- pkg/jerryscript/Makefile.jerryscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/jerryscript/Makefile.jerryscript b/pkg/jerryscript/Makefile.jerryscript index e896abb8a071..ba533203dbc6 100644 --- a/pkg/jerryscript/Makefile.jerryscript +++ b/pkg/jerryscript/Makefile.jerryscript @@ -6,6 +6,8 @@ EXT_CFLAGS :=-D__TARGET_RIOT ifeq ($(TOOLCHAIN)_$(BOARD),llvm_native) EXT_CFLAGS :=-D__TARGET_RIOT -Wno-conversion +else ifeq ($(OS)_$(BOARD),FreeBSD_native) + EXT_CFLAGS += -Wno-conversion else ifeq (esp32,$(CPU)) # The esp32 C newlib version 2.2.0 has errors when compiling with warnings # that are enabled by jerryscript build system so disable them for this cpu: