Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/audio_analysis_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ BOOST_AUTO_TEST_CASE(audio_analysis_serialisation_test)
int const points = 4096;

auto random_float = []() {
return (float(rand()) / RAND_MAX) * 2 - 1;
return (float(rand()) / static_cast<float>(RAND_MAX)) * 2 - 1;
};

AudioAnalysis a(3);
Expand Down
2 changes: 1 addition & 1 deletion test/audio_buffers_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static float tolerance = 1e-3;
static float
random_float ()
{
return float (rand ()) / RAND_MAX;
return float (rand ()) / static_cast<float>(RAND_MAX);
}

static void
Expand Down
4 changes: 4 additions & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ def configure(conf):
'-D_FILE_OFFSET_BITS=64',
'-std=c++' + cpp_std])

# ICU 74's headers have virtual methods in final classes, which clang 20 (Xcode 26) warns about
if conf.check_cxx(cxxflags=['-Wunnecessary-virtual-specifier', '-Werror'], msg='Checking for -Wunnecessary-virtual-specifier', mandatory=False):
conf.env.append_value('CXXFLAGS', ['-Wno-unnecessary-virtual-specifier'])

if conf.options.warnings_are_errors:
conf.env.append_value('CXXFLAGS', '-Werror')

Expand Down
Loading