Bug 1181814 - conditionalize fips_mode_available declaration on DEBUG to fix build errors r=bustage
authorElio Maldonado <emaldona@redhat.com>
Thu, 18 Feb 2016 11:14:13 -0800
changeset 11908 6c6c113700a10bf9d8261b4d5900f46de079fdcf
parent 11904 bda3307226f2a663cf21ba0fd92849dabd4ac6f1
child 11909 113dacd41f98975956fc5123df329f2ce7f98447
push id1001
push useremaldona@redhat.com
push dateThu, 18 Feb 2016 19:14:28 +0000
reviewersbustage
bugs1181814
Bug 1181814 - conditionalize fips_mode_available declaration on DEBUG to fix build errors r=bustage
lib/freebl/fipsfreebl.c
--- a/lib/freebl/fipsfreebl.c
+++ b/lib/freebl/fipsfreebl.c
@@ -1643,17 +1643,19 @@ freebl_fipsPowerUpSelfTest( unsigned int
  * nss-util are not loaded, then we can't run all the selftests, and we need
  * to prevent the softoken function pointer table from operating until the
  * libraries are loaded and we try to use them.
  */
 static PRBool self_tests_freebl_ran = PR_FALSE;
 static PRBool self_tests_ran = PR_FALSE;
 static PRBool self_tests_freebl_success = PR_FALSE;
 static PRBool self_tests_success = PR_FALSE;
+#if defined(DEBUG)
 static PRBool fips_mode_available = PR_FALSE;
+#endif
 
 /*
  * accessors for freebl
  */
 PRBool BL_POSTRan(PRBool freebl_only) 
 { 
     SECStatus rv;
     /* if the freebl self tests didn't run, there is something wrong with