To suppress unused variable warning, remove declaration of `load`.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
{
if (auto avgpool = eval->op()->asAvgPool2D())
{
- if (auto load = avgpool->arg()->asLoad())
+ /* Originally it was preferred to use `auto load = avgpool->arg()->asLoad()' for
+ * consitent style with other if statements.
+ * Someone may think compiler will be happy because `load` in `if` statement can
+ * be considered as a use, however, it turend out that it is not the case.
+ */
+ if (avgpool->arg()->asLoad())
{
if (avgpool->divisor() == coco::AvgPool2D::Divisor::Static)
{