Sfoglia il codice sorgente

st/wgl: init a variable to silence MinGW warning

MinGW release build says 'value' may be used before being initialized.

Reviewed-by: Neha Bhende <bhenden@vmware.com>
tags/19.1-branchpoint
Brian Paul 6 anni fa
parent
commit
e2369e133c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/gallium/state_trackers/wgl/stw_ext_pixelformat.c

+ 1
- 1
src/gallium/state_trackers/wgl/stw_ext_pixelformat.c Vedi File

@@ -487,7 +487,7 @@ wglGetPixelFormatAttribfvARB(HDC hdc, int iPixelFormat, int iLayerPlane,
(void) hdc;

for (i = 0; i < nAttributes; i++) {
int value;
int value = 0;

if (!stw_query_attrib(iPixelFormat, iLayerPlane,
piAttributes[i], &value))

Loading…
Annulla
Salva