AI review of 2026-09-08_13-51-12-2a0c507aec8b-results.txt PR: #8834 https://github.com/cppcheck-opensource/cppcheck/pull/8834 Tested: 2a0c507aec8bbcc8f9f67f2ced881e082de37a3b Merge base: c976cac0ec531e1ff47b8cf78028f1182e84a35e Reviewed: 2026-10-10 20:37:48 UTC Model: claude-opus-5-5 (effort high) Results: 1 reviewed of 1 in the report Verdicts: 1 improvement Tokens: 1797 input, 0 cache read, 2949 cache write, 208 output The verdicts are written by AI and can be wrong. ---- 1 / 1 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/g/gtk-vnc/gtk-vnc_1.5.0.orig.tar.xz Result: main gtk-vnc-1.5.0/src/vncconnection.c:4782:63: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] Explanation: Line 4782 is `anonTLS ? TLS_PRIORITY ":+ANON-DH" : TLS_PRIORITY`. TLS_PRIORITY is a macro that Cppcheck did not expand, so the string literal in the first branch was left outside the AST. Main therefore treated both branches as just `TLS_PRIORITY` and reported a duplicate expression. The branches are actually different strings: one has ":+ANON-DH" appended. The PR now checks that both sides have the same trailing literal, so this false positive is gone.