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:
parent
fbe15cf431
commit
e95e9d41ca
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue