diff options
| author | Rohit Nirmal <rohitnirmal9@gmail.com> | 2014-12-02 18:20:52 -0600 |
|---|---|---|
| committer | Rohit Nirmal <rohitnirmal9@gmail.com> | 2014-12-11 22:23:05 -0600 |
| commit | b030d290671c283020c405dfd9e8658935dcf1cf (patch) | |
| tree | ccb0660dd7c0dc19b09f5357305a94c81b7a50e5 /Source/Core/VideoCommon | |
| parent | 54f1e3a3c148d36e694d8bb08d282225bdcb3440 (diff) | |
Silence some -Wswitch-default warnings.
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/BPMemory.h | 3 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/TextureDecoder_Common.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/BPMemory.h b/Source/Core/VideoCommon/BPMemory.h index d8d1f230b8..4ebf12e0b0 100644 --- a/Source/Core/VideoCommon/BPMemory.h +++ b/Source/Core/VideoCommon/BPMemory.h @@ -959,6 +959,9 @@ union AlphaTest if ((comp0 == ALWAYS && comp1 == ALWAYS) || (comp0 == NEVER && comp1 == NEVER)) return PASS; break; + + default: + return UNDETERMINED; } return UNDETERMINED; } diff --git a/Source/Core/VideoCommon/TextureDecoder_Common.cpp b/Source/Core/VideoCommon/TextureDecoder_Common.cpp index 71e801afe7..e879e45e18 100644 --- a/Source/Core/VideoCommon/TextureDecoder_Common.cpp +++ b/Source/Core/VideoCommon/TextureDecoder_Common.cpp @@ -571,6 +571,9 @@ void TexDecoder_DecodeTexel(u8 *dst, const u8 *src, int s, int t, int imageWidth case 7: color = MakeRGBA(red2, green2, blue2, 0); break; + default: + color = 0; + break; } *((u32*)dst) = color; |
