summarylogtreecommitdiffstats
path: root/ignore-return-value-error.patch
blob: 5d2faf08dc8e1d4e179dc0abd994eaaaf0eb3e4b (plain)
1
2
3
4
5
6
7
8
9
10
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)