[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#285597: cook: FTBFS (amd64/gcc-4.0): static declaration of 'limit' follows non-static declaration



Package: cook
Severity: normal
Tags: patch

When building 'cook' on amd64 with gcc-4.0,
I get the following error:

gcc -Ifile_check -Icommon  -g -O2 -c \
	file_check/file_check.c
file_check/file_check.c:31: error: static declaration of 'limit' follows non-static declaration
file_check/file_check.h:29: error: previous declaration of 'limit' was here
make[1]: *** [file_check/file_check.o] Error 1
make[1]: Leaving directory `/cook-2.23'
make: *** [build-stamp] Error 2

With the attached patch 'cook' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/cook-2.23/file_check/file_check.c ./file_check/file_check.c
--- ../tmp-orig/cook-2.23/file_check/file_check.c	2003-05-01 01:56:20.000000000 +0200
+++ ./file_check/file_check.c	2004-12-14 11:32:57.730866296 +0100
@@ -28,7 +28,7 @@
 #include <error_intl.h>
 
 int		warning;
-static int	limit;
+int		limit;
 static int	number_of_blank_lines;
 static int	number_of_errors;
 static int	line_number;



Reply to: