diff options
| author | raysan5 <[email protected]> | 2020-05-06 19:12:09 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-05-06 19:12:09 +0200 |
| commit | fdad1f023b0f4de982957a3baaa41b0ac2666748 (patch) | |
| tree | 3701a104fc5e3250e9e81f8ee46ea4cf3deef824 /src/raudio.c | |
| parent | 9a1e934621b6098093d709ceb149f1bb995c15cc (diff) | |
| download | raylib-fdad1f023b0f4de982957a3baaa41b0ac2666748.tar.gz raylib-fdad1f023b0f4de982957a3baaa41b0ac2666748.zip | |
Avoid all MSVC compile warnings
Most warning were related to types conversion (casting required) and unsigned/signed types comparisons.
Added preprocessor directives (_CRT_SECURE_NO_DEPRECATE; _CRT_NONSTDC_NO_DEPRECATE) to avoid warnings about unsafe functions, those functions are safe while used properly and recommended alternatives are MS only.
Some external libraries still generate warnings.
Diffstat (limited to 'src/raudio.c')
| -rw-r--r-- | src/raudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raudio.c b/src/raudio.c index 5224d516..dddb08e6 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -2024,7 +2024,7 @@ static int SaveWAV(Wave wave, const char *fileName) fwrite(&waveFormat, sizeof(WaveFormat), 1, wavFile); fwrite(&waveData, sizeof(WaveData), 1, wavFile); - success = fwrite(wave.data, dataSize, 1, wavFile); + success = (int)fwrite(wave.data, dataSize, 1, wavFile); fclose(wavFile); } |
