This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 'xxx' may be used uninitialized in this function


Here is the real code.  The complaint is about pOptTitle.
The compiler is GCC 4.1.1.  Both "set*OptFmts" functions
*WILL* set pOptTitle to something.  Option level is -O4, so
flow analysis is being done:

void
optionOnlyUsage(
   tOptions* pOpts,
   int       ex_code )
{
   const char * pOptTitle;

   /*
    *  Determine which header and which option formatting strings to use
    */
   if (checkGNUUsage(pOpts)) {
       (void)setGnuOptFmts( pOpts, &pOptTitle );
   }
   else {
       (void)setStdOptFmts( pOpts, &pOptTitle );
   }

   printOptionUsage( pOpts, ex_code, pOptTitle );
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]