@@ -587,6 +587,8 @@ void SecureContext::AddCACert(const FunctionCallbackInfo<Value>& args) {
587
587
Environment* env = Environment::GetCurrent (args);
588
588
589
589
SecureContext* sc = Unwrap<SecureContext>(args.Holder ());
590
+ ClearErrorOnReturn clear_error_on_return;
591
+ (void ) &clear_error_on_return; // Silence compiler warning.
590
592
591
593
if (args.Length () != 1 ) {
592
594
return env->ThrowTypeError (" Bad parameter" );
@@ -647,6 +649,8 @@ void SecureContext::AddCRL(const FunctionCallbackInfo<Value>& args) {
647
649
648
650
void SecureContext::AddRootCerts (const FunctionCallbackInfo<Value>& args) {
649
651
SecureContext* sc = Unwrap<SecureContext>(args.Holder ());
652
+ ClearErrorOnReturn clear_error_on_return;
653
+ (void ) &clear_error_on_return; // Silence compiler warning.
650
654
651
655
CHECK_EQ (sc->ca_store_ , nullptr );
652
656
@@ -682,6 +686,8 @@ void SecureContext::AddRootCerts(const FunctionCallbackInfo<Value>& args) {
682
686
683
687
void SecureContext::SetCiphers (const FunctionCallbackInfo<Value>& args) {
684
688
SecureContext* sc = Unwrap<SecureContext>(args.Holder ());
689
+ ClearErrorOnReturn clear_error_on_return;
690
+ (void ) &clear_error_on_return; // Silence compiler warning.
685
691
686
692
if (args.Length () != 1 || !args[0 ]->IsString ()) {
687
693
return sc->env ()->ThrowTypeError (" Bad parameter" );
@@ -721,6 +727,8 @@ void SecureContext::SetECDHCurve(const FunctionCallbackInfo<Value>& args) {
721
727
void SecureContext::SetDHParam (const FunctionCallbackInfo<Value>& args) {
722
728
SecureContext* sc = Unwrap<SecureContext>(args.This ());
723
729
Environment* env = sc->env ();
730
+ ClearErrorOnReturn clear_error_on_return;
731
+ (void ) &clear_error_on_return; // Silence compiler warning.
724
732
725
733
// Auto DH is not supported in openssl 1.0.1, so dhparam needs
726
734
// to be specifed explicitly
@@ -825,6 +833,8 @@ void SecureContext::LoadPKCS12(const FunctionCallbackInfo<Value>& args) {
825
833
bool ret = false ;
826
834
827
835
SecureContext* sc = Unwrap<SecureContext>(args.Holder ());
836
+ ClearErrorOnReturn clear_error_on_return;
837
+ (void ) &clear_error_on_return; // Silence compiler warning.
828
838
829
839
if (args.Length () < 1 ) {
830
840
return env->ThrowTypeError (" Bad parameter" );
0 commit comments