I've noticed a new
../../gcc/analyzer/kf.cc: In member function ‘virtual void ana::kf_strcasecmp::impl_call_post(const ana::call_details&) const’:
../../gcc/analyzer/kf.cc:2882:12: warning: unused variable ‘lhs_type’ [-Wunused-variable]
warning.
The following patch fixes that.
2026-05-05 Jakub Jelinek <jakub@redhat.com>
* kf.cc (kf_strcasecmp::impl_call_post): Remove unused variable.
Reviewed-by: David Malcolm <dmalcolm@redhat.com>
void
kf_strcasecmp::impl_call_post (const call_details &cd) const
{
- if (tree lhs_type = cd.get_lhs_type ())
+ if (cd.get_lhs_type ())
{
const svalue *result_val
= cd.get_or_create_conjured_svalue (cd.get_lhs_region ());