summarylogtreecommitdiffstats
path: root/ignore-return-value-error.patch
diff options
context:
space:
mode:
authoracerix2017-01-04 13:54:19 -0500
committeracerix2017-01-04 13:54:19 -0500
commit08c752007d58ef4a951b1f6310ca9d14b5791bcf (patch)
tree945da46940574e70e3e36ea4e6f04eaa64a9767a /ignore-return-value-error.patch
parent3378726eb4acb1c227ca3e5057837876512e815d (diff)
downloadaur-08c752007d58ef4a951b1f6310ca9d14b5791bcf.tar.gz
update to 4.14.2, patch for "unused return value" errors
Diffstat (limited to 'ignore-return-value-error.patch')
-rw-r--r--ignore-return-value-error.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/ignore-return-value-error.patch b/ignore-return-value-error.patch
new file mode 100644
index 000000000000..5d2faf08dc8e
--- /dev/null
+++ b/ignore-return-value-error.patch
@@ -0,0 +1,11 @@
+--- Engine/Source/Programs/UnrealBuildTool/Linux/LinuxToolChain.cs.old 2017-01-04 13:45:29.669145563 -0500
++++ Engine/Source/Programs/UnrealBuildTool/Linux/LinuxToolChain.cs 2017-01-04 13:45:34.875764475 -0500
+@@ -393,6 +393,8 @@
+ Result += " -Wno-unused-variable";
+ // this will hide the warnings about static functions in headers that aren't used in every single .cpp file
+ Result += " -Wno-unused-function";
++ // suppress errors about ignoring return value of function
++ Result += " -Wno-unused-result";
+ // this hides the "enumeration value 'XXXXX' not handled in switch [-Wswitch]" warnings - we should maybe remove this at some point and add UE_LOG(, Fatal, ) to default cases
+ Result += " -Wno-switch";
+ Result += " -Wno-unknown-pragmas"; // Slate triggers this (with its optimize on/off pragmas)