AI review of 2026-11-23_04-25-02-dc69bb7a8666-results.txt PR: #8720 https://github.com/cppcheck-opensource/cppcheck/pull/8720 Tested: dc69bb7a866643c81620ff19e2db32a02fe43e09 Merge base: 21459e9c4fb9972797c9191f48806ce46bf4216e Reviewed: 2026-11-23 18:15:40 UTC Model: claude-opus-5-5 (effort high) Results: 50 reviewed of 295 in the report (random sample) Verdicts: 20 improvement, 8 neutral, 20 regression, 2 unclear Tokens: 134741 input, 3157920 cache read, 789480 cache write, 36538 output The verdicts are written by AI and can be wrong. ---- 1 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/0/0ad/0ad_0.28.0.orig.tar.xz Result: your 0ad-0.28.0/source/collada/CommonConvert.h:136:9: portability:inconclusive: Casting from const float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] Explanation: `write` is called with float arguments. The PR now deduces `T` and instantiates `write`, so the body `(char*)&data` is analyzed with `data` as `const float&`. Casting `const float*` to `char*` is exactly what invalidPointerCast reports, as an inconclusive portability warning for char targets, and a non-template function would get the same warning. Here the raw float bytes are written to an output stream, which is serialization that depends on the platform's float representation, so the warning is relevant. This is a new true positive found through the better template instantiation, not a misunderstanding of the code. ---- 2 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/0/0ad/0ad_0.28.0.orig.tar.xz Result: your 0ad-0.28.0/source/third_party/mongoose/mongoose.cpp:1371:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Explanation: Line 1371 expands mongoose's `SSL_write` macro, which casts `ssl_sw[4].ptr` (type `void (*)(void)`) to `int (*)(SSL *, const void *, int)` with a C-style cast. Before the PR, Cppcheck had no value type for function pointers and only reported the generic style message `cstyleCast`. The PR adds a FUNCTION value type, so Cppcheck now sees a conversion between unrelated function pointer types. That conversion can only be done with reinterpret_cast, which is the case `dangerousTypeCast` is meant to report, like `float*` to `int*`. The new message therefore classifies the cast more accurately. The cast is intentional dlsym-style code and works when the loaded symbol really has that signature, so the higher severity may feel noisy to users. That is why confidence is low. ---- 3 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/0/0ad/0ad_0.28.0.orig.tar.xz Result: your 0ad-0.28.0/source/third_party/mongoose/mongoose.cpp:617:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] Explanation: In mongoose, when SSL is loaded dynamically, `ERR_error_string` is a macro: `(* (char * (*)(unsigned long, char *)) crypto_sw[3].ptr)`. That is a C-style cast from `void *` to a pointer to function. Before the PR, cppcheck had no valuetype for function pointers and only reported the generic style message cstyleCast. With the new FUNCTION valuetype, it sees that the target is a function pointer. Converting an object pointer (`void *`) to a function pointer is not something static_cast can do. It needs reinterpret_cast and is only conditionally supported. So "Potentially invalid type conversion in old-style C cast" (dangerousTypeCast) describes this cast more precisely. The same location is still reported; only the classification became more accurate, which is consistent with the other changed lines for the dynamically loaded SSL functions. ---- 4 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/a/avogadrolibs/avogadrolibs_2.0.0.orig.tar.gz Result: your OpenChemistry-avogadrolibs-ceb949f/avogadro/core/variant-inline.h:281:19: style: The member function 'Avogadro::Core::Variant::value' can be static. [functionStatic] OpenChemistry-avogadrolibs-ceb949f/avogadro/core/variant.h:79:5: note: The member function 'Avogadro::Core::Variant::value' can be static. OpenChemistry-avogadrolibs-ceb949f/avogadro/core/variant-inline.h:281:19: note: The member function 'Avogadro::Core::Variant::value' can be static. Explanation: Line 281 is the primary template `template T Variant::value() const { return 0; }`. Its explicit specializations (bool, char, short, int, …) read `m_type` and `m_value`. A member template and its explicit specializations share one declaration, so the primary template cannot be made static without breaking those specializations. Suggesting `static` is therefore a false positive. Cppcheck normally avoids this warning on uninstantiated templates. The new functionStatic report appears because the PR's template handling (deferred removal / kept generic definitions) now exposes the generic template body to the check. ---- 5 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/a/avogadrolibs/avogadrolibs_2.0.0.orig.tar.gz Result: your OpenChemistry-avogadrolibs-ceb949f/thirdparty/pugixml/pugixml.cpp:4814:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable status_io_error [valueFlowBailoutIncompleteVar] Explanation: `status_io_error` is an enumerator of pugi's `xml_parse_status` enum, which is visible inside `convert_file_size`. Cppcheck should resolve it, not treat it as an incomplete variable. The new bailout shows that after the PR's template changes, the generic body of `convert_file_size` is kept or re-analysed without its enumerators linked. The likely cause is that the call argument `st.st_size` has an unknown type, so deduction fails and the generic definition stays. ValueFlow now skips the whole function, so Cppcheck understands the code worse. The companion new bailout on the template parameter `T` at line 9253 points the same way. ---- 6 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/a/avogadrolibs/avogadrolibs_2.0.0.orig.tar.gz Result: your OpenChemistry-avogadrolibs-ceb949f/thirdparty/pugixml/pugixml.cpp:9253:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] Explanation: `new_xpath_variable(name)` is only ever called with explicit template arguments (`new_xpath_variable(name)` and so on), so main instantiated it and removed the generic template. The PR now keeps the generic definition when `hasRemainingCalls()` finds a plain call `new_xpath_variable ( ... )`. That check matches by name only, so it most likely matches calls to the non-template overload `new_xpath_variable(xpath_value_type, const char_t*)`. The uninstantiated template body stays in the token list, ValueFlow sees `sizeof(T)` with `T` unknown, and it emits a new bailout. This new debug message shows Cppcheck now handles this code worse, not better. ---- 7 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/b/binaryen/binaryen_131.orig.tar.gz Result: main binaryen-version_131/src/wasm-binary.h:64:55: style: Unsigned expression 'value' can't be negative so it is unnecessary to test it. [unsignedPositive] Explanation: `value` has type `T`, a template parameter of `LEB`. The test `value >= 0` only runs on the `std::is_signed::value` branch, so it matters for signed instantiations. Warning that it is unnecessary because one instantiation uses an unsigned T is a false positive for generic template code. The PR makes testIfNonZeroExpressionIsPositive skip variables whose type token is a template argument, which removes this false positive. (The separately added knownConditionTrueFalse is a different result line.) ---- 8 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/b/binaryen/binaryen_131.orig.tar.gz Result: your binaryen-version_131/src/wasm-binary.h:64:55: style: Condition 'value>=0' is always true [knownConditionTrueFalse] Explanation: `LEB` is a class template. `value >= 0` sits in the `std::is_signed::value` branch of the ternary, so it only matters when T is signed. It is always true only in unsigned instantiations, where that branch's result is discarded anyway. The PR stopped `unsignedPositive` from firing on template-argument types, which is the intended fix for this template false positive. But the same template-dependent condition is now reported as `knownConditionTrueFalse`. That is still a false positive on generic code, just under another ID, so this added line is a new false positive. ---- 9 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/c/cadabra2/cadabra2_2.4.3.2.orig.tar.gz Result: your cadabra2-2.4.3.2/core/Props.hh:357:104: style:inconclusive: Function 'get_with_pattern_ext < labelled_property >' argument 2 names different: declaration '' definition 'comp'. [funcArgNamesDifferentUnnamed] Explanation: The PR now instantiates `get_with_pattern_ext`, so cppcheck compares the in-class declaration with the out-of-class definition at line 357. The message says the declaration leaves the first two parameters unnamed while the definition names them `it` and `comp`. That fits cadabra's header style (`get_with_pattern_ext(Ex::iterator, Ex_comparator&, int& serialnum, ...)`), but the declaration is not in the shown excerpt. If so, this is a genuine (inconclusive, style) finding that main missed. The downside is noise: the same location is reported once per instantiation (28 times). ---- 10 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/c/cadabra2/cadabra2_2.4.3.2.orig.tar.gz Result: your cadabra2-2.4.3.2/core/Props.hh:357:85: style:inconclusive: Function 'get_with_pattern_ext < LaTeXForm >' argument 1 names different: declaration '' definition 'it'. [funcArgNamesDifferentUnnamed] Explanation: The out-of-class definition of the member template `Properties::get_with_pattern_ext` names its first parameter `it`, while the in-class declaration very likely leaves it unnamed. That matches the style of the surrounding declarations (lines 319-328 use unnamed parameters). Only arguments 1 and 2 are flagged, not `serialnum` or `label`, which fits this pattern. So the declaration-unnamed/definition-named mismatch that `funcArgNamesDifferentUnnamed` targets is really there. The PR now links the instantiated template definitions to their declarations, so the check sees them. The drawbacks are that the same finding is repeated once per instantiation (28 times) and the message uses the instantiated name `get_with_pattern_ext < LaTeXForm >`. The finding itself is still a valid, if inconclusive, style issue. ---- 11 / 50 ---- Verdict: REGRESSION (high confidence) Package: https://ftp.debian.org/debian/pool/main/c/cppcheck/cppcheck_2.22.0.orig.tar.gz Result: your cppcheck-2.22.0/lib/calculate.h:127:12: debug: Failed to instantiate template "calculate". The checking continues anyway. [templateInstantiation] Explanation: The PR adds a new debug message: Failed to instantiate template "calculate" at the `calculate(s, x, y, error)` call inside the 1-arg-template overload. The PR's own .selfcheck_suppressions change says this call "cannot be instantiated by the template simplifier". The new type-deduction machinery now instantiates the outer `calculate` and leaves this call it cannot resolve. That is a new debug/bailout message in valid code, which shows the simplifier handles this code worse than before. ---- 12 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/d/drumgizmo/drumgizmo_0.9.20.orig.tar.gz Result: your drumgizmo-0.9.20/pugixml/src/pugixml.cpp:8597:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] Explanation: `new_xpath_variable` is only ever called with explicit template arguments, so main instantiated it and removed the generic definition. There is also a non-template overload `new_xpath_variable(xpath_value_type, const char_t*)` with the same name, and code elsewhere calls it as a plain `new_xpath_variable(type, name)`. The PR's new `hasRemainingCalls()` logic matches calls by name only, so it likely treats those overload calls as undeduced calls of the template and keeps the generic definition. ValueFlow then analyses the uninstantiated body, where `T` is an unknown name, and emits a new incompleteVar bailout. The new debug message shows Cppcheck now leaves template code it previously removed, which is worse understanding of the code. ---- 13 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/f/fityk/fityk_1.3.2.orig.tar.gz Result: main fityk-1.3.2/fityk/cparser.cpp:275:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] Explanation: Column 71 of line 275 is the member `type` in `lex_.get_expected_token(kTokenComma, kTokenClose).type`. This is a real data member of the `Token` struct that the call returns, so it is not an incomplete variable. The PR moves `createSymbolDatabaseIncompleteVars` into `finalize()`. That now runs after the second `setValueTypeInTokenList` pass, which also refreshes the variable pointers. So the member access through the call's return type is probably resolved before incomplete variables are collected. The bailout disappearing means ValueFlow no longer skips `next_arg()`, which reflects better understanding of the code. ---- 14 / 50 ---- Verdict: UNCLEAR (low confidence) Package: https://ftp.debian.org/debian/pool/main/h/highwayhash/highwayhash_0~git20200803.9490b14.orig.tar.xz Result: main highwayhash-0~git20200803.9490b14/highwayhash/scalar_sip_tree_hash.cc:79:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v0 [valueFlowBailoutIncompleteVar] Explanation: The removed line is a debug bailout (valueFlowBailoutIncompleteVar) for member `v0` inside the member template `Compress` of the class template `ScalarSipTreeHashState`. `v0` is a normal data member declared later in the class, so the bailout was always a limitation and its disappearance does not hurt users. However, the PR changes how the template is handled. In the same package it also adds an unusedPrivateFunction report for `RotateLeft`, which `Compress` clearly calls. That suggests the generic/instantiated template code is now laid out differently, not that Cppcheck resolves `v0` better. Whether the bailout vanished because the variable is now understood, or because the function body is gone or analysed elsewhere, cannot be told from the output. ---- 15 / 50 ---- Verdict: REGRESSION (high confidence) Package: https://ftp.debian.org/debian/pool/main/h/highwayhash/highwayhash_0~git20200803.9490b14.orig.tar.xz Result: your highwayhash-0~git20200803.9490b14/highwayhash/scalar_sip_tree_hash.cc:69:27: style: Unused private function: 'ScalarSipTreeHashState < 2 , 4 >::RotateLeft' [unusedPrivateFunction] Explanation: RotateLeft is a private static member template of ScalarSipTreeHashState<2,4>. Compress() calls it many times with explicit template arguments (RotateLeft<13>(v1) and others), so it is used. The new warning that 'ScalarSipTreeHashState < 2 , 4 >::RotateLeft' is unused is a false positive. It most likely comes from the changed template instantiation and deferred-removal handling: the RotateLeft calls inside the class template instantiation are no longer matched to the generic member template. The removed valueFlowBailoutIncompleteVar debug message is minor next to the new false positive. ---- 16 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/h/hipfft/hipfft_7.2.4.orig.tar.gz Result: your hipfft/library/src/amd_detail/hipfftw.cpp:974:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] Explanation: The new debug bailout points at `type` in the `static_assert` of the function template `hipfftw_alloc_host_accessible`. `type` is a non-type template parameter, so the bailout means ValueFlow is now walking the generic, uninstantiated template body. There it treats the template parameter as an incomplete variable and skips the function. This is most likely caused by the PR's new rule that keeps the generic definition while calls without template arguments remain (here probably calls that rely on the default template arguments), instead of removing it after instantiation. A new bailout on generic template code shows Cppcheck handling this code worse, not better. ---- 17 / 50 ---- Verdict: REGRESSION (high confidence) Package: https://ftp.debian.org/debian/pool/main/i/iwyu/iwyu_8.27.orig.tar.gz Result: your include-what-you-use-0.27/vendor/googletest/src/gtest-printers.cc:268:34: style: Condition '1<=c' is always true [knownConditionTrueFalse] include-what-you-use-0.27/vendor/googletest/src/gtest-printers.cc:262:9: note: Assuming that condition 'c==0' is not redundant include-what-you-use-0.27/vendor/googletest/src/gtest-printers.cc:268:34: note: Condition '1<=c' is always true Explanation: The new deduction now instantiates the template `PrintCharAndCodeTo` for `unsigned char`, `signed char` and `wchar_t`. In the `unsigned char` instantiation, `c != 0` does imply `1 <= c`, which is why the warning fires. The code is generic, though. For the `signed char` instantiation (and a signed `wchar_t`), `c` can be negative, so `1 <= c` is a real, needed check. Removing it as the warning suggests would break the other instantiations. A knownConditionTrueFalse that holds for only one instantiation of a template is a false positive for users. ---- 18 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/j/jpeg-xl/jpeg-xl_0.13.0.orig.tar.gz Result: your libjxl-libjxl-5a7da83/lib/jxl/enc_lz77.cc:176:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kHashSize [valueFlowBailoutIncompleteVar] Explanation: GetHash has a non-type template parameter with a default, `int kHashSize=3`. The new type deduction cannot handle non-type parameters. However, the PR's new hasRemainingCalls/deferred-removal logic keeps the generic template definition when plain calls like `GetHash(pos, data_)` remain. Main apparently did not analyze this generic body at all. Now Cppcheck processes the uninstantiated template, where kHashSize is an unresolved template parameter, and emits a new valueFlowBailoutIncompleteVar debug message. This is a new bailout caused by keeping template code that Cppcheck does not understand, not by better understanding of the code. ---- 19 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/k/kmymoney/kmymoney_5.2.2.orig.tar.xz Result: your kmymoney-5.2.2/kmymoney/widgets/payeeidentifier/nationalaccount/nationalaccountedit.cpp:13:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug] Explanation: The PR adds a new debug message, 'SymbolDatabase couldn't resolve all user defined types', at the nested struct `nationalAccountEdit::Private`. The main branch did not report it. The code is valid: a pimpl struct with members `Ui::nationalAccountEdit ui` and `payeeIdentifier m_identifier`. The likely cause is the PR's new type-deduction rounds, which rebuild or incrementally update the symbol database after template simplification. Afterwards the database fails to resolve a type it resolved before. A new debug message on unchanged code means Cppcheck understands this code worse. ---- 20 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/libc/libcitygml/libcitygml_2.5.2.orig.tar.gz Result: your libcitygml-2.5.2/sources/src/parser/addressparser.cpp:42:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable args [valueFlowBailoutIncompleteVar] Explanation: Line 42 is the body of a variadic `make_unique` function template in an anonymous namespace. The new valueFlowBailoutIncompleteVar debug message says Cppcheck now analyzes a copy of this body where the parameter pack `args` has no variable id. This is most likely the generic definition that the PR keeps through deferred removal or the remaining-calls logic, or an instantiation whose variadic pack is not expanded. Main did not report this. Type deduction does not support variadic templates, so nothing is gained here, and the user only gets a new bailout on code Cppcheck still does not understand. ---- 21 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/libk/libkff/libkff_0.0~git20250321.cf4d866.orig.tar.xz Result: your libkff-0.0~git20250321.cf4d866/kff_io.cpp:27:32: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] Explanation: `load_big_endian` only reads through `buff` (`data |= buff[b]`) and never writes to it. The parameter type `uint8_t *` does not depend on `T`, so declaring it `const uint8_t *` is valid for every instantiation, and callers' `uint8_t*` arguments convert implicitly. The PR now instantiates this template from calls whose template argument is deduced, so the body gets checked. The new constParameterPointer warning is a true positive. ---- 22 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/libk/libktorrent/libktorrent_26.04.0.orig.tar.xz Result: main libktorrent-26.04.0/src/bcodec/bencoder.h:125:10: style: The member function 'bt::BEncoder::write < int >' can be static. [functionStatic] libktorrent-26.04.0/src/bcodec/bencoder.h:125:10: note: The member function 'bt::BEncoder::write < int >' can be static. libktorrent-26.04.0/src/bcodec/bencoder.h:125:10: note: The member function 'bt::BEncoder::write < int >' can be static. Explanation: The template member `BEncoder::write(const QByteArray &key, T val)` calls the non-static overloads `write(key)` and `write(val)`, which write to the member `out`. It cannot be static, so main's functionStatic warning for the `write` instantiation was a false positive. Main probably created that instantiation through the old literal-only deduction on a member call such as `enc.write("key", 1)`, without resolving the inner calls. The PR changes how member calls are deduced and instantiated, and the false positive is gone. ---- 23 / 50 ---- Verdict: REGRESSION (high confidence) Package: https://ftp.debian.org/debian/pool/main/libo/libopenshot-audio/libopenshot-audio_0.5.0+dfsg1.orig.tar.xz Result: your libopenshot-audio-0.5.0/JuceLibraryCode/modules/juce_dsp/containers/juce_SIMDRegister_test.cpp:815:55: style: Argument 'SIMDRegisterUnitTests' shadows outer variable [shadowVariable] libopenshot-audio-0.5.0/JuceLibraryCode/modules/juce_dsp/containers/juce_SIMDRegister_test.cpp:875:30: note: Shadowed variable libopenshot-audio-0.5.0/JuceLibraryCode/modules/juce_dsp/containers/juce_SIMDRegister_test.cpp:815:55: note: Shadow argument Explanation: The template parameter `TheTest` is unnamed in the source (`void runTestNonComplex (const char* unitTestName, TheTest)`). With the PR, calls like `runTestNonComplex("...", CheckMinMax{})` are now instantiated by type deduction. The deduced type is written as the qualified name `juce :: dsp :: SIMDRegisterUnitTests :: CheckMinMax`, and that substitution splits the type into tokens. The token `SIMDRegisterUnitTests` is then taken as a parameter name, so Cppcheck reports that an 'Argument SIMDRegisterUnitTests' shadows the global variable at line 875. No such argument exists, so this is a false positive caused by the new template instantiation (the related funcArgNamesDifferentUnnamed warnings show the same misparse). ---- 24 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/libp/libpwiz/libpwiz_3.0.18342.orig.tar.gz Result: your libpwiz-src-301b48c-3.0.18342/pwiz/data/msdata/Serializer_mzXML.cpp:48:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug] Explanation: The PR adds a new debug message, 'SymbolDatabase couldn't resolve all user defined types', at the class Serializer_mzXML::Impl declaration. Main did not report it. The PR adds type deduction rounds that rebuild or incrementally update the symbol database, so this new debug output most likely comes from that new code losing type information along the way. The source code itself did not change, so the message shows Cppcheck now understands the code worse. ---- 25 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/libr/libretro-beetle-psx/libretro-beetle-psx_0.9.38.6+git20261120+ds.orig.tar.xz Result: main libretro-beetle-psx-0.9.38.6+git20261120/tools/glhost/glhost.c:779:12: portability: %zu in format string (no. 2) requires 'size_t' but the argument type is 'ssize_t_t {aka unsigned long}'. [invalidPrintfArgType_uint] Explanation: `ssz` is a function pointer of typedef type `ssize_t_t` (almost certainly `size_t (*)(void)`), loaded with dlsym from `retro_serialize_size`. So `ssz()` returns `size_t`, and `%zu` is the correct format. The code itself relies on this when it assigns `size_t need = ssz();`. Main gave the call expression the type of the pointer typedef itself ('ssize_t_t {aka unsigned long}'), which produced a false positive. The PR adds a FUNCTION ValueType and sets the type of a call through a function pointer to the declared return type, so the false warning goes away. ---- 26 / 50 ---- Verdict: REGRESSION (high confidence) Package: https://ftp.debian.org/debian/pool/main/libv/libva/libva_2.24.1.orig.tar.gz Result: your intel-libva-5a99f4a/va/glx/va_glx_impl.c:156:9: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] Explanation: `get_proc_func` is a function pointer of type `GLXGetProcAddressProc`, and `get_proc_address_func` returns exactly that type. No integer is returned, so this new CastIntegerToAddressAtReturn warning is a false positive. It most likely comes from the PR's new FUNCTION ValueType handling of typedef'd function-pointer declarators, which makes the 64-bit portability check misclassify the returned value or the return type. ---- 27 / 50 ---- Verdict: REGRESSION (high confidence) Package: https://ftp.debian.org/debian/pool/main/libv/libva/libva_2.24.1.orig.tar.gz Result: your intel-libva-5a99f4a/va/glx/va_glx_impl.c:161:9: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] Explanation: `get_proc_func` is a variable of type GLXGetProcAddressProc, which is a function pointer typedef. The function returns that same type, so returning it is a pointer-to-pointer return, not an integer returned as a pointer. The PR adds ValueType::FUNCTION and places it before BOOL in the enum. The return-type check apparently compares or classifies types in a way that now treats the function type (or the parsed return type) as an integral/non-pointer value. That makes this warning a new false positive. ---- 28 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/libw/libwildmagic/libwildmagic_5.17+cleaned1.orig.tar.gz Result: your libwildmagic-5.17+cleaned1/LibMathematics/Intersection/Wm5IntrUtility3.cpp:1580:10: style:inconclusive: Function 'ClipConvexPolygonAgainstPlane' argument 2 names different: declaration 'bonstant' definition 'constant'. [funcArgNamesDifferent] libwildmagic-5.17+cleaned1/LibMathematics/Intersection/Wm5IntrUtility3.h:212:10: note: Function 'ClipConvexPolygonAgainstPlane' argument 2 names different: declaration 'bonstant' definition 'constant'. libwildmagic-5.17+cleaned1/LibMathematics/Intersection/Wm5IntrUtility3.cpp:1580:10: note: Function 'ClipConvexPolygonAgainstPlane' argument 2 names different: declaration 'bonstant' definition 'constant'. Explanation: The header Wm5IntrUtility3.h:212 declares the function template ClipConvexPolygonAgainstPlane with its second parameter named 'bonstant', which is a typo. The definition at line 1580 names it 'constant'. Cppcheck takes both names directly from the tokens, so the mismatch really exists in the source. The PR keeps or instantiates this function template, so the declaration and definition are now linked and compared. The new funcArgNamesDifferent warning is therefore a true positive: a real naming inconsistency, most likely a typo. ---- 29 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/m/mapserver/mapserver_8.6.6.orig.tar.gz Result: your mapserver-8.6.6/src/renderers/agg/src/agg_font_freetype.cpp:156:21: style: Variable 'limit' can be declared as pointer to const [constVariablePointer] Explanation: With the PR, Cppcheck deduces the template arguments of calls to `decompose_ft_outline`, so the template body is now instantiated and checked. In the AGG FreeType decomposer, `limit` is assigned `outline.points + last`, decremented with `limit--`, and only compared against `point` (`point < limit`). Nothing is ever written through `limit`, so declaring it `const FT_Vector*` compiles fine and keeps the same behaviour. The warning is a new true positive in code that was not analysed before. ---- 30 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/m/muscle/muscle_5.1.0.orig.tar.gz Result: main muscle-5.1.0/src/sort.h:75:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Desc [valueFlowBailoutIncompleteVar] Explanation: In main, the generic template body of QuickSortOrderRecurse was analysed uninstantiated. There, the non-type template parameter 'Desc' is an unknown name, which caused the valueFlowBailoutIncompleteVar debug message. The PR deduces template arguments for calls without explicit arguments (e.g. a wrapper like QuickSortOrder(Values, N, Order)). That most likely lets the chain instantiate QuickSortOrderRecurse, where Desc becomes a concrete value, and the generic definition is then removed. The bailout disappearing therefore reflects better template understanding, not lost analysis. ---- 31 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/n/neartree/neartree_5.1.1+dfsg1.orig.tar.gz Result: main neartree-5.1.1+dfsg1/TNear.h:6231:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable end [valueFlowBailoutIncompleteVar] Explanation: `end` here is an enumerator of the local direction enum (`left`/`right`/`end`) in a member function of the CNearTree class template. It is not an incomplete variable. Main bailed out of valueFlowConditionExpressions because it failed to resolve this token in the instantiated copy. The PR adds re-resolution of copied eEnumerator tokens that have no enumerator in createSymbolDatabaseEnums. The same bailout disappears at all the analogous locations, and new knownCondition results appear elsewhere in the file. Together these point to the function now being analysed rather than skipped, so the bailout went away because Cppcheck understands the code better. ---- 32 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/n/neartree/neartree_5.1.1+dfsg1.orig.tar.gz Result: main neartree-5.1.1+dfsg1/TNear.h:7406:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable end [valueFlowBailoutIncompleteVar] Explanation: In this tree-traversal loop, `end` is a direction value (like `left` and `right`) assigned to `eDir`, most likely an enumerator. On main, Cppcheck treated `end` as an incomplete variable and skipped the whole function in valueFlowConditionExpressions. The PR re-resolves enumerator tokens copied by the template simplifier and builds the incomplete-variable list only after template simplification. So `end` is now recognised and the bailout goes away. The same bailout also disappears for many sibling functions, and new value-flow results appear in similar functions (e.g. lines 5139 and 5562). This suggests these functions are now analysed rather than silently dropped. ---- 33 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/n/neartree/neartree_5.1.1+dfsg1.orig.tar.gz Result: your neartree-5.1.1+dfsg1/TNear.h:4309:14: style:inconclusive: Technically the member function 'CNearTree < v , double , -1 >::NearTreeNode < v , double , -1 >::get_fields' can be const. [functionConst] Explanation: get_fields only reads members and writes them into its reference parameters, so the functionConst warning is correct. The same warning appears in main, but there the class is named 'NearTreeNode < v , double , -1 >'. The PR's change to addNamespace now writes the enclosing class template instantiation as one name with spaces, giving 'CNearTree < v , double , -1 >::NearTreeNode < v , double , -1 >'. That is the nested class's full name, so the message is more accurate. ---- 34 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/o/opencc/opencc_1.4.2+ds1.orig.tar.xz Result: main OpenCC-ver.1.4.2/src/SerializedValues.cpp:51:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INT_TYPE [valueFlowBailoutIncompleteVar] Explanation: WriteInteger is called with uint32_t and uint16_t variables (numItems, valueTotalLength, numValues, numValueBytes). Before the PR the template was never instantiated, so its generic body was analysed with INT_TYPE as an unknown identifier, and ValueFlow bailed out because of the incomplete variable. The PR deduces the template arguments from the variable types, instantiates WriteInteger and WriteInteger, and removes the generic template. The bailout on line 51 disappears because Cppcheck now understands and analyses the concrete instantiations. ---- 35 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/o/openmesh/openmesh_11.0.0.orig.tar.gz Result: your OpenMesh-11.0.0/src/OpenMesh/Core/Utils/PropertyCreator.hh:121:8: style: The member function 'OpenMesh::PropertyCreatorImpl < PropertyCreatorT < Vec6d > >::create_prop < FaceHandle , FaceHandle >' can be static. [functionStatic] OpenMesh-11.0.0/src/OpenMesh/Core/Utils/PropertyCreator.hh:121:8: note: The member function 'OpenMesh::PropertyCreatorImpl < PropertyCreatorT < Vec6d > >::create_prop < FaceHandle , FaceHandle >' can be static. OpenMesh-11.0.0/src/OpenMesh/Core/Utils/PropertyCreator.hh:121:8: note: The member function 'OpenMesh::PropertyCreatorImpl < PropertyCreatorT < Vec6d > >::create_prop < FaceHandle , FaceHandle >' can be static. Explanation: `create_prop` really does not use `this`, so a functionStatic remark on line 121 is defensible in itself. The new messages, however, name instantiations that do not exist. Every call passes `typename PropertyCreatorT::type` (Vec6d here) as the second template argument, yet Cppcheck reports `create_prop`, ``, `` and so on. This means the PR's template handling substituted the wrong type for PropT. The same line now gets five duplicate warnings with bogus names. That reflects a worse understanding of the code and less accurate messages, not a newly found real issue. ---- 36 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/o/openmesh/openmesh_11.0.0.orig.tar.gz Result: your OpenMesh-11.0.0/src/OpenMesh/Core/Utils/PropertyCreator.hh:121:8: style: The member function 'OpenMesh::PropertyCreatorImpl < PropertyCreatorT < Vec6d > >::create_prop < HalfedgeHandle , FaceHandle >' can be static. [functionStatic] OpenMesh-11.0.0/src/OpenMesh/Core/Utils/PropertyCreator.hh:121:8: note: The member function 'OpenMesh::PropertyCreatorImpl < PropertyCreatorT < Vec6d > >::create_prop < HalfedgeHandle , FaceHandle >' can be static. OpenMesh-11.0.0/src/OpenMesh/Core/Utils/PropertyCreator.hh:121:8: note: The member function 'OpenMesh::PropertyCreatorImpl < PropertyCreatorT < Vec6d > >::create_prop < HalfedgeHandle , FaceHandle >' can be static. Explanation: create_prop only uses its parameters, so a functionStatic hint for the template is arguably defensible. The new warnings are still bogus. The calls on lines 129-133 pass explicit template arguments, with PropT = PropertyCreatorT::type (Vec6d). The reported instantiation create_prop appears nowhere in the code. The PR's changed template handling (deferred removal, re-simplification rounds) apparently produced a wrong instantiation with PropT = FaceHandle. The result is five near-duplicate warnings for one line, each naming a non-existent function, with repeated notes. That shows Cppcheck understands this code worse than before. ---- 37 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/p/python-pot/python-pot_0.9.7+dfsg.orig.tar.gz Result: your python-pot-0.9.7+dfsg/ot/lp/network_simplex_simple.h:540:21: style: Unused private function: 'NetworkSimplexSimple < SparseBipartiteDigraph , double , double , unsigned int , int64_t >::usesLazyCost' [unusedPrivateFunction] Explanation: `usesLazyCost()` is a private helper that tests `_cost_mode == CostMode::LazyGeometry`, and the class clearly supports a lazy geometry cost mode, so it is almost certainly called from other member functions. Main did not report it. The new warning appears only for one class instantiation, together with a similar new warning for `getSource`. That pattern suggests the PR's new deduction instantiates or removes the member function templates that contain these calls, so the usage check no longer sees them. This is likely a false positive. ---- 38 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/r/r-cran-readr/r-cran-readr_2.2.0.orig.tar.gz Result: your readr/src/QiParsers.h:354:30: style: Comparing expression of type 'signed int &' against value -2147483648. Condition is always false. [compareValueOutOfTypeRangeError] Explanation: The PR now deduces `Attr` from callers of `parseInt`. In readr the result argument is an `int` (`INTEGER(column)[i]`), so `parseInt<..., int>` gets instantiated and checked. In that instantiation `res` is `int&`, so `res < INT_MIN` can never be true and the warning is correct. It also exposes a real bug: the range check was meant to test `lres` (the `long` result of `strtol`), not `res`. ---- 39 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/r-other-x4r/r-other-x4r_1.0.1+git20150806.c6bd9bd.orig.tar.xz Result: main r-other-x4r-1.0.1+git20150806.c6bd9bd/src/rapidxml.hpp:1573:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Flags [valueFlowBailoutIncompleteVar] Explanation: Line 1573 is in the member function template `skip_and_expand_character_refs`. In main, Cppcheck analysed the generic template, where `Flags` is an unresolved non-type template parameter, so ValueFlow bailed out on 'Flags'. With the PR, the member templates get instantiated with concrete Flags (compare the new 'parse_bom < 0 >' messages). The 'Flags' bailout is gone, but the paired 'your' line shows the same function still being skipped. The new bailout names the namespace constant `parse_no_entity_translation` at the same expression (column 25). So one valueFlowBailoutIncompleteVar debug message is swapped for another of the same kind, and the function is still not analysed by valueFlowConditionExpressions. That is no real gain or loss for users. ---- 40 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/r-other-x4r/r-other-x4r_1.0.1+git20150806.c6bd9bd.orig.tar.xz Result: main r-other-x4r-1.0.1+git20150806.c6bd9bd/src/rapidxml.hpp:2072:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Flags [valueFlowBailoutIncompleteVar] Explanation: In main, `parse_element` was analysed as an uninstantiated template, so the template parameter `Flags` was reported as an incomplete variable. With the PR, the call `parse_element` reached from `parse<0>` is instantiated with `Flags=0` (see the new `parse_bom < 0 >` name). The 'Flags' bailout is therefore gone, but a matching 'your' line at the same statement reports the namespace constant `parse_no_string_terminators` as incomplete instead. valueFlowConditionExpressions still skips the function, so ValueFlow understands this code no better or worse. Only the name of the reported incomplete variable changed. ---- 41 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/r-other-x4r/r-other-x4r_1.0.1+git20150806.c6bd9bd.orig.tar.xz Result: your r-other-x4r-1.0.1+git20150806.c6bd9bd/src/rapidxml.hpp:1741:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable parse_declaration_node [valueFlowBailoutIncompleteVar] Explanation: Line 1741 is in the member template `parse_xml_declaration`. In main, the uninstantiated template bailed out on the template parameter `Flags`, which really is unknown there. With the PR the function template is instantiated: the PR now deduces template arguments from call types, and the paired functionStatic message now names `parse_bom < 0 >`. In the instantiated code `Flags` is replaced by a constant, so the bailout now names the next unresolved name, `parse_declaration_node`. That is a namespace-level flag constant in rapidxml, probably not resolved because the instantiation is placed out of line. Its definition is not shown, so this is inferred. Either way the same function is skipped for valueFlowConditionExpressions before and after. The debug bailout only moved from one name to another; nothing changes for users. ---- 42 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/r-other-x4r/r-other-x4r_1.0.1+git20150806.c6bd9bd.orig.tar.xz Result: your r-other-x4r-1.0.1+git20150806.c6bd9bd/src/rapidxml.hpp:1857:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable parse_doctype_node [valueFlowBailoutIncompleteVar] Explanation: Main and the PR both skip this function in valueFlowConditionExpressions; only the named incomplete variable differs. Main named the template parameter `Flags` in the generic template. With the PR the member template is now instantiated (e.g. `parse_doctype<0>`), so `Flags` becomes a constant. The bailout then names `parse_doctype_node`, a namespace-level constant in rapidxml that the out-of-line instantiation apparently does not resolve. The same function is skipped either way, so users see no practical difference: just one debug bailout replaced by another on the same line. ---- 43 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/r-other-x4r/r-other-x4r_1.0.1+git20150806.c6bd9bd.orig.tar.xz Result: your r-other-x4r-1.0.1+git20150806.c6bd9bd/src/rapidxml.hpp:2193:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable parse_validate_closing_tags [valueFlowBailoutIncompleteVar] Explanation: Both versions skip this function with the same valueFlowBailoutIncompleteVar debug message; only the variable it names changed. The PR now instantiates the member function templates (e.g. parse_node_contents<0>), so `Flags` is replaced by a number and is no longer the first incomplete name. The next one, the rapidxml flag constant `parse_validate_closing_tags`, is now reported instead. That constant was presumably unresolved in main too, but was not reported because the bailout only names the first incomplete variable. The bailout was neither added nor removed, so there is no real change for users. ---- 44 / 50 ---- Verdict: REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/s/srt/srt_1.5.7.orig.tar.gz Result: your srt-1.5.7/apps/srt-live-transmit.cpp:411:10: style: The scope of the variable 'NAME' can be reduced. [variableScope] Explanation: `NAME` is used only inside the `if (cfg.log_internal)` block, but it is passed as the opaque pointer to `srt_setloghandler(NAME, TestLogHandler)`. The SRT library stores that pointer and hands it to the log handler on every later log call. If the array were moved into the if block, it would go out of scope while the library still holds a pointer to it, leaving a dangling pointer. Keeping it at function scope is deliberate and correct. The PR's type changes make Cppcheck report a new variableScope warning here that main did not, and following the suggestion would introduce a bug. This is a new false positive. ---- 45 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/t/tagcoll2/tagcoll2_2.0.14.orig.tar.gz Result: main tagcoll2-2.0.14/tools/tagcoll.cc:313:2: style: Class 'StringFilterStep' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Explanation: StringFilterStep has a non-explicit one-argument constructor, so the warning is correct in both versions. Previously the class template was not instantiated, presumably because filterStep(out) is called without explicit template arguments. Cppcheck therefore reported against the uninstantiated template 'StringFilterStep'. With the PR, deduction instantiates filterStep and with it StringFilterStep, and the same warning is reported at the same location for the instantiation. The removed line is replaced by an equivalent line that names the class more precisely, reflecting better understanding of the code. This is neutral to slightly positive. ---- 46 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/t/tagcoll2/tagcoll2_2.0.14.orig.tar.gz Result: main tagcoll2-2.0.14/tools/tagcoll.cc:314:11: style: The destructor '~StringFilterStep' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] tagcoll2-2.0.14/tools/tagcoll.cc:298:11: note: Virtual destructor in base class tagcoll2-2.0.14/tools/tagcoll.cc:314:11: note: Destructor in derived class Explanation: The missingOverride warning on line 314 is still reported. It is only renamed from '~StringFilterStep' to '~StringFilterStep < FilterForwarder >'. With the PR, the call to filterStep(...) now gets its template argument deduced, so the class template is instantiated for FilterForwarder, and Cppcheck checks that instantiation instead of the generic template. The destructor really does override FilterStep's virtual destructor without 'override', so the warning is correct both before and after. The location is the same and the finding is the same; only the class name in the message differs. This makes no practical difference to users. ---- 47 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/t/tagcoll2/tagcoll2_2.0.14.orig.tar.gz Result: your tagcoll2-2.0.14/tools/tagcoll.cc:313:2: style: Class 'StringFilterStep < FilterForwarder >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Explanation: Line 313 declares a one-argument, non-explicit constructor in class template StringFilterStep, so the noExplicitConstructor warning is a true positive in both runs. Main checked the uninstantiated template and named it 'StringFilterStep'. With the PR, the call filterStep(FilterForwarder(...)) has its template argument deduced, so StringFilterStep is instantiated. The same warning is now reported on the instantiation, at the same location, under the instantiated name. This is how Cppcheck usually names warnings in instantiated class templates. The finding itself is unchanged; only the class name in the message differs, which does not matter to users. ---- 48 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/t/tagcoll2/tagcoll2_2.0.14.orig.tar.gz Result: your tagcoll2-2.0.14/tools/tagcoll.cc:314:11: style: The destructor '~StringFilterStep < FilterForwarder >' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] tagcoll2-2.0.14/tools/tagcoll.cc:298:11: note: Virtual destructor in base class tagcoll2-2.0.14/tools/tagcoll.cc:314:11: note: Destructor in derived class Explanation: Same true positive at the same location: `virtual ~StringFilterStep() {}` overrides `FilterStep`'s virtual destructor without `override`. The PR now deduces the argument of the `filterStep(...)` call, so the class template is instantiated. The message now names the instantiation `StringFilterStep < FilterForwarder >` instead of the template. This is just how Cppcheck usually names instantiated classes, and the finding is the same for users. ---- 49 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/t/taskflow/taskflow_3.9.0+ds.orig.tar.xz Result: your taskflow-3.9.0+ds/unittests/test_for_each.cpp:816:10: style: Local variable 'for_each' shadows outer function [shadowFunction] taskflow-3.9.0+ds/unittests/test_for_each.cpp:13:6: note: Shadowed function taskflow-3.9.0+ds/unittests/test_for_each.cpp:816:10: note: Shadow local variable Explanation: Line 13 is very likely the file-scope test function template `for_each` (`template void for_each(unsigned W)`). Inside `multiple_for_each`, the local `auto for_each = taskflow.for_each(...)` really does hide that name for the rest of the loop body, so the shadowFunction warning is technically correct. Before the PR, Cppcheck deleted the generic template after instantiating it, so no function named `for_each` remained to compare against. Now the generic definition is kept. A probable reason is that the new `hasRemainingCalls`/`isPlainCall` logic treats member calls like `taskflow.for_each(...)` as unresolved calls of the free template. That retention is an artifact, but the warning itself describes real shadowing, so it reads as a valid if minor style finding. ---- 50 / 50 ---- Verdict: UNCLEAR (low confidence) Package: https://ftp.debian.org/debian/pool/main/t/texstudio/texstudio_4.9.7+ds.orig.tar.xz Result: main texstudio-4.9.7+ds/src/qcodeedit/lib/document/qdocument.cpp:3647:14: style:inconclusive: Function 'draw' argument 7 names different: declaration '' definition 'fullSel'. [funcArgNamesDifferentUnnamed] Explanation: The PR removed a funcArgNamesDifferentUnnamed warning for QDocumentLineHandle::draw. The definition names argument 7 'fullSel', but the header declaration is not shown. If the declaration really leaves that parameter unnamed, the warning was a true positive and losing it is a false negative. If the declaration names it, main was wrong and this is an improvement. The PR changes symbol database construction (Function argument handling, finalize ordering), which could plausibly affect either case. Without the declaration the effect cannot be decided.