aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorSiCongLi <sicong.li@arm.com>2020-12-11 15:07:53 +0000
committerSiCong Li <sicong.li@arm.com>2020-12-23 10:46:06 +0000
commit410e21e88db9d98c8144cd93047e506ecd0b7ab4 (patch)
tree29ad49910db2fe11ee77c31224a61ccb7436a0a5 /support
parent2dcffdeda88b59aecc9a4ad6d5fb8b44f9d638b7 (diff)
downloadComputeLibrary-410e21e88db9d98c8144cd93047e506ecd0b7ab4.tar.gz
Fix baremetal arm_compute_validation build errors
* Add -C flag to instruct preprocessor not to strip comments. This is to prevent marker comments like '// fall through' that suppresses certain warnings from being removed. * Fix unused variable warnings. * Add M_PI definition that's missing from certain toolchain standard libraries. Resolves COMPMID-4054 Change-Id: I1d641db668685d4b678f3d0efed84bfe9e630b4b Signed-off-by: SiCongLi <sicong.li@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4692 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'support')
-rw-r--r--support/ToolchainSupport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/support/ToolchainSupport.h b/support/ToolchainSupport.h
index 8bf7f988c2..e79084a629 100644
--- a/support/ToolchainSupport.h
+++ b/support/ToolchainSupport.h
@@ -40,6 +40,10 @@
#include "support/Bfloat16.h"
#include "support/Half.h"
+#ifndef M_PI
+#define M_PI (3.14159265358979323846)
+#endif // M_PI
+
namespace arm_compute
{
namespace support