Remove compilerWarnings after they have been issued

This patch removes compilerWarnings at the end of function resolution, after they have served their purpose. When they were left in the program, we would leak the string every time the function was called.

- [x] Passed single-node testing
I think this call would fit into `pruneResolvedTree()` nicely.