Skip to content

Commit

Permalink
Enhance compiler configuration: suppress unused parameter and variabl…
Browse files Browse the repository at this point in the history
…e warnings, and clean up audio info size declaration in cloud vocal processing
  • Loading branch information
royshil committed Nov 28, 2024
1 parent 690cfd3 commit c3c165b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmake/macos/compilerconfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ else()
set(_obs_clang_objc_options
# cmake-format: sortable
-Werror=block-capture-autoreleasing
-Wno-error=unused-parameter
-Wno-error=unused-variable
-Wno-selector
-Wno-strict-selector-match
-Wno-unused-function
-Wno-unused-parameter
-Wno-error=unused-parameter
-Wno-error=unused-variable
-Wno-unused-private-field
-Wno-unused-variable
-Wnon-virtual-dtor
Expand Down
1 change: 0 additions & 1 deletion src/cloudvocal-processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ int get_data_from_buf_and_resample(cloudvocal_data *gf, uint64_t &start_timestam
// pop all infos from the info buffer and mark the beginning timestamp from the first
// info as the beginning timestamp of the segment
struct cloudvocal_audio_info info_from_buf = {0};
const size_t size_of_audio_info = sizeof(cloudvocal_audio_info);
while (gf->info_buffer.size() > 0) {
info_from_buf = gf->info_buffer.front();
num_frames_from_infos += info_from_buf.frames;
Expand Down

0 comments on commit c3c165b

Please sign in to comment.