summaryrefslogtreecommitdiff
path: root/TestPrograms/test_ppc_power8.cxx
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-10-24 05:33:15 -0400
committerJeffrey Walton <noloader@gmail.com>2019-10-24 05:33:15 -0400
commita4da9bf6bee36aa412281bfc08b7e14bd6870ac4 (patch)
tree046fa736afe8107154d5829a2b642494ffb26028 /TestPrograms/test_ppc_power8.cxx
parent20d3db813bf406a3653f0254e9504ae33833ddc9 (diff)
downloadcryptopp-git-a4da9bf6bee36aa412281bfc08b7e14bd6870ac4.tar.gz
Guard PowerPC feature tests
Clang is producing spurious noise
Diffstat (limited to 'TestPrograms/test_ppc_power8.cxx')
-rw-r--r--TestPrograms/test_ppc_power8.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/TestPrograms/test_ppc_power8.cxx b/TestPrograms/test_ppc_power8.cxx
index 2766b781..b5a56322 100644
--- a/TestPrograms/test_ppc_power8.cxx
+++ b/TestPrograms/test_ppc_power8.cxx
@@ -1,3 +1,8 @@
+#define GNUC_VERSION (__GNUC__*1000 + __GNUC_MAJOR__*10)
+#if (GNUC_VERSION >= 4060) || defined(__clang__)
+# pragma GCC diagnostic ignored "-Wdeprecated"
+#endif
+
#include <altivec.h>
int main(int argc, char* argv[])
{