core: fix unused variables declaration
core: always check arguments before inline