From c13cc555be71b10554cbb734c38ef331fb1728f9 Mon Sep 17 00:00:00 2001 From: "Jake.Stine" Date: Fri, 3 Jul 2009 01:06:53 +0000 Subject: [PATCH] A couple minor compiler warning fixes. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1455 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/vtlb.cpp | 2 ++ plugins/zerospu2/zerospu2.cpp | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pcsx2/vtlb.cpp b/pcsx2/vtlb.cpp index 69692bd7e2..eb94e0b223 100644 --- a/pcsx2/vtlb.cpp +++ b/pcsx2/vtlb.cpp @@ -90,6 +90,8 @@ __forceinline DataType __fastcall MemOp_r0(u32 addr) jNO_DEFAULT; } + + return 0; // technically unreachable, but suppresses warnings. } // ------------------------------------------------------------------------ diff --git a/plugins/zerospu2/zerospu2.cpp b/plugins/zerospu2/zerospu2.cpp index ead28339a7..e1953f8813 100644 --- a/plugins/zerospu2/zerospu2.cpp +++ b/plugins/zerospu2/zerospu2.cpp @@ -128,7 +128,7 @@ static void InitLibraryName() strcpy( libraryName, "ZeroSPU2" # ifdef PCSX2_DEBUG "-Debug" -# elseif ZEROSPU2_DEVBUILD +# elif defined( ZEROSPU2_DEVBUILD ) "-Dev" # endif ); @@ -140,7 +140,7 @@ static void InitLibraryName() sprintf_s( libraryName, "ZeroSPU2 r%d%s" # ifdef PCSX2_DEBUG "-Debug" -# elif ZEROSPU2_DEVBUILD +# elif defined( ZEROSPU2_DEVBUILD ) "-Dev" # endif ,SVN_REV, @@ -153,7 +153,7 @@ static void InitLibraryName() strcpy( libraryName, "ZeroSPU2 Playground" # ifdef PCSX2_DEBUG "-Debug" -# elif ZEROSPU2_DEVBUILD +# elif defined( ZEROSPU2_DEVBUILD ) "-Dev" # endif );