forked from AuroraMiddleware/gtk
Add a return value
When building with G_DISABLE_ASSERT, the g_assert_not_reached() statement won't do anything, and we're going to fall through, and the compiler will emit a warning that we're not returning anything from a function with a return value.
This commit is contained in:
parent
6c74a8c755
commit
46f475664d
@ -1617,6 +1617,9 @@ rect_anchor_to_anchor (GdkGravity rect_anchor)
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
|
||||
return (ZXDG_POSITIONER_V6_ANCHOR_TOP |
|
||||
ZXDG_POSITIONER_V6_ANCHOR_LEFT);
|
||||
}
|
||||
|
||||
static enum zxdg_positioner_v6_gravity
|
||||
@ -1650,6 +1653,9 @@ window_anchor_to_gravity (GdkGravity rect_anchor)
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
|
||||
return (ZXDG_POSITIONER_V6_GRAVITY_BOTTOM |
|
||||
ZXDG_POSITIONER_V6_GRAVITY_RIGHT);
|
||||
}
|
||||
|
||||
static GdkWindow *
|
||||
|
Loading…
Reference in New Issue
Block a user