How can I get rid of an “unused variable” warning in Xcode?
Using Xcode 4.3.2 and found out that this seems to work (less writing) BOOL saved __unused;
Using Xcode 4.3.2 and found out that this seems to work (less writing) BOOL saved __unused;
Just so we have an example to work from, this is fairly common with jQuery’s $.each where you’re writing code that doesn’t need the index, just the value, in the iteration callback and you’re using this (which jQuery also sets to the value) for something else: $.each(objectOrArrayLikeThing, (_, value) => { // Use `value` here … Read more