From c869696a3f8186445a3391fcce32271468994a8e Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 26 Mar 2015 10:20:29 +0100 Subject: [PATCH] Fix clang and one more warning added --- makefile | 2 +- scripts/genie.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index dcf983731d5..5695be1a496 100644 --- a/makefile +++ b/makefile @@ -175,7 +175,7 @@ CLANG_VERSION:=$(shell %CLANG%\bin\clang --version 2> NUL| head -n 1 | sed "s/[^ PYTHON_AVAILABLE:=$(shell python --version > NUL 2>&1 && echo python) else GCC_VERSION:=$(shell gcc -dumpversion 2> /dev/null) -CLANG_VERSION:=$(clang --version 2> /dev/null | grep '[0-9]\.[0-9]' -o | head -n 1) +CLANG_VERSION:=$(shell clang --version 2> /dev/null | grep '[0-9]\.[0-9]' -o | head -n 1) PYTHON_AVAILABLE:=$(shell python --version > /dev/null 2>&1 && echo python) endif diff --git a/scripts/genie.lua b/scripts/genie.lua index acbdb3ccc40..db5c1727fce 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -417,6 +417,7 @@ configuration { } -- array bounds checking seems to be buggy in 4.8.1 (try it on video/stvvdp1.c and video/model1.c without -Wno-array-bounds) buildoptions { "-Wno-unused-variable", + "-Wno-unused-result", "-Wno-array-bounds" } end