Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit61d9ed3

Browse files
committed
x: fix CI build failure
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
1 parent3b342af commit61d9ed3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/x.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,13 @@ uint32_t x_create_region(xcb_connection_t *c, const region_t *reg) {
394394
}
395395

396396
intnrects;
397-
autorects=pixman_region32_rectangles(reg,&nrects);
397+
#pragma GCC diagnostic push
398+
// In older pixman versions, pixman_region32_rectangles doesn't take const region_t,
399+
// instead of dealing with this version difference, just suppress the warning.
400+
#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
401+
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types-discards-qualifiers"
402+
constpixman_box32_t*rects=pixman_region32_rectangles(reg,&nrects);
403+
#pragma GCC diagnostic pop
398404
autoxrects=ccalloc(nrects,xcb_rectangle_t);
399405
for (inti=0;i<nrects;i++) {
400406
xrects[i]=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp