Skip to content

Commit

Permalink
webrtc_aecm: added -Wno-missing-field-initializers compile option (ba…
Browse files Browse the repository at this point in the history
…resip#3177)

* webrtc_aecm: added missing .le iniitializer

* Added also .enabled initializer

* Replaced code fix by -Wno-missing-field-initializers
Removed .le init from webrtc_aec module
  • Loading branch information
juha-h authored Oct 28, 2024
1 parent d200cbd commit 507e9cf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
1 change: 0 additions & 1 deletion modules/webrtc_aec/aec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ int webrtc_aec_alloc(struct aec **stp, void **ctx, struct aufilt_prm *prm)


static struct aufilt webrtc_aec = {
.le = LE_INIT,
.name = "webrtc_aec",
.encupdh = webrtc_aec_encode_update,
.ench = webrtc_aec_encode,
Expand Down
3 changes: 3 additions & 0 deletions modules/webrtc_aecm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ endif()

target_include_directories(${PROJECT_NAME} PRIVATE ${WEBRTC_AECM_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} PRIVATE ${WEBRTC_AECM_LIBRARIES})
target_compile_options(${PROJECT_NAME} PRIVATE
-Wno-missing-field-initializers
)
12 changes: 7 additions & 5 deletions modules/webrtc_aecm/aec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,13 @@ int webrtc_aecm_alloc(struct aec **stp, void **ctx, struct aufilt_prm *prm)
}


static struct aufilt webrtc_aec = {.name = "webrtc_aecm",
.encupdh = webrtc_aecm_encode_update,
.ench = webrtc_aecm_encode,
.decupdh = webrtc_aecm_decode_update,
.dech = webrtc_aecm_decode};
static struct aufilt webrtc_aec = {
.name = "webrtc_aecm",
.encupdh = webrtc_aecm_encode_update,
.ench = webrtc_aecm_encode,
.decupdh = webrtc_aecm_decode_update,
.dech = webrtc_aecm_decode
};


static int module_init(void)
Expand Down

0 comments on commit 507e9cf

Please sign in to comment.