It looks like the only solution to this problem is to either fix the bug in the third party code or to manually add #pragma warning(pop)
multiple times after including the third party files until the warnings start showing up. For me, I had to add that line four times.
Both of these options suck but so far there's no other way around it.