Well here's the voice of experience, "been there done that".
Avoid WD-40 for long term storage.
It has it's place, it's works, it's cheap, it's available anywhere.
It will gum, over time.
It happened to me and it's happened to others.
WD-40 is nothing but a very thin oil like kerosene and it does evaporate leaving a hard varnish coating metal.
Use it if you want but why?
Break Free and gun care products work much better as a lube, cleaner, protectant but cost more, but how much do you use?
Not much really.
For the little you use on a firearms for lubrication and protection Break Free and other good gun care oils are a bargain.
WD is o.k. for loosening parts, wiping metal down and has it's place on the tool work bench but as a gun care product it is a poor performer.