Skip to content

Commit

Permalink
supress complier warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Feb 7, 2023
1 parent 41cac84 commit 61b24a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#note: experimental

cmake_minimum_required(VERSION 3.7)
project(speederv2)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
Expand Down
3 changes: 3 additions & 0 deletions connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 61b24a3

Please sign in to comment.