diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2011-09-22 05:55:32 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2011-09-22 05:55:32 +0000 |
| commit | e4d9bb8dcbf17dd129c442ba03e13f6e213cfedf (patch) | |
| tree | c96dc45709c9361dceb8c23a7c759990562ac424 /LUFA/Common/Attributes.h | |
| parent | 811229c178a5d25c06fb7a217ac7a041741d9275 (diff) | |
Add missing "used" attribute to ATTR_INIT_SECTION to ensure functions declared with that meta-attribute are not discarded by the linker.
Add missing function and definition documentation.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1932 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA/Common/Attributes.h')
| -rw-r--r-- | LUFA/Common/Attributes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Common/Attributes.h b/LUFA/Common/Attributes.h index d6722a28..7ee64136 100644 --- a/LUFA/Common/Attributes.h +++ b/LUFA/Common/Attributes.h @@ -126,7 +126,7 @@ * * \param[in] SectionIndex Initialization section number where the function should be placed. */ - #define ATTR_INIT_SECTION(SectionIndex) __attribute__ ((naked, section (".init" #SectionIndex ))) + #define ATTR_INIT_SECTION(SectionIndex) __attribute__ ((used, naked, section (".init" #SectionIndex ))) /** Marks a function as an alias for another function. * |
