bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] [PATCH] Fixing C89 warnings


From: Tim Ruehsen
Subject: Re: [Bug-wget] [PATCH] Fixing C89 warnings
Date: Thu, 20 Nov 2014 11:05:37 +0100
User-agent: KMail/4.14.2 (Linux/3.16.0-4-amd64; KDE/4.14.2; x86_64; ; )

On Wednesday 19 November 2014 22:51:10 Gisle Vanem wrote:
> Tim Rühsen wrote:
> > This patch fixes most C89 warnings for me (-std=c89 -pedantic) since these
> > may prevent from compiling with MSVC.
> 
> That's really good news to me. But there are still lots
> more C99 "errors". Espesially in main.c.

I just know of 
main.c:226:33: warning: ISO C forbids conversion of function pointer to object 
pointer type [-Wpedantic]
     { "help", 'h', OPT_FUNCALL, (void *)print_help, no_argument },
                                 ^
main.c:312:36: warning: ISO C forbids conversion of function pointer to object 
pointer type [-Wpedantic]
     { "version", 'V', OPT_FUNCALL, (void *) print_version, no_argument },
                                    ^
main.c: In function 'main':
main.c:1163:35: warning: ISO C forbids conversion of object pointer to 
function pointer type [-Wpedantic]
             void (*func) (void) = (void (*) (void)) cmdopt->data;

And either I or Darshit care about it.

Please 'git pull' and send the (error/warning) output of MSVC compilation. I 
would like to know exactly what it complains about.

Tim

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]