File: | scratch/gluex/scan-build-work/hdgeant4^hdr4251/src/OpenGLXpreload.cc |
Location: | line 13, column 5 |
Description: | Value stored to 'vi' is never read |
1 | #include <GL/glx.h> |
2 | #include <GL/gl.h> |
3 | #include <unistd.h> |
4 | |
5 | static int attributeList[] = { GLX_RGBA4, None0L }; |
6 | |
7 | void OpenGLXpreload() { |
8 | Display *dpy; |
9 | XVisualInfo *vi; |
10 | /* get a connection */ |
11 | dpy = XOpenDisplay(0); |
12 | /* get an appropriate visual */ |
13 | vi = glXChooseVisual(dpy, DefaultScreen(dpy)(((_XPrivDisplay)(dpy))->default_screen), attributeList); |
Value stored to 'vi' is never read | |
14 | } |