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: Gisle Vanem
Subject: Re: [Bug-wget] [PATCH] Fixing C89 warnings
Date: Wed, 03 Dec 2014 13:41:13 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:33.0) Gecko/20100101 Firefox/33.0 SeaMonkey/2.30

That's really good news to me. But there are still lots
more C99 "errors". Espesially in main.c.

Now another C99 "error" got into openssl.c. Patch:

--- Git-latest/src/openssl.c    2014-12-03 14:06:19 +0000
+++ openssl.c   2014-12-03 14:14:37 +0000
@@ -170,6 +170,7 @@
 ssl_init (void)
 {
   SSL_METHOD const *meth;
+  long ssl_options = 0;

 #if OPENSSL_VERSION_NUMBER >= 0x00907000
   if (ssl_true_initialized == 0)
@@ -203,8 +204,6 @@
   SSLeay_add_all_algorithms ();
   SSLeay_add_ssl_algorithms ();

-  long ssl_options = 0;
-
   switch (opt.secure_protocol)
     {
 #ifndef OPENSSL_NO_SSL2

-----------

FYI. There are gcc options to trigger an error for these
  cases. Such as "gcc -Wdeclaration-after-statement -Werror".
  But there are other harmless warnings.

--
--gv



reply via email to

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