projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39de925
)
r300: Silence uninitialized variable warning.
author
Vinson Lee
<vlee@vmware.com>
Wed, 13 Oct 2010 05:02:27 +0000
(22:02 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Wed, 13 Oct 2010 05:02:27 +0000
(22:02 -0700)
Fixes this GCC warning.
r300_state.c: In function 'r300InvalidateState':
r300_state.c:2247: warning: 'hw_format' may be used uninitialized in this function
r300_state.c:2247: note: 'hw_format' was declared here
src/mesa/drivers/dri/r300/r300_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_state.c
b/src/mesa/drivers/dri/r300/r300_state.c
index 0113eecaa3a9410718237c9de95e4cfeefcbd968..bacb8f5e3a33075ee09eeb960013050572338fd1 100644
(file)
--- a/
src/mesa/drivers/dri/r300/r300_state.c
+++ b/
src/mesa/drivers/dri/r300/r300_state.c
@@
-2292,6
+2292,7
@@
static void r300SetupUsOutputFormat(GLcontext *ctx)
break;
default:
assert(!"Unsupported format");
+ hw_format = 0;
break;
}