Skip to content

Commit

Permalink
Bug 1614786 - Fixup for ‘getFIPSEnv’ being unused r=kjacobs
Browse files Browse the repository at this point in the history
Fixes a regression from Bug 1582169

../../lib/sysinit/nsssysinit.c:153:1: error: ‘getFIPSEnv’ defined but not used [-Werror=unused-function]

--HG--
extra : amend_source : b1dcbe0ce8eab20cc5cc46c5bd0a88908dceb8bb
  • Loading branch information
jcjones committed Feb 11, 2020
1 parent 15011aa commit 23ea0a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/sysinit/nsssysinit.c
Expand Up @@ -149,6 +149,7 @@ userCanModifySystemDB()
return (access(NSS_DEFAULT_SYSTEM, W_OK) == 0);
}

#ifndef NSS_FIPS_DISABLED
static PRBool
getFIPSEnv(void)
{
Expand All @@ -164,6 +165,7 @@ getFIPSEnv(void)
}
return PR_FALSE;
}
#endif /* NSS_FIPS_DISABLED */

static PRBool
getFIPSMode(void)
Expand All @@ -189,7 +191,7 @@ getFIPSMode(void)
return PR_TRUE;
#else
return PR_FALSE;
#endif
#endif /* NSS_FIPS_DISABLED */
}

#define NSS_DEFAULT_FLAGS "flags=readonly"
Expand Down

0 comments on commit 23ea0a4

Please sign in to comment.