c-stack: avoid defining an unused static function