diff options
author | acerix | 2016-06-30 18:25:56 -0400 |
---|---|---|
committer | acerix | 2016-06-30 18:25:56 -0400 |
commit | 24b0709a78e074ad1feb6d850ffcc480152e0dbc (patch) | |
tree | 6ad3867f935c7fda92c473409379651cce485d0f | |
parent | cb5f7a36de9610b30ec37fbf6edade5fafda872f (diff) | |
download | aur-24b0709a78e074ad1feb6d850ffcc480152e0dbc.tar.gz |
patch for ignore-return-value errors in clang 3.8
-rw-r--r-- | 0001-ignore-return-value-error.patch | 26 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 29 insertions, 1 deletions
diff --git a/0001-ignore-return-value-error.patch b/0001-ignore-return-value-error.patch new file mode 100644 index 000000000000..c764e419c209 --- /dev/null +++ b/0001-ignore-return-value-error.patch @@ -0,0 +1,26 @@ +From 44fdb710fe4151f0ca8a84521c89c5bc73874257 Mon Sep 17 00:00:00 2001 +From: acerix <dylan@psilly.com> +Date: Thu, 30 Jun 2016 13:59:39 -0400 +Subject: [PATCH 1/1] ignore return value error error: ignoring return value of + function declared with warn_unused_result attribute + +--- + Engine/Source/Programs/UnrealBuildTool/Linux/LinuxToolChain.cs | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/Engine/Source/Programs/UnrealBuildTool/Linux/LinuxToolChain.cs b/Engine/Source/Programs/UnrealBuildTool/Linux/LinuxToolChain.cs +index f2f9a59..18ec222 100644 +--- a/Engine/Source/Programs/UnrealBuildTool/Linux/LinuxToolChain.cs ++++ b/Engine/Source/Programs/UnrealBuildTool/Linux/LinuxToolChain.cs +@@ -363,6 +363,8 @@ namespace UnrealBuildTool + Result += " -Wno-unknown-pragmas"; // Slate triggers this (with its optimize on/off pragmas) + // needed to suppress warnings about using offsetof on non-POD types. + Result += " -Wno-invalid-offsetof"; ++ // suppress errors about ignoring return value of function ++ Result += " -Wno-unused-result"; + // we use this feature to allow static FNames. + Result += " -Wno-gnu-string-literal-operator-template"; + +-- +2.9.0 + @@ -7,7 +7,7 @@ pkgname='unreal-engine' pkgver=4.12.4 -pkgrel=1 +pkgrel=2 pkgdesc='A 3D game engine by Epic Games which can be used non-commercially for free.' arch=('x86_64') url='https://www.unrealengine.com/' @@ -17,10 +17,12 @@ license=('custom:UnrealEngine') source=( "git+ssh://github.com/EpicGames/UnrealEngine.git#tag=$pkgver-release" 'UE4Editor.desktop' + '0001-ignore-return-value-error.patch' ) md5sums=( 'SKIP' 'c7fc35a7eb9e23c0a9b7c593f7f9878d' + '08e0e6b8e6c9b186191a8419cc7bd435' ) options=(!strip staticlibs) |