Unless you plan on swapping barrels, you should not be shooting 40 in a 10mm chambered barrel. Sure it will work most of the time, but the cartridges headspace off the mouth. Putting a 40 in a 10barrel, you are now relying on the extractor to headspace the round. You are placing undue stress on the extractor as well as the rim of the case and if the case by chance gets past the extractor, your gun will not fire.
The extractor is very important in reliability....(snipped)
Rosewood
This argument is made all of the time and my question is this... unless a case is EXACTLY the length of the available chamber, then the cartridge is not headspacing on the mouth, it is being held by the extractor, and headspace is set by said extractor. It is not a bottleneck round headspacing on the shoulder.
Now the slight jump from a 40 length to a 10mm length could cause some wear/leading at the lead, but as far as the headspace I do not buy it.
A 3rd Gen 10mm that might have limited parts availability might make you pause, but a modern 10mm with an available replacement extractor and or barrel.... when I get mine I will not have too much concern shooting 40 rounds out of it if that is what I have available. Your results and opinions might vary.