From 6a5da160adb4594676bae7bea87a959b42d9d6b9 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 25 Jun 2014 01:06:48 -0700 Subject: [PATCH] Fix build. --- AMBuildScript | 3 +++ core/vprof_tool.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/AMBuildScript b/AMBuildScript index 0f705ed0..37208fbf 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -168,6 +168,7 @@ class SMConfig(object): '-Wno-switch', '-Wno-format', '-Wno-format-security', + '-Wno-array-bounds', '-msse', '-m32', ] @@ -184,6 +185,8 @@ class SMConfig(object): cxx.cflags += ['-Wno-narrowing'] if (have_gcc and cxx.version >= '4.7') or (have_clang and cxx.version >= '3'): cxx.cxxflags += ['-Wno-delete-non-virtual-dtor'] + if have_gcc and cxx.version >= '4.8': + cxx.cflags += ['-Wno-unused-result'] if have_clang: cxx.cxxflags += [ '-Wno-implicit-exception-spec-mismatch', diff --git a/core/vprof_tool.cpp b/core/vprof_tool.cpp index 75648e07..d481ad97 100644 --- a/core/vprof_tool.cpp +++ b/core/vprof_tool.cpp @@ -31,6 +31,7 @@ #include "sourcemm_api.h" #define VPROF_ENABLED +#define RAD_TELEMETRY_DISABLED #include VProfTool sVProfTool;