Fix compiler warning
Merge pull request #2792 from jwarwick/stream_warning

Fix compiler warning