Skip to content

fix loop has empty body warning on macOS.

Adam Mercer requested to merge adam-mercer/lalsuite:macos-build-fix into master

Description

macOS builds have been failing with:

  CC       TimeFreqFFTTest.o
TimeFreqFFTTest.c:210:89: error: for loop has empty body [-Werror,-Wempty-body]
        { unsigned k; for(sfk = 0., k = 0; k < Y.data->length; sfk += Y.data->data[k++]); sfk /= Y.data->length; }
                                                                                        ^
TimeFreqFFTTest.c:210:89: note: put the semicolon on a separate line to silence this warning
1 error generated.

This addresses those warnings.

API Changes and Justification

Backwards Compatible Changes

  • This change introduces no API changes
  • This change adds new API calls

Backwards Incompatible Changes

  • This change modifies an existing API
  • This change removes an existing API

Review Status

Merge request reports

Loading