Sfoglia il codice sorgente

fix remove Xcode warning for anyAttribute

Jonas Budelmann 10 anni fa
parent
commit
1232b3e6e8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Masonry/MASConstraintMaker.m

+ 1 - 1
Masonry/MASConstraintMaker.m

@@ -75,7 +75,7 @@
 }
 }
 
 
 - (MASConstraint *)addConstraintWithAttributes:(MASAttribute)attrs {
 - (MASConstraint *)addConstraintWithAttributes:(MASAttribute)attrs {
-    MASAttribute anyAttribute = MASAttributeLeft | MASAttributeRight | MASAttributeTop | MASAttributeBottom | MASAttributeLeading | MASAttributeTrailing | MASAttributeWidth | MASAttributeHeight | MASAttributeCenterX | MASAttributeCenterY | MASAttributeBaseline;
+    __unused MASAttribute anyAttribute = MASAttributeLeft | MASAttributeRight | MASAttributeTop | MASAttributeBottom | MASAttributeLeading | MASAttributeTrailing | MASAttributeWidth | MASAttributeHeight | MASAttributeCenterX | MASAttributeCenterY | MASAttributeBaseline;
     
     
     NSAssert((attrs & anyAttribute) != 0, @"You didn't pass any attribute to make.attributes(...)");
     NSAssert((attrs & anyAttribute) != 0, @"You didn't pass any attribute to make.attributes(...)");