Hi,

Thanks for your comment. I'll try to enable
-Werror=implicit-function-declaratin

On Wed, 13 Mar 2024 12:58:32 +0100
Lucas Nussbaum <lu...@debian.org> wrote:

[snip]
> This is most likely caused by a change in dpkg 1.22.6, that enabled
> -Werror=implicit-function-declaration. For more information, see
> https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration
> 
> Relevant part (hopefully):
> > cc -c arguments.c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
> > -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
> > -fstack-protector-strong -fstack-clash-protection -Wformat 
> > -Werror=format-security -fcf-protection
> > etc.c: In function ‘InitializeRand’:
> > etc.c:11:19: error: implicit declaration of function ‘time’ 
> > [-Werror=implicit-function-declaration]
> >    11 |   srand((unsigned)time(NULL));
> >       |                   ^~~~
> > etc.c:2:1: note: ‘time’ is defined in header ‘<time.h>’; did you forget to 
> > ‘#include <time.h>’?
> >     1 | #include "etc.h"
> >   +++ |+#include <time.h>
> >     2 | 
> > cat xfireworks.1 | gzip -9 > xfireworks.6.gz
> > gzip: warning: GZIP environment variable is deprecated; use an alias or 
> > script
> > cat xfireworks.conf | ./mkconf > xfireworks_conf.h
> > cc -c XFireworks.c -I/usr/X11R6/include -Wdate-time -D_FORTIFY_SOURCE=2 -g 
> > -O2 -Werror=implicit-function-declaration 
> > -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> > -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
> > cc1: some warnings being treated as errors
> > make[1]: *** [Makefile:73: etc.o] Error 1
[snip]

--
Yukiharu YABUKI <yyab...@debian.org>

Reply via email to