Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
brglng committed Apr 12, 2021
1 parent 270fdfd commit 633e3ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmake/Modules/wavTargetProperties.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ elseif(${CMAKE_C_COMPILER_ID} MATCHES "^(GNU|.*Clang)$")
-Werror=implicit-int
-Werror=init-self
-Werror=incompatible-pointer-types
-Werror=int-conversion
-Werror=return-type
-Werror=strict-prototypes
)
Expand Down
2 changes: 1 addition & 1 deletion tests/write_f32/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ int main(void)
{
float *buf = malloc(sizeof(float) * 10 * 44100);
generate_sine_wave(buf, 44100, 10 * 44100);
WavFile *fp = wav_open("out.wav", "wb");
WavFile *fp = wav_open("out.wav", WAV_OPEN_WRITE);
wav_set_format(fp, WAV_FORMAT_IEEE_FLOAT);
/* wav_set_sample_size(fp, sizeof(float)); */
wav_set_num_channels(fp, 1);
Expand Down

0 comments on commit 633e3ea

Please # to comment.