This is an automated email from the ASF dual-hosted git repository.

mochen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new adb0127279 Fix a compiler warning in P_SNIActionPerformer.h (#10071)
adb0127279 is described below

commit adb01272797124c4a8f6a61e1c16f5dea084924f
Author: Mo Chen <[email protected]>
AuthorDate: Thu Jul 20 15:31:55 2023 -0500

    Fix a compiler warning in P_SNIActionPerformer.h (#10071)
    
    Put a member variable behind #ifdef to prevent unused variable warning.
---
 iocore/net/P_SNIActionPerformer.h | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/iocore/net/P_SNIActionPerformer.h 
b/iocore/net/P_SNIActionPerformer.h
index dde481c3a3..a3abb8200a 100644
--- a/iocore/net/P_SNIActionPerformer.h
+++ b/iocore/net/P_SNIActionPerformer.h
@@ -453,7 +453,12 @@ private:
 class ServerMaxEarlyData : public ActionItem
 {
 public:
-  ServerMaxEarlyData(uint32_t value) : server_max_early_data(value) {}
+  ServerMaxEarlyData(uint32_t value)
+#if TS_HAS_TLS_EARLY_DATA
+    : server_max_early_data(value)
+#endif
+  {
+  }
   ~ServerMaxEarlyData() override {}
 
   int
@@ -472,6 +477,8 @@ public:
     return SSL_TLSEXT_ERR_OK;
   }
 
+#if TS_HAS_TLS_EARLY_DATA
 private:
   uint32_t server_max_early_data = 0;
+#endif
 };

Reply via email to