summaryrefslogtreecommitdiffstats
path: root/src/glx/drisw_glx.c
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2010-07-28 10:42:46 -0700
committerCarl Worth <[email protected]>2010-07-28 10:42:46 -0700
commitdb011c8141d7b01b67f2ded4e634657b92ed707a (patch)
tree812da03f4e197a4b8cee84fb3b3e5d6542496e6f /src/glx/drisw_glx.c
parent14a3d61ea37c0b0a2bf211a12118e592c3e0677b (diff)
Avoid a compiler warning about a potentially unused variable.
There is no assignment to the "ret" variable if X_DRI2SwapBuffers is not defined. In this case, the earlier explicit "return 0" is likely to be used, but the compiler can't be sure of that, (nor can I for that matter). We cover this case by explicitly initializing "ret" to 0.
Diffstat (limited to 'src/glx/drisw_glx.c')
0 files changed, 0 insertions, 0 deletions