Update declarations of stack functions

Squashes warnings