xf86-video-intel/tools
Chris Wilson 7548f77fff intel-virtual-output: Initialise width/height for a disabled output
virtual.c:1081:6: warning: variable 'width' is used uninitialized
whenever 'if' condition is true [-Wsometimes-uninitialized]
        if (clone->dst.mode.id == 0) {
            ^~~~~~~~~~~~~~~~~~~~~~~
virtual.c:1092:6: note: uninitialized use occurs here
        if (width == clone->width && height == clone->height)
            ^~~~~
virtual.c:1081:2: note: remove the 'if' if its condition is always false
        if (clone->dst.mode.id == 0) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
virtual.c:1079:11: note: initialize the variable 'width' to silence this warning
        int width, height;

Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-12 21:15:18 +01:00
..
.gitignore intel: Add a helper for setting backlight without root rights 2014-02-15 15:33:47 +00:00
Makefile.am intel-virtual-output: Make it possible to disable building via configure 2014-05-14 17:29:21 +01:00
backlight_helper.c backlight: Prevent dereference of potential NULL argv 2014-07-17 16:14:16 +01:00
intel-virtual-output.man intel: Fix weblinks (again) 2014-06-25 11:45:55 +01:00
org.x.xf86-video-intel.backlight-helper.policy.in Backlight helper build fixes 2014-02-15 17:39:01 +00:00
virtual.c intel-virtual-output: Initialise width/height for a disabled output 2014-09-12 21:15:18 +01:00