Ver Fonte

supress complier warning

yancey há 2 anos atrás
pai
commit
61b24a3697
2 ficheiros alterados com 5 adições e 0 exclusões
  1. 2 0
      CMakeLists.txt
  2. 3 0
      connection.h

+ 2 - 0
CMakeLists.txt

@@ -1,3 +1,5 @@
+#note: experimental
+
 cmake_minimum_required(VERSION 3.7)
 project(speederv2)
 set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

+ 3 - 0
connection.h

@@ -188,6 +188,9 @@ struct stat_t {
     inner_stat_t normal_to_fec;
     inner_stat_t fec_to_normal;
     stat_t() {
+        clear();
+    }
+    void clear(){
         memset(this, 0, sizeof(stat_t));
     }
     void report_as_client() {