[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Remove most warnings for missing extern
From: |
Tim Ruehsen |
Subject: |
Re: [Bug-wget] Remove most warnings for missing extern |
Date: |
Fri, 21 Nov 2014 15:50:46 +0100 |
User-agent: |
KMail/4.14.2 (Linux/3.16.0-4-amd64; KDE/4.14.2; x86_64; ; ) |
On Friday 21 November 2014 19:58:46 Darshit Shah wrote:
> On 11/21, Tim Rühsen wrote:
> >On Friday 21 November 2014 17:13:22 Darshit Shah wrote:
> >> Clang provides some warnings for missing extern declarations for
> >> non-static
> >> variables. The following two patches clear most of them. I can currently
> >> see only more such warning which is caused by build_info.c. To fix this,
> >> someone will have to hack on the build_info.px perl script.
> >
> >After ./boostrap
> >./configure
> >
> >I get
> >
> >main.c:58:21: fatal error: version.h: No such file or directory
> >
> > #include "version.h"
>
> I just ran:
> make maintainer-clean
> ./bootstrap
> ./configure
> make
>
> and it works for me without any issues. Maybe you could try running a simple
> make clean first? If it still doesn't work, I'll try looking into it again.
> But since I can't reproduce it, its hard to guess where the error would be.
Try to remove src/version.c and src/version.h. Than perform a 'make'.
IMHO, version.c and version.h has wrong dependencies in Makefile.am.
They depend on changed wget_SOURCES, which don't have to change.
I could make it work by using
version.h: $(srcdir)/Makefile.am
...
version.c: version.h
This at least worked (after a ./config.status), but it may be wrong.
What exactly has to change so that we need to rebuild version.[ch] ?
It's not the Wget sources !
Tim
> >Maybe you can also fix these warnings them before pushing:
> >
> >host.c: In function 'address_list_set_faulty':
> >host.c:148:55: warning: unused parameter 'index' [-Wunused-parameter]
> >
> > address_list_set_faulty (struct address_list *al, int index)
> >
> >cookies.c: In function 'discard_matching_cookie':
> >cookies.c:303:15: warning: variable 'res' set but not used
> >[-Wunused-but-set- variable]
> >
> > int res;
>
> It seems these warnings aren't enabled by -Wall and -Wextra on Clang. In
> fact -Wunused-but-set-variable is GCC specific only. Which is why I never
> saw these warnings in my output.
There is also:
utils.c: In function 'abort_run_with_timeout':
utils.c:1919:29: warning: unused parameter 'sig' [-Wunused-parameter]
abort_run_with_timeout (int sig)
signature.asc
Description: This is a digitally signed message part.