Kaynağa Gözat

Shut up compiler warning with traces disabled

Compiler is complaining about unused, but set variable, if traces off
(OPENER_WITH_TRACES not defined)
pogojotz 9 yıl önce
ebeveyn
işleme
48a6c8c1f1
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      source/src/cip/cipcommon.c

+ 3 - 0
source/src/cip/cipcommon.c

@@ -48,6 +48,9 @@ void CipStackInit(const EipUint16 unique_connection_id) {
   /* the application has to be initialized at last */
   eip_status = ApplicationInitialization();
   OPENER_ASSERT(kEipStatusOk == eip_status);
+  
+  /* Shut up compiler warning with traces disabled */
+  (void)eip_status;
 }
 
 void ShutdownCipStack(void) {