Commit e95e9d41 authored by Ville Syrjälä's avatar Ville Syrjälä

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ä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
parent fbe15cf4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment