]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
new: dev: Add spatch to detect implicit bool/int/result cast
authorColin Vidal <colin@isc.org>
Wed, 12 Nov 2025 10:31:37 +0000 (11:31 +0100)
committerColin Vidal <colin@isc.org>
Wed, 12 Nov 2025 10:31:37 +0000 (11:31 +0100)
Detection of implicit cast from a boolean into an int, or an
isc_result_t into a boolean (either in an assignement or return
position).

If such pattern is found, a warning comment is added into the code (and
the CI will fails) so the error can be spotted and manually fixed.

Merge branch 'colin/cocci-detect-iscresult-int-implicit-casts' into 'main'

See merge request isc-projects/bind9!11095


Trivial merge