From bf5cb54162afa5390eab1ae155a9defd44d0f898 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Fri, 18 Jan 2013 02:41:32 -0500 Subject: Fix multiple compiler warnings: forward declaration, implicit declaration, unused variable, variable used uninitialised, unused function (when not used anywhere else with a #define). --- source/seta018.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/seta018.cpp') 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; -- cgit v1.2.3