From 662f07a9214220efc75c4ce3f8740021a122386d Mon Sep 17 00:00:00 2001 From: David Rowe Date: Mon, 11 May 2015 09:31:12 -0700 Subject: [PATCH] Better #if condition for clang --- libraries/networking/src/DataServerAccountInfo.cpp | 2 +- libraries/networking/src/RSAKeypairGenerator.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/networking/src/DataServerAccountInfo.cpp b/libraries/networking/src/DataServerAccountInfo.cpp index aa9c5bed93..fd2c6da13d 100644 --- a/libraries/networking/src/DataServerAccountInfo.cpp +++ b/libraries/networking/src/DataServerAccountInfo.cpp @@ -17,7 +17,7 @@ #include "NetworkLogging.h" #include "DataServerAccountInfo.h" -#if !defined(__GNUC__) && !defined(Q_OS_WIN) +#ifdef __clang__ #pragma clang diagnostic ignored "-Wdeprecated-declarations" #endif diff --git a/libraries/networking/src/RSAKeypairGenerator.cpp b/libraries/networking/src/RSAKeypairGenerator.cpp index 2368b5e6d2..53b9b27cc6 100644 --- a/libraries/networking/src/RSAKeypairGenerator.cpp +++ b/libraries/networking/src/RSAKeypairGenerator.cpp @@ -18,7 +18,7 @@ #include "NetworkLogging.h" #include "RSAKeypairGenerator.h" -#ifndef __GNUC__ +#ifdef __clang__ #pragma clang diagnostic ignored "-Wdeprecated-declarations" #endif