In the end, fileExt is “Spaces\\something.ext”. This is unexpected. I was hoping it would be “ext”. It appears to be using the space character as the delimiter instead of the period.
Well, the default JUCE project does have a lot of unreferenced formal parameter warnings, so you’d need to use a custom default project. The unreferenced formal parameters are pretty convenient, so I wouldn’t want to eliminate them. Sometimes warnings are just warnings, however. I think keeping the warnings low is pretty good advice, but even better than that, is to understand the warnings.
What about the warning when your project name has an _ in the title?
Obviously, I could rename the project, but I don’t think that warning should be treated as an error.
IMHO, underscores are best reserved for libraries. But, I think we are all entitled to our own style—whatever works best for you.
I know in my personal experience, it has helped my code to have “Treat Warnings as Errors” turned on.
And, it is satisfying when it compiles clean. But anyone with enough knowledge and experience, and who understands all of the nuances of the warnings, may do fine with the warnings.
Isn’t that warning just about the AU bundle identifier? In which case you can just rename that bit in Projucer without (com.myco.myplugin) and still retain the underscore in the project/plugin name (_myplugin).