[ui_x11] inlining pick_visual_of_class and id_to_visual breaks compilation with -flto

fixes #24
This commit is contained in:
Gwenhael Le Moine 2024-08-13 20:25:04 +02:00
parent ad6539edf6
commit ed04ae3a7a
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -353,7 +353,7 @@ static inline void fatal_exit( const char* error, const char* advice )
exit( 1 ); 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; XVisualInfo vi_in, *vi_out;
int out_count; int out_count;
@ -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; XVisualInfo vi_in, *vi_out;
int out_count; int out_count;