Skip to content

Commit

Permalink
[ui_x11] inlining pick_visual_of_class and id_to_visual breaks compil…
Browse files Browse the repository at this point in the history
…ation with -flto

fixes #24
  • Loading branch information
gwenhael-le-moine committed Aug 13, 2024
1 parent ad6539e commit ed04ae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui_x11.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ static inline void fatal_exit( const char* error, const char* advice )
exit( 1 );
}

inline Visual* pick_visual_of_class( Display* local_dpy, int visual_class, unsigned int* local_depth )
Visual* pick_visual_of_class( Display* local_dpy, int visual_class, unsigned int* local_depth )
{
XVisualInfo vi_in, *vi_out;
int out_count;
Expand All @@ -377,7 +377,7 @@ inline Visual* pick_visual_of_class( Display* local_dpy, int visual_class, unsig
}
}

inline Visual* id_to_visual( Display* local_dpy, int id, unsigned int* local_depth )
Visual* id_to_visual( Display* local_dpy, int id, unsigned int* local_depth )
{
XVisualInfo vi_in, *vi_out;
int out_count;
Expand Down

0 comments on commit ed04ae3

Please sign in to comment.