meson: enable more compiler warnings

This commit is contained in:
emersion 2019-02-28 23:15:34 +01:00
parent 4135fafecd
commit 5445d8aad0
7 changed files with 34 additions and 21 deletions

View file

@ -312,7 +312,7 @@ static bool gles2_read_pixels(struct wlr_renderer *wlr_renderer,
glGetError(); // Clear the error flag
unsigned char *p = data + dst_y * stride;
unsigned char *p = (unsigned char *)data + dst_y * stride;
uint32_t pack_stride = width * fmt->bpp / 8;
if (pack_stride == stride && dst_x == 0 && flags != NULL) {
// Under these particular conditions, we can read the pixels with only