It is quite common that someone sees a piece of code, enters it line by
line in the REPL, and then it doesn't work as expected because there is
some local declaration in the code.
The the "local" warning was added specifically because of that common
scenario, not as some generic hint. The fact that "global" does not
survive accross lines cannot change the meaning of some piece of code
(or can it?), so it is not worth a warning.
-- Roberto