@@ -502,9 +502,8 @@ ENDQopt ("const"|"volatile"|"sealed"|"override")({BN}+("const"|"volatile"|"seale
502502 }
503503<ReadInclude>[^\n\" \>]+/(" >" |" \" " ) {
504504 // FileInfo *f;
505- bool ambig;
506- bool found=FALSE ;
507-
505+ bool found = false ;
506+ bool ambig = false ;
508507 QCString absIncFileName = determineAbsoluteIncludeName (yyextra->absFileName ,yytext);
509508 const FileDef *fd=findFileDef (Doxygen::inputNameLinkedMap,absIncFileName,ambig);
510509 // printf("looking for include %s -> %s fd=%p\n",yytext,qPrint(absPath),fd);
@@ -2691,7 +2690,7 @@ static void writeMultiLineCodeLink(yyscan_t yyscanner,OutputCodeList &ol,
26912690 while (!done)
26922691 {
26932692 const char *sp=p;
2694- char c;
2693+ char c = 0 ;
26952694 while ((c=*p++) && c!=' \n ' ) { }
26962695 if (c==' \n ' )
26972696 {
@@ -2832,7 +2831,6 @@ static const MemberDef *setCallContextForVar(yyscan_t yyscanner,const QCString &
28322831 }
28332832 }
28342833
2835- const MemberName *mn;
28362834 const ScopedTypeVariant *mcv = yyextra->theVarContext .findVariable (name);
28372835 if (mcv)
28382836 {
@@ -2866,7 +2864,8 @@ static const MemberDef *setCallContextForVar(yyscan_t yyscanner,const QCString &
28662864 }
28672865
28682866 // look for a global member
2869- if ((mn=Doxygen::functionNameLinkedMap->find (name)))
2867+ const MemberName *mn = Doxygen::functionNameLinkedMap->find (name);
2868+ if (mn)
28702869 {
28712870 DBG_CTX ((stderr," global var '%s'\n " ,qPrint (name)));
28722871 if (mn->size ()==1 ) // global defined only once
@@ -2908,7 +2907,7 @@ static void updateCallContextForSmartPointer(yyscan_t yyscanner)
29082907 struct yyguts_t *yyg = (struct yyguts_t *)yyscanner;
29092908 const Definition *d = yyextra->theCallContext .getScope ().globalDef ();
29102909 // printf("updateCallContextForSmartPointer() cd=%s\n",cd ? qPrint(d->name()) : "<none>");
2911- const MemberDef *md;
2910+ const MemberDef *md = nullptr ;
29122911 if (d && d->definitionType ()==Definition::TypeClass && (md=(toClassDef (d))->isSmartPointer ()))
29132912 {
29142913 const ClassDef *ncd = stripClassName (yyscanner,md->typeString (),md->getOuterScope ());
@@ -3377,7 +3376,7 @@ static void generateMemberLink(yyscan_t yyscanner,
33773376 MemberName *vmn=Doxygen::memberNameLinkedMap->find (varName);
33783377 if (vmn==nullptr )
33793378 {
3380- int vi;
3379+ int vi = 0 ;
33813380 QCString vn=varName;
33823381 if ((vi=vn.findRev (" ::" ))!=-1 || (vi=vn.findRev (' .' ))!=-1 ) // explicit scope A::b(), probably static member
33833382 {
@@ -3557,7 +3556,7 @@ static int countLines(yyscan_t yyscanner)
35573556{
35583557 struct yyguts_t *yyg = (struct yyguts_t *)yyscanner;
35593558 const char *p=yyextra->inputString ;
3560- char c;
3559+ char c = 0 ;
35613560 int count=1 ;
35623561 while ((c=*p))
35633562 {
@@ -3596,7 +3595,7 @@ static void writeObjCMethodCall(yyscan_t yyscanner,ObjCCallCtx *ctx)
35963595{
35973596 if (ctx==nullptr ) return ;
35983597 struct yyguts_t *yyg = (struct yyguts_t *)yyscanner;
3599- char c;
3598+ char c = 0 ;
36003599 if (!ctx->methodName .isEmpty ())
36013600 {
36023601 DBG_CTX ((stderr," writeObjCMethodCall(%s) obj=%s method=%s\n " ,
@@ -3988,7 +3987,7 @@ static bool skipLanguageSpecificKeyword(yyscan_t yyscanner,const char *keyword)
39883987 " union" , " unsigned" , " using" , " virtual" , " wchar_t" ,
39893988 " xor" , " xor_eq" , " override" , " sealed"
39903989 };
3991- bool retval;
3990+ bool retval = false ;
39923991 switch (yyextra->lang )
39933992 {
39943993 case SrcLangExt::Cpp:
@@ -3997,7 +3996,7 @@ static bool skipLanguageSpecificKeyword(yyscan_t yyscanner,const char *keyword)
39973996 case SrcLangExt::Java:
39983997 retval = (non_java_keywords.find (keyword) != non_java_keywords.end ());
39993998 break ;
4000- default :
3999+ default :
40014000 retval = false ;
40024001 break ;
40034002 }
0 commit comments