mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-13 23:08:14 +00:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user