1
0
Эх сурвалжийг харах

cmMakefile: Move variable definition above a condition.

Stephen Kelly 10 жил өмнө
parent
commit
bdd4c5f5ba
1 өөрчлөгдсөн 2 нэмэгдсэн , 3 устгасан
  1. 2 3
      Source/cmMakefile.cxx

+ 2 - 3
Source/cmMakefile.cxx

@@ -563,15 +563,14 @@ bool cmMakefile::ReadListFile(const char* filename_in,
       }
     }
 
+  const char *filenametoread = filename;
+
   // keep track of the current file being read
   if (filename)
     {
     this->cmCurrentListFile = filename;
     }
 
-  // Now read the input file
-  const char *filenametoread= filename;
-
   if(external_in)
     {
     filenametoread= external;