mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Audiocodec: Fix warning on older clang.
This commit is contained in:
parent
60801e066f
commit
1e2a904fb7
2 changed files with 3 additions and 3 deletions
|
@ -184,7 +184,8 @@ void __sceAudiocodecDoState(PointerWrap &p){
|
|||
// These sizeof(pointers) are wrong, but kept to avoid breaking on old saves.
|
||||
// They're not used in new savestates.
|
||||
#ifdef __clang__
|
||||
#pragma diagnostic push
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
||||
#pragma clang diagnostic ignored "-Wsizeof-pointer-div"
|
||||
#endif
|
||||
DoArray(p, codec_, s >= 2 ? count : (int)ARRAY_SIZE(codec_));
|
||||
|
@ -195,7 +196,7 @@ void __sceAudiocodecDoState(PointerWrap &p){
|
|||
audioList[ctxPtr_[i]] = decoder;
|
||||
}
|
||||
#ifdef __clang__
|
||||
#pragma diagnostic pop
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
delete[] codec_;
|
||||
delete[] ctxPtr_;
|
||||
|
|
|
@ -240,4 +240,3 @@ int sceNetApctlConnect(int connIndex);
|
|||
int sceNetInetPoll(void *fds, u32 nfds, int timeout);
|
||||
int sceNetInetTerm();
|
||||
int sceNetApctlTerm();
|
||||
static u32 sceNetTerm();
|
||||
|
|
Loading…
Add table
Reference in a new issue