mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
Makefiles: Avoid pointer repurposing
This commit is contained in:
@@ -247,13 +247,13 @@ void cmGlobalUnixMakefileGenerator3::WriteMainMakefile2()
|
|||||||
// Write out the "special" stuff
|
// Write out the "special" stuff
|
||||||
lg->WriteSpecialTargetsTop(makefileStream);
|
lg->WriteSpecialTargetsTop(makefileStream);
|
||||||
|
|
||||||
// write the target convenience rules
|
// Write the target convenience rules
|
||||||
for (cmLocalGenerator* localGen : this->LocalGenerators) {
|
for (cmLocalGenerator* localGen : this->LocalGenerators) {
|
||||||
lg = static_cast<cmLocalUnixMakefileGenerator3*>(localGen);
|
this->WriteConvenienceRules2(
|
||||||
this->WriteConvenienceRules2(makefileStream, lg);
|
makefileStream, static_cast<cmLocalUnixMakefileGenerator3*>(localGen));
|
||||||
}
|
}
|
||||||
|
|
||||||
lg = static_cast<cmLocalUnixMakefileGenerator3*>(this->LocalGenerators[0]);
|
// Write special bottom targets
|
||||||
lg->WriteSpecialTargetsBottom(makefileStream);
|
lg->WriteSpecialTargetsBottom(makefileStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user