Skip to content

Commit

Permalink
pkg/jerryscript: set -Wno-conversion for FreeBSD
Browse files Browse the repository at this point in the history
Fixes compile issue on FreeBSD because of float to double conversion
by disabling the corresponding compiler warning.
  • Loading branch information
smlng committed Dec 5, 2019
1 parent e6bdcae commit 5dd03b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/jerryscript/Makefile.jerryscript
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5dd03b9

Please sign in to comment.