Changeset 53031c2 in mainline for boot/generic/include/memstr.h


Ignore:
Timestamp:
2015-06-01T00:49:17Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eab9689
Parents:
193d280c
Message:

add annotations for static checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/generic/include/memstr.h

    r193d280c r53031c2  
    3636
    3737extern void *memcpy(void *, const void *, size_t)
    38     __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));
     38    __attribute__((nonnull(1, 2)))
     39    __attribute__((optimize("-fno-tree-loop-distribute-patterns")));
    3940extern void *memset(void *, int, size_t)
    40     __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));
    41 extern void *memmove(void *, const void *, size_t);
     41    __attribute__((nonnull(1)))
     42    __attribute__((optimize("-fno-tree-loop-distribute-patterns")));
     43extern void *memmove(void *, const void *, size_t)
     44    __attribute__((nonnull(1, 2)));
    4245
    4346#endif
Note: See TracChangeset for help on using the changeset viewer.