diff options
author | Vinson Lee <[email protected]> | 2010-08-24 23:04:20 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-08-24 23:04:20 -0700 |
commit | 0ae6b30c147e6a237cd4e6338975e46de5a95565 (patch) | |
tree | 14fa84b8207dc9a94135c3444123c6bf7fae033a /src/driclient | |
parent | 19f9340e6741611779ec2b78b60f521330984077 (diff) |
r300/compiler: Silence uninitialized variable warning.
The variable loops would be used uninitialized if it ever processed a
RC_OPCODE_ENDLOOP case first.
This patch initalizes the loops variable to NULL and adds an assert at
the RC_OPCODE_ENDLOOP case that loops isn't NULL.
Silence the following GCC warning.
r3xx_vertprog.c: In function 'translate_vertex_program':
r3xx_vertprog.c:469: warning: 'loops' may be used uninitialized in this function
Diffstat (limited to 'src/driclient')
0 files changed, 0 insertions, 0 deletions