bug 1601912 - "use" CRLite fields in NSSCertDBTrustDomain to silence compiler warnings r=jcj

When cert_storage is disabled, the CRLite mode and telemetry fields don't get
used by NSSCertDBTrustDomain, so we get warnings-as-errors about unused fields.
This uses Unused to silence the warnings.

This also adds a missing #include to CertBlocklist.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D56250

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dana Keeler 2019-12-09 15:22:29 +00:00
Родитель 5c2ef41446
Коммит 63f481b65a
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -698,6 +698,11 @@ Result NSSCertDBTrustDomain::CheckRevocation(
}
}
}
#else
// "use" these fields to stop the compiler from complaining when
// MOZ_NEW_CERT_STORAGE is disabled.
Unused << mCRLiteMode;
Unused << mCRLiteTelemetryInfo;
#endif
// Bug 991815: The BR allow OCSP for intermediates to be up to one year old.

Просмотреть файл

@ -14,6 +14,7 @@
#include "mozilla/Preferences.h"
#include "mozilla/Unused.h"
#include "nsAppDirectoryServiceDefs.h"
#include "nsComponentManagerUtils.h" // for do_CreateInstance
#include "nsDependentString.h"
#include "nsDirectoryServiceUtils.h"
#include "nsICryptoHash.h"