[Bug 1857] New: local variable used before set

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 15 03:37:10 PST 2004


Please do not reply to this email: if you want to comment on the bug, go to          
the URL shown below and enter yourcomments there.   
 
https://freedesktop.org/bugzilla/show_bug.cgi?id=1857        
   
           Summary: local variable used before set
           Product: xorg
           Version: 6.8.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Lib/GLX
        AssignedTo: xorg-bugzilla-noise at freedesktop.org
        ReportedBy: dcb314 at hotmail.com


Hello there,

I just tried to compile X11R6.8.1 with the most excellent Intel C
8.1 compiler, on a Linux Fedora Core 3 box. The compiler said

glxcmds.c(1508): remark #592: variable "req" is used before its value is set

The source code is in file

./lib/GL/glx/glxcmds.c

The source code is

    if ( (priv->majorVersion > 1) || (priv->minorVersion >= 3) ) {
    xGLXQueryContextReq * req;

    req->reqType = opcode;
    req->glxCode = X_GLXQueryContext;
    req->context = (unsigned int)(ctx->xid);
    }

Clearly, the compiler is correct. Suggest init req before first use.        
   
   
--         
Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email       
   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list