Julius Pfrommer 9 anos atrás
pai
commit
29142d004f
2 arquivos alterados com 4 adições e 4 exclusões
  1. 2 2
      src/ua_connection.c
  2. 2 2
      src/ua_securechannel.c

+ 2 - 2
src/ua_connection.c

@@ -131,7 +131,7 @@ UA_Connection_completeMessages(UA_Connection *connection, UA_ByteString * UA_RES
     return UA_STATUSCODE_GOOD;
 }
 
-#if (__GNUC__ <= 4 && __GNUC_MINOR__ <= 6)
+#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 6)
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wextra"
 #pragma GCC diagnostic ignored "-Wcast-qual"
@@ -163,6 +163,6 @@ void UA_Connection_attachSecureChannel(UA_Connection *connection, UA_SecureChann
 #endif
 }
 
-#if (__GNUC__ <= 4 && __GNUC_MINOR__ <= 6)
+#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 6)
 #pragma GCC diagnostic pop
 #endif

+ 2 - 2
src/ua_securechannel.c

@@ -50,7 +50,7 @@ UA_StatusCode UA_SecureChannel_generateNonce(UA_ByteString *nonce) {
     return UA_STATUSCODE_GOOD;
 }
 
-#if (__GNUC__ <= 4 && __GNUC_MINOR__ <= 6)
+#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 6)
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wextra"
 #pragma GCC diagnostic ignored "-Wcast-qual"
@@ -77,7 +77,7 @@ void UA_SecureChannel_attachSession(UA_SecureChannel *channel, UA_Session *sessi
     LIST_INSERT_HEAD(&channel->sessions, se, pointers);
 }
 
-#if (__GNUC__ <= 4 && __GNUC_MINOR__ <= 6)
+#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 6)
 #pragma GCC diagnostic pop
 #endif