clients: Silence 2x gcc 4.6.3 "warn_unused_result" compiler warnings
window.c:1173:6: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result] desktop-shell.c:305:6: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
This commit is contained in:
committed by
Kristian Høgsberg
parent
9988633f58
commit
8df662ad87
@@ -302,7 +302,8 @@ clock_func(struct task *task, uint32_t events)
|
|||||||
container_of(task, struct panel_clock, clock_task);
|
container_of(task, struct panel_clock, clock_task);
|
||||||
uint64_t exp;
|
uint64_t exp;
|
||||||
|
|
||||||
read(clock->clock_fd, &exp, sizeof exp);
|
if (read(clock->clock_fd, &exp, sizeof exp) != sizeof exp)
|
||||||
|
abort();
|
||||||
widget_schedule_redraw(clock->widget);
|
widget_schedule_redraw(clock->widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -1170,7 +1170,8 @@ tooltip_func(struct task *task, uint32_t events)
|
|||||||
container_of(task, struct tooltip, tooltip_task);
|
container_of(task, struct tooltip, tooltip_task);
|
||||||
uint64_t exp;
|
uint64_t exp;
|
||||||
|
|
||||||
read(tooltip->tooltip_fd, &exp, sizeof (uint64_t));
|
if (read(tooltip->tooltip_fd, &exp, sizeof (uint64_t)) != sizeof (uint64_t))
|
||||||
|
abort();
|
||||||
window_create_tooltip(tooltip);
|
window_create_tooltip(tooltip);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user