aboutsummaryrefslogtreecommitdiff
path: root/source/seta018.cpp
diff options
context:
space:
mode:
authorNebuleon Fumika2013-01-18 02:41:32 -0500
committerNebuleon Fumika2013-01-18 02:41:32 -0500
commitbf5cb54162afa5390eab1ae155a9defd44d0f898 (patch)
treebee1bc56126f6ac5f036ab0169642609a30be06c /source/seta018.cpp
parent5c4e96b326073d411a577fc6a8c03ea1c0a7242e (diff)
downloadsnes9x2005-bf5cb54162afa5390eab1ae155a9defd44d0f898.tar.gz
snes9x2005-bf5cb54162afa5390eab1ae155a9defd44d0f898.tar.bz2
snes9x2005-bf5cb54162afa5390eab1ae155a9defd44d0f898.zip
Fix multiple compiler warnings: forward declaration, implicit declaration, unused variable, variable used uninitialised, unused function (when not used anywhere else with a #define).
Diffstat (limited to 'source/seta018.cpp')
-rw-r--r--source/seta018.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/seta018.cpp b/source/seta018.cpp
index f0b00e1..cafca06 100644
--- a/source/seta018.cpp
+++ b/source/seta018.cpp
@@ -96,7 +96,7 @@ static int line; // line counter
extern "C"{
uint8 S9xGetST018(uint32 Address)
{
- uint8 t;
+ uint8 t = 0; // Initialise to some value for the compiler
uint16 address = (uint16) Address & 0xFFFF;
line++;
@@ -234,8 +234,6 @@ void S9xSetST018(uint8 Byte, uint32 Address)
}
else
{
- static int a=0;
-
//ST018.in_count = 1;
ST018.out_count = 3;