aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Common/Attributes.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-09-22 05:55:32 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-09-22 05:55:32 +0000
commit77dbfd3cc44b91ea04990c65f3de70267ceb2460 (patch)
treec96dc45709c9361dceb8c23a7c759990562ac424 /LUFA/Common/Attributes.h
parent022fa26b43f062ca6e4b23c64ec2d0d0bab7e377 (diff)
downloadlufa-77dbfd3cc44b91ea04990c65f3de70267ceb2460.tar.gz
lufa-77dbfd3cc44b91ea04990c65f3de70267ceb2460.tar.bz2
lufa-77dbfd3cc44b91ea04990c65f3de70267ceb2460.zip
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.
Diffstat (limited to 'LUFA/Common/Attributes.h')
-rw-r--r--LUFA/Common/Attributes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Common/Attributes.h b/LUFA/Common/Attributes.h
index d6722a28d..7ee641361 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.
*