generate warning when a function is called with not enough parameters