Julius Pfrommer 9 년 전
부모
커밋
29142d004f
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  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