fix #1111: func init shouldn't be marked as unused