If you do not have a project, my solution will not work, and using the global compiler settings is all you can do, even if it will probably lead to errors later as Tim wrote.
My solution does exactly the same as using global settings, that are common to all projects and files, but on project level.