Skip to content

Commit 355a9ee

Browse files
authored
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.
1 parent 32e22c4 commit 355a9ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/experimental/ja4_fingerprint/test_ja4.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ TEST_CASE("JA4")
230230
"when we create a JA4 fingerprint, "
231231
"then indices [8,9] thereof should contain \"aa\".")
232232
{
233-
TLS_summary.ALPN = "a";
233+
TLS_summary.ALPN = 'a';
234234
CHECK("aa" == call_JA4(TLS_summary).substr(8, 2));
235235
}
236236

0 commit comments

Comments
 (0)