In static warning, print line showing static

Previously, it would print the function name, which was misleading and
not very useful.
Update test output