summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-09-14 20:45:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-09-14 20:45:14 +0000
commitaebde08e3ba11631a863ea94e0df82202ecd5fb1 (patch)
tree07b6290f1b6dd96c1195edf16ea34d876bac8bca /c/src/lib/libbsp
parent6312db301df3b2cfd898b7b197b895c6e087b6f7 (diff)
downloadrtems-aebde08e3ba11631a863ea94e0df82202ecd5fb1.tar.bz2
2002-09-14 Joel Sherrill <joel@OARcorp.com>
* cpu.c: Include declaration of variable i in ifdef USE_SPRG to eliminate warning.
Diffstat (limited to 'c/src/lib/libbsp')
-rw-r--r--c/src/lib/libbsp/powerpc/support/old_exception_processing/ChangeLog5
-rw-r--r--c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/support/old_exception_processing/ChangeLog b/c/src/lib/libbsp/powerpc/support/old_exception_processing/ChangeLog
index 3fbce78a80..87ca45792e 100644
--- a/c/src/lib/libbsp/powerpc/support/old_exception_processing/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/support/old_exception_processing/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-14 Joel Sherrill <joel@OARcorp.com>
+
+ * cpu.c: Include declaration of variable i in ifdef USE_SPRG to
+ eliminate warning.
+
2002-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Use .$(OBJEXT) instead of .o.
diff --git a/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c b/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c
index 86bcdde2a4..d0b76b69ff 100644
--- a/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c
+++ b/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c
@@ -59,7 +59,9 @@ void _CPU_Initialize(
void (*thread_dispatch) /* ignored on this CPU */
)
{
+#if (PPC_USE_SPRG)
int i;
+#endif
#if (PPC_ABI != PPC_ABI_POWEROPEN)
register unsigned32 r2 = 0;
#if (PPC_ABI != PPC_ABI_GCC27)