aboutsummaryrefslogtreecommitdiff
path: root/emulators/rpcs3/files/patch-soundtouch
blob: 868d9717bd682ac4e95faf7511bd892475ea03c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
In file included from rpcs3/Emu/Audio/audio_device_listener.cpp:5:
In file included from rpcs3/Emu/Cell/Modules/cellAudio.h:9:
In file included from rpcs3/Emu/Audio/audio_resampler.h:10:
In file included from 3rdparty/SoundTouch/soundtouch/include/SoundTouch.h:68:
3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h:62:9: error: use of old-style cast [-Werror,-Wold-style-cast]
        ST_THROW_RT_ERROR("Error: Illegal number of channels");
        ^                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3rdparty/SoundTouch/soundtouch/include/STTypes.h:128:45: note: expanded from macro 'ST_THROW_RT_ERROR'
    #define ST_THROW_RT_ERROR(x)    {assert((const char *)x);}
                                            ^             ~
/usr/include/assert.h:56:21: note: expanded from macro 'assert'
#define assert(e)       ((e) ? (void)0 : __assert(__func__, __FILE__, \
                          ^

--- 3rdparty/SoundTouch/soundtouch/include/STTypes.h.orig	2024-04-04 20:36:27 UTC
+++ 3rdparty/SoundTouch/soundtouch/include/STTypes.h
@@ -125,7 +125,7 @@ namespace soundtouch
 #ifdef ST_NO_EXCEPTION_HANDLING
     // Exceptions disabled. Throw asserts instead if enabled.
     #include <assert.h>
-    #define ST_THROW_RT_ERROR(x)    {assert((const char *)x);}
+    #define ST_THROW_RT_ERROR(x)    {assert(static_cast<const char *>(x));}
 #else
     // use c++ standard exceptions
     #include <stdexcept>