[PATCH] drm: avoid "mono_time_offset may be used uninitialized"

Stephen Warren swarren at wwwdotorg.org
Wed Jan 30 09:05:34 PST 2013


On 01/29/2013 05:09 PM, Stephen Warren wrote:
> From: Stephen Warren <swarren at nvidia.com>
> 
> Silence the following:
> drivers/gpu/drm/drm_irq.c: In function 'drm_calc_vbltimestamp_from_scanoutpos':
> drivers/gpu/drm/drm_irq.c:583:24: warning: 'mono_time_offset.tv64' may be used uninitialized in this function

FYI, I found that I see this warning with gcc-4.5.3, but not with
gcc-4.7.2 or gcc-4.6.3. Hence, you might decide you don't care about
this patch.


More information about the dri-devel mailing list