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

bcall 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 355a9ee34d Fix false positive -Wrestrict warning in test_ja4.cc with 
GCC 12 (#12690)
355a9ee34d is described below

commit 355a9ee34da878446356cd30b415e33f704fceee
Author: Bryan Call <[email protected]>
AuthorDate: Mon Dec 1 09:18:52 2025 -0800

    Fix false positive -Wrestrict warning in test_ja4.cc with GCC 12 (#12690)
    
    Assign 'a' directly instead of "a" to avoid the false positive
    -Wrestrict warning in GCC 12.
---
 plugins/experimental/ja4_fingerprint/test_ja4.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/experimental/ja4_fingerprint/test_ja4.cc 
b/plugins/experimental/ja4_fingerprint/test_ja4.cc
index 144730eb48..f6b43b0608 100644
--- a/plugins/experimental/ja4_fingerprint/test_ja4.cc
+++ b/plugins/experimental/ja4_fingerprint/test_ja4.cc
@@ -230,7 +230,7 @@ TEST_CASE("JA4")
           "when we create a JA4 fingerprint, "
           "then indices [8,9] thereof should contain \"aa\".")
   {
-    TLS_summary.ALPN = "a";
+    TLS_summary.ALPN = 'a';
     CHECK("aa" == call_JA4(TLS_summary).substr(8, 2));
   }
 

Reply via email to