Make code -Wunused-but-set-variable clean

Currently, the crosstool disables the warning -Wunused-but-set-variable.  The
default copts for third_party/quic/core/build_config.bzl enables this warning,
but the warning itself will not be available until the next crosstool release.

Tested:
    TAP --sample ran all affected tests and none failed
    http://test/OCL:390021594:BASE:389989385:1628643557015:7a5d694c
PiperOrigin-RevId: 390103143
diff --git a/quic/core/crypto/proof_source_x509_test.cc b/quic/core/crypto/proof_source_x509_test.cc
index 75a6099..0f5f4f2 100644
--- a/quic/core/crypto/proof_source_x509_test.cc
+++ b/quic/core/crypto/proof_source_x509_test.cc
@@ -58,8 +58,7 @@
       ProofSourceX509::Create(test_chain_, std::move(*test_key_));
   ASSERT_TRUE(proof_source != nullptr);
   test_key_ = CertificatePrivateKey::LoadFromDer(kTestCertificatePrivateKey);
-  bool result;
-  EXPECT_QUIC_BUG(result = proof_source->AddCertificateChain(
+  EXPECT_QUIC_BUG((void)proof_source->AddCertificateChain(
                       wildcard_chain_, std::move(*test_key_)),
                   "Private key does not match");
 }