diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index c99d72453d6..821e75f4280 100644
--- a/bfd/ecoff.c
+++ b/bfd/ecoff.c
@@ -2132,6 +2132,7 @@ ecoff_sizeof_headers (abfd, reloc)
 {
   asection *current;
   int c;
+  int ret;
 
   c = 0;
   for (current = abfd->sections;