slightly improved compiler warning fixes

This commit is contained in:
Sylvain Rochet 2014-11-07 16:26:15 +01:00
parent bada7e0f92
commit 52dc9ef418
4 changed files with 8 additions and 16 deletions

View File

@ -40,8 +40,7 @@
*/ */
#include "lwip/opt.h" #include "lwip/opt.h"
#if PPP_SUPPORT #if PPP_SUPPORT && LWIP_INCLUDED_POLARSSL_DES
#if LWIP_INCLUDED_POLARSSL_DES
#include "netif/ppp/polarssl/des.h" #include "netif/ppp/polarssl/des.h"
@ -420,5 +419,4 @@ void des_crypt_ecb( des_context *ctx,
PUT_ULONG_BE( X, output, 4 ); PUT_ULONG_BE( X, output, 4 );
} }
#endif /* PPP_SUPPORT */ #endif /* PPP_SUPPORT && LWIP_INCLUDED_POLARSSL_DES */
#endif /* LWIP_INCLUDED_POLARSSL_DES */

View File

@ -40,8 +40,7 @@
*/ */
#include "lwip/opt.h" #include "lwip/opt.h"
#if PPP_SUPPORT #if PPP_SUPPORT && LWIP_INCLUDED_POLARSSL_MD4
#if LWIP_INCLUDED_POLARSSL_MD4
#include "netif/ppp/polarssl/md4.h" #include "netif/ppp/polarssl/md4.h"
@ -277,5 +276,4 @@ void md4( unsigned char *input, int ilen, unsigned char output[16] )
md4_finish( &ctx, output ); md4_finish( &ctx, output );
} }
#endif /* PPP_SUPPORT */ #endif /* PPP_SUPPORT && LWIP_INCLUDED_POLARSSL_MD4 */
#endif /* LWIP_INCLUDED_POLARSSL_MD4 */

View File

@ -39,8 +39,7 @@
*/ */
#include "lwip/opt.h" #include "lwip/opt.h"
#if PPP_SUPPORT #if PPP_SUPPORT && LWIP_INCLUDED_POLARSSL_MD5
#if LWIP_INCLUDED_POLARSSL_MD5
#include "netif/ppp/polarssl/md5.h" #include "netif/ppp/polarssl/md5.h"
@ -296,5 +295,4 @@ void md5( unsigned char *input, int ilen, unsigned char output[16] )
md5_finish( &ctx, output ); md5_finish( &ctx, output );
} }
#endif /* PPP_SUPPORT */ #endif /* PPP_SUPPORT && LWIP_INCLUDED_POLARSSL_MD5 */
#endif /* LWIP_INCLUDED_POLARSSL_MD5 */

View File

@ -39,8 +39,7 @@
*/ */
#include "lwip/opt.h" #include "lwip/opt.h"
#if PPP_SUPPORT #if PPP_SUPPORT && LWIP_INCLUDED_POLARSSL_SHA1
#if LWIP_INCLUDED_POLARSSL_SHA1
#include "netif/ppp/polarssl/sha1.h" #include "netif/ppp/polarssl/sha1.h"
@ -331,5 +330,4 @@ void sha1( unsigned char *input, int ilen, unsigned char output[20] )
sha1_finish( &ctx, output ); sha1_finish( &ctx, output );
} }
#endif /* PPP_SUPPORT */ #endif /* PPP_SUPPORT && LWIP_INCLUDED_POLARSSL_SHA1 */
#endif /* LWIP_INCLUDED_POLARSSL_SHA1 */