From 61b24a369700c3d8248dd18fa9a524b778741454 Mon Sep 17 00:00:00 2001 From: yancey Date: Tue, 7 Feb 2023 06:40:40 -0500 Subject: [PATCH] supress complier warning --- CMakeLists.txt | 2 ++ connection.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ad11bc..c0cf214 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,5 @@ +#note: experimental + cmake_minimum_required(VERSION 3.7) project(speederv2) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) diff --git a/connection.h b/connection.h index 615698b..0b7f8ac 100644 --- a/connection.h +++ b/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() {