sna: Get rid of -Wno-shift-negative-value

Use a cast to avoid the "left shift of negative value
[-Wshift-negative-value]" warning, and get rid of the
suppression.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
Ville Syrjälä 2019-09-15 12:51:35 +03:00
parent fbe15cf431
commit e95e9d41ca
2 changed files with 1 additions and 2 deletions

View File

@ -131,7 +131,6 @@ sna = static_library('sna',
c_args : [
'-Wno-unused-but-set-variable',
'-Wno-expansion-to-defined',
'-Wno-shift-negative-value',
'-Wno-maybe-uninitialized',
'-Wno-unused-parameter',
'-Wno-unused-function',

View File

@ -657,7 +657,7 @@ mono_init(struct mono *c, int num_edges)
c->head.dy = 0;
c->head.height_left = INT_MAX;
c->head.x.quo = INT16_MIN << 16;
c->head.x.quo = (uint32_t)INT16_MIN << 16;
c->head.prev = NULL;
c->head.next = &c->tail;
c->tail.prev = &c->head;