Mark xcb_generate_id deprecated in compton
x_new_id is preferred since it checks for error. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
89c4527264
commit
b5da914920
|
@ -66,6 +66,12 @@
|
|||
# define attr_ret_nonnull
|
||||
#endif
|
||||
|
||||
#if __has_attribute(deprecated)
|
||||
# define attr_deprecated __attribute__((deprecated))
|
||||
#else
|
||||
# define attr_deprecated
|
||||
#endif
|
||||
|
||||
#if __has_attribute(malloc)
|
||||
# define attr_malloc __attribute__((malloc))
|
||||
#else
|
||||
|
|
2
src/x.h
2
src/x.h
|
@ -244,3 +244,5 @@ struct xvisual_info x_get_visual_info(xcb_connection_t *c, xcb_visualid_t visual
|
|||
xcb_visualid_t x_get_visual_for_standard(xcb_connection_t *c, xcb_pict_standard_t std);
|
||||
|
||||
xcb_screen_t *x_screen_of_display(xcb_connection_t *c, int screen);
|
||||
|
||||
uint32_t attr_deprecated xcb_generate_id(xcb_connection_t *c);
|
||||
|
|
Loading…
Reference in New Issue