Fix coverity issue 1212397.

Resolved the memory management issue by making removeSpacesFromString() operate on a
string owned elsewhere (rather than sometimes allocating and returing a modified copy.
That makes it permissibile to unconditionally free the copy created in the calling
routine.

[reviewed by noakes]
[tested using checkChplInstall]


git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@23567 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Make ioerror return without exiting on ENOERR

[reviewed by Michael]

All three versions of ioerror() that take a syserr argument will now
return without exiting when ENOERR is passed in.

Added a new test to make sure these interfaces work, even if we don't
encounter them in our nightly testing.



git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@23568 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Remove unused prototype for removeUnusedFormals() left behind in r23566.

[Ok'd by the peanuts]

Tested on hello*.chpl



git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@23569 3a8e244f-b0f2-452b-bcba-4c88e055c3ca