diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-22 14:53:58 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-22 21:15:16 +0200 |
| commit | 82c92387d303b912184519f485dd1c8b658223f9 (patch) | |
| tree | 268f8d72f4e22e6125cce41f138d54f1814f839c /src/wx/video_waveform_plot.cc | |
| parent | 05b92f0ff44d9a758de8bbb555dde83351b9133c (diff) | |
Fix some warnings on macOS about variable-sized arrays.
Diffstat (limited to 'src/wx/video_waveform_plot.cc')
| -rw-r--r-- | src/wx/video_waveform_plot.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wx/video_waveform_plot.cc b/src/wx/video_waveform_plot.cc index 2827689a7..d9fbfb11e 100644 --- a/src/wx/video_waveform_plot.cc +++ b/src/wx/video_waveform_plot.cc @@ -162,8 +162,7 @@ VideoWaveformPlot::create_waveform () strip is the number of samples in image with the corresponding group of values. */ - int strip[waveform_height]; - memset (strip, 0, waveform_height * sizeof(int)); + std::vector<int> strip(waveform_height); int* ip = _image->data (_component) + x; for (int y = 0; y < image_size.height; ++y) { |
