Kaynağa Gözat

fix clang warning

ambrop7 13 yıl önce
ebeveyn
işleme
653c75a10e
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      system/BConnectionGeneric.h

+ 2 - 0
system/BConnectionGeneric.h

@@ -103,6 +103,7 @@ static int BListener_InitGeneric (BListener *o, struct BConnection_addr addr, BR
         
         default:
             ASSERT(0);
+            return 0;
     }
 }
 
@@ -136,6 +137,7 @@ static int BConnector_InitGeneric (BConnector *o, struct BConnection_addr addr,
         
         default:
             ASSERT(0);
+            return 0;
     }
 }