]> git.eshelyaron.com Git - emacs.git/commit
Fix compiler thinking width and height may be unitialised in frame.c
authorMichal Nazarewicz <mina86@mina86.com>
Mon, 12 Sep 2016 19:36:28 +0000 (21:36 +0200)
committerMichal Nazarewicz <mina86@mina86.com>
Mon, 12 Sep 2016 19:57:36 +0000 (21:57 +0200)
commitee98ca67f886698b6072095e55b820b1c31e1236
tree1aa59f40034ba0f90bcd814d61063b34e4fa383d
parentef474bd3d686cbf43a11056017ca8c92a304a25e
Fix compiler thinking width and height may be unitialised in frame.c

This fixes the following warning:

frame.c: In function ‘x_set_frame_parameters’:
frame.c:3329:25: error: ‘width’ may be used uninitialized in
this function [-Werror=maybe-uninitialized]
       adjust_frame_size (f, width_change ? width : -1,
                         ^

* src/frame.c (x_set_frame_parameters): Drop width_changed and
height_changed variables in favour of storing that information in
width and height variables.
src/frame.c