cairo-ps-surface: fix -Walloc-size
GCC 14 introduces a new -Walloc-size included in -Wextra which gives:
src/cairo-ps-surface.c:3524:18: warning: allocation of insufficient size ‘1’ for type ‘cairo_ps_form_t’ {aka ‘struct _cairo_ps_form’} with size ‘88’ [-Walloc-size]
The calloc prototype is:
void *calloc(size_t nmemb, size_t size);
So, just swap the number of members and size arguments to match the prototype, as
we're initialising 1 struct of size sizeof(cairo_ps_form_t)
. GCC then sees we're not
doing anything wrong.
Signed-off-by: Sam James sam@gentoo.org