Skip to content

Commit 6b2f4e0

Browse files
committed
automation.h: Always inline pause_automation
Recent GCC versions try to “un-inline” this function, which causes a build failure. This was probably the cause of issue VinDuv#2.
1 parent 1b1a834 commit 6b2f4e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/automation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void send_button_sequence(const struct button_d_pad_state sequence[],
140140
* (no buttons pressed, sticks centered). This needs to be called if no updates
141141
* are going to be sent for a long period (more than a cycle length).
142142
*/
143-
inline void pause_automation(void) {
143+
__attribute__((always_inline)) inline void pause_automation(void) {
144144
send_update(BT_NONE, DP_NEUTRAL, S_NEUTRAL, S_NEUTRAL);
145145
}
146146

0 commit comments

Comments
 (0)