mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 07:58:02 +02:00
Add -Wwrite-strings compiler flag and fix all warnings
This commit is contained in:
parent
eb9caf0833
commit
0071102208
3 changed files with 4 additions and 4 deletions
|
|
@ -535,7 +535,7 @@ WARN_CFLAGS=""
|
|||
if test "x$GCC" = "xyes"; then
|
||||
WARN_CFLAGS="-Wall -Wsign-compare -Wpointer-arith -Wstrict-prototypes \
|
||||
-Wmissing-prototypes -Wmissing-declarations \
|
||||
-Wnested-externs -fno-strict-aliasing -Wold-style-definition"
|
||||
-Wnested-externs -fno-strict-aliasing -Wold-style-definition -Wwrite-strings"
|
||||
fi
|
||||
|
||||
AC_SUBST(WARN_CFLAGS)
|
||||
|
|
|
|||
|
|
@ -1474,7 +1474,7 @@ static cairo_status_t
|
|||
emit_image (cairo_ps_surface_t *surface,
|
||||
cairo_image_surface_t *image,
|
||||
cairo_matrix_t *matrix,
|
||||
char *name)
|
||||
const char *name)
|
||||
{
|
||||
cairo_status_t status;
|
||||
unsigned char *rgb, *compressed;
|
||||
|
|
|
|||
|
|
@ -934,7 +934,7 @@ static cairo_status_t
|
|||
_cairo_xlib_surface_set_filter (cairo_xlib_surface_t *surface,
|
||||
cairo_filter_t filter)
|
||||
{
|
||||
char *render_filter;
|
||||
const char *render_filter;
|
||||
|
||||
if (!surface->src_picture)
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
|
@ -969,7 +969,7 @@ _cairo_xlib_surface_set_filter (cairo_xlib_surface_t *surface,
|
|||
}
|
||||
|
||||
XRenderSetPictureFilter (surface->dpy, surface->src_picture,
|
||||
render_filter, NULL, 0);
|
||||
(char *) render_filter, NULL, 0);
|
||||
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue