Skip to content

Commit

Permalink
Merge pull request rentzsch#153 from danielctull-forks/atomic-fix
Browse files Browse the repository at this point in the history
[NEW] Declare scalar properties atomic to resolve -Weverything warning "Atomic by default property 'myInt16Value' has a user defined getter (property should be marked 'atomic' if this is intended)". Daniel Tull.
  • Loading branch information
rentzsch committed Mar 16, 2013
2 parents cdd2641 + 288218b commit b333311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/machine.h.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ extern const struct <$managedObjectClassName$>FetchedProperties {<$foreach Fetch
<$endif$>
<$if Attribute.hasScalarAttributeType$>
<$if Attribute.isReadonly$>
@property (readonly) <$Attribute.scalarAttributeType$> <$Attribute.name$>Value;
@property (atomic, readonly) <$Attribute.scalarAttributeType$> <$Attribute.name$>Value;
- (<$Attribute.scalarAttributeType$>)<$Attribute.name$>Value;
<$else$>
@property <$Attribute.scalarAttributeType$> <$Attribute.name$>Value;
@property (atomic) <$Attribute.scalarAttributeType$> <$Attribute.name$>Value;
- (<$Attribute.scalarAttributeType$>)<$Attribute.name$>Value;
- (void)set<$Attribute.name.initialCapitalString$>Value:(<$Attribute.scalarAttributeType$>)value_;
<$endif$>
Expand Down

0 comments on commit b333311

Please sign in to comment.