]> granicus.if.org Git - curl/commitdiff
mbedtls: make TU-local variable static
authorMarcel Raad <raad@teamviewer.com>
Fri, 2 Jun 2017 20:05:01 +0000 (22:05 +0200)
committerMarcel Raad <raad@teamviewer.com>
Fri, 2 Jun 2017 20:05:01 +0000 (22:05 +0200)
mbedtls_x509_crt_profile_fr is only used locally.
This fixes a missing-variable-declarations warning with clang.

lib/vtls/mbedtls.c

index e7359340d75f41ae084cbdacd652d25afd6570a1..037babe388ab44aede6eabdda8853c9c389b06d3 100644 (file)
@@ -131,7 +131,7 @@ static void mbed_debug(void *context, int level, const char *f_name,
 /*
  *  profile
  */
-const mbedtls_x509_crt_profile mbedtls_x509_crt_profile_fr =
+static const mbedtls_x509_crt_profile mbedtls_x509_crt_profile_fr =
 {
   /* Hashes from SHA-1 and above */
   MBEDTLS_X509_ID_FLAG(MBEDTLS_MD_SHA1) |