Fix warning for unused default arguments

Closes #1075