Fix warning with MD/SHA ALT implementation
backport of 8b2641d
see #239
diff --git a/library/sha256.c b/library/sha256.c
index 2b4b7e1..674fdf2 100644
--- a/library/sha256.c
+++ b/library/sha256.c
@@ -50,13 +50,13 @@
#endif /* POLARSSL_PLATFORM_C */
#endif /* POLARSSL_SELF_TEST */
+#if !defined(POLARSSL_SHA256_ALT)
+
/* Implementation that should never be optimized out by the compiler */
static void polarssl_zeroize( void *v, size_t n ) {
volatile unsigned char *p = v; while( n-- ) *p++ = 0;
}
-#if !defined(POLARSSL_SHA256_ALT)
-
/*
* 32-bit integer manipulation macros (big endian)
*/