The reason is that otherwise the diagnostic pop that comes later will also remove any diagnostic pragma that was added by the consumer of this library.
for ALL third party headers to ensure our compilation log is not spammed with warnings from not-our-code. Because FakeIt currently does not do diagnostic push before ignoring the warning the pop that comes later will remove ALL other diagnostic ignored pragmas we defined. If a push is added first then the pop will only remove up to that push, leaving our own pragmas intact.
The code
Should be changed to
The reason is that otherwise the diagnostic pop that comes later will also remove any diagnostic pragma that was added by the consumer of this library.
In our solution for example we do something like
for ALL third party headers to ensure our compilation log is not spammed with warnings from not-our-code. Because FakeIt currently does not do diagnostic push before ignoring the warning the pop that comes later will remove ALL other diagnostic ignored pragmas we defined. If a push is added first then the pop will only remove up to that push, leaving our own pragmas intact.
PR: https://github.com/eranpeer/FakeIt/pull/161