You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating to Xcode 9.3, when building on master, I'm seeing several new build warnings related to:
macro expansion producing 'defined' has undefined behavior
A bit of stackoverflow searching seems to point to the fact that the warning is triggered by using defined outside of being inline with a #if. For example, this would throw the warning:
However, because in this example AS_KDEBUG_ENABLE needs to be referenced from other #ifs as well, the solution is not as simple as just inlining it like above.
I'm not comfortable enough with what the macros here are doing to submit a PR with a proposed solution, but wanted to go ahead and document what's going on so that someone else hopefully can.
The text was updated successfully, but these errors were encountered:
After updating to Xcode 9.3, when building on master, I'm seeing several new build warnings related to:
A bit of stackoverflow searching seems to point to the fact that the warning is triggered by using
defined
outside of being inline with a#if
. For example, this would throw the warning:But this would be ok:
However, because in this example
AS_KDEBUG_ENABLE
needs to be referenced from other#if
s as well, the solution is not as simple as just inlining it like above.I'm not comfortable enough with what the macros here are doing to submit a PR with a proposed solution, but wanted to go ahead and document what's going on so that someone else hopefully can.
The text was updated successfully, but these errors were encountered: