diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-10-24 05:33:15 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-10-24 05:33:15 -0400 |
commit | a4da9bf6bee36aa412281bfc08b7e14bd6870ac4 (patch) | |
tree | 046fa736afe8107154d5829a2b642494ffb26028 /TestPrograms/test_ppc_power8.cxx | |
parent | 20d3db813bf406a3653f0254e9504ae33833ddc9 (diff) | |
download | cryptopp-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.cxx | 5 |
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[])
{
|