diff options
author | Thomas Wood <thomas.wood@intel.com> | 2015-11-02 10:29:23 +0000 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-11-11 14:20:56 +0000 |
commit | e9ed1a37fcbb6c3f08bc714cdf5851202f532125 (patch) | |
tree | 480a01c3782501ccf7566556d94b797500c07942 /lib/intel_batchbuffer.c | |
parent | 0986b432f874db0f263958fa07feb1a83ba1bae4 (diff) |
tests/kms_fbc_crc: ensure context is initialized correctly
Initialization was included in commit a976d7e (tests/kms_fbc_crc:
refactor context handling code), but won't be executed since it is
declared before the first label within a switch statement.
kms_fbc_crc.c:178:2: warning: ‘context’ may be used uninitialized in this function [-Wmaybe-uninitialized]
rendercopy(batch, context,
^
kms_fbc_crc.c:271:22: note: ‘context’ was declared here
drm_intel_context *context = NULL;
^
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'lib/intel_batchbuffer.c')
0 files changed, 0 insertions, 0 deletions