Skip to content

Commit 84f2ea1

Browse files
authored
Remove compiler attributes
Remove the compiler attributes, __attribute__((flatten)), which were implemented by the variantHooks.cpp file. This can significantly reduced the compiled size, at the expense of one additional stack frame required.
1 parent 828891e commit 84f2ea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/variantHooks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ extern void loop(void);
8080

8181
/*-----------------------------------------------------------*/
8282

83-
void initVariant(void) __attribute__ ((flatten, OS_main));
83+
void initVariant(void) __attribute__ ((OS_main));
8484
void initVariant(void)
8585
{
8686
#if defined(USBCON)

0 commit comments

Comments
 (0)