Fix warning in output.cpp

Fixes #1579