[gtk] transform: Add G_GNUC_WARN_UNUSED_RESULT annotations
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] transform: Add G_GNUC_WARN_UNUSED_RESULT annotations
- Date: Sun, 2 Jun 2019 08:35:43 +0000 (UTC)
commit b6cc774312814ff55772426327137a9803e654ac
Author: Timm Bäder <mail baedert org>
Date: Sun Jun 2 10:33:30 2019 +0200
transform: Add G_GNUC_WARN_UNUSED_RESULT annotations
These functions return the new transform so their return value should
really never be ignored.
gsk/gsktransform.h | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gsk/gsktransform.h b/gsk/gsktransform.h
index 6ef7427448..13f712e0dd 100644
--- a/gsk/gsktransform.h
+++ b/gsk/gsktransform.h
@@ -80,37 +80,37 @@ GDK_AVAILABLE_IN_ALL
GskTransform * gsk_transform_new (void);
GDK_AVAILABLE_IN_ALL
GskTransform * gsk_transform_transform (GskTransform *next,
- GskTransform *other);
+ GskTransform *other)
G_GNUC_WARN_UNUSED_RESULT;
GDK_AVAILABLE_IN_ALL
-GskTransform * gsk_transform_invert (GskTransform *self);
+GskTransform * gsk_transform_invert (GskTransform *self)
G_GNUC_WARN_UNUSED_RESULT;
GDK_AVAILABLE_IN_ALL
GskTransform * gsk_transform_matrix (GskTransform *next,
- const graphene_matrix_t *matrix);
+ const graphene_matrix_t *matrix)
G_GNUC_WARN_UNUSED_RESULT;
GDK_AVAILABLE_IN_ALL
GskTransform * gsk_transform_translate (GskTransform *next,
- const graphene_point_t *point);
+ const graphene_point_t *point)
G_GNUC_WARN_UNUSED_RESULT;
GDK_AVAILABLE_IN_ALL
GskTransform * gsk_transform_translate_3d (GskTransform *next,
- const graphene_point3d_t *point);
+ const graphene_point3d_t *point)
G_GNUC_WARN_UNUSED_RESULT;
GDK_AVAILABLE_IN_ALL
GskTransform * gsk_transform_rotate (GskTransform *next,
- float angle);
+ float angle)
G_GNUC_WARN_UNUSED_RESULT;
GDK_AVAILABLE_IN_ALL
GskTransform * gsk_transform_rotate_3d (GskTransform *next,
float angle,
- const graphene_vec3_t *axis);
+ const graphene_vec3_t *axis)
G_GNUC_WARN_UNUSED_RESULT;
GDK_AVAILABLE_IN_ALL
GskTransform * gsk_transform_scale (GskTransform *next,
float factor_x,
- float factor_y);
+ float factor_y)
G_GNUC_WARN_UNUSED_RESULT;
GDK_AVAILABLE_IN_ALL
GskTransform * gsk_transform_scale_3d (GskTransform *next,
float factor_x,
float factor_y,
- float factor_z);
+ float factor_z)
G_GNUC_WARN_UNUSED_RESULT;
GDK_AVAILABLE_IN_ALL
GskTransform * gsk_transform_perspective (GskTransform *next,
- float depth);
+ float depth)
G_GNUC_WARN_UNUSED_RESULT;
GDK_AVAILABLE_IN_ALL
void gsk_transform_transform_bounds (GskTransform *self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]