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 /0001-ignore-return-value-error.patch | |
parent | cb5f7a36de9610b30ec37fbf6edade5fafda872f (diff) | |
download | aur-24b0709a78e074ad1feb6d850ffcc480152e0dbc.tar.gz |
patch for ignore-return-value errors in clang 3.8
Diffstat (limited to '0001-ignore-return-value-error.patch')
-rw-r--r-- | 0001-ignore-return-value-error.patch | 26 |
1 files changed, 26 insertions, 0 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 + |