Merge pull request #13306 from unknownbrackets/warnings

Audiocodec: Fix warning on older clang
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2020-08-18 19:01:51 +02:00
commit 2a9f4ac763
2 files changed
+3 -3

No files matched your search

+3 -2
View File
@@ -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_;
-1
View File
@@ -240,4 +240,3 @@ int sceNetApctlConnect(int connIndex);
int sceNetInetPoll(void *fds, u32 nfds, int timeout);
int sceNetInetTerm();
int sceNetApctlTerm();
static u32 sceNetTerm();