Misc. fixes for the Oracle / Sun compiler.
A few pieces of code have some ambiguous type deduction that seems to resolve correctly for most compilers but not for the Oracle compiler. This makes those few instances more explicit.
This commit is contained in:
parent
3171fe0afa
commit
97b65f8156
|
@ -266,9 +266,10 @@ cmComputeLinkDepends::Compute()
|
|||
// Iterate in reverse order so we can keep only the last occurrence
|
||||
// of a shared library.
|
||||
std::set<int> emmitted;
|
||||
const std::vector<int>& cFLO = this->FinalLinkOrder;
|
||||
for(std::vector<int>::const_reverse_iterator
|
||||
li = this->FinalLinkOrder.rbegin(),
|
||||
le = this->FinalLinkOrder.rend();
|
||||
li = cFLO.rbegin(),
|
||||
le = cFLO.rend();
|
||||
li != le; ++li)
|
||||
{
|
||||
int i = *li;
|
||||
|
|
|
@ -80,12 +80,15 @@ void cmFindPackageCommand::AppendSearchPathGroups()
|
|||
PathLabel::SystemRegistry);
|
||||
|
||||
// Create the new path objects
|
||||
this->LabeledPaths.insert(std::make_pair(PathLabel::UserRegistry,
|
||||
cmSearchPath(this)));
|
||||
this->LabeledPaths.insert(std::make_pair(PathLabel::Builds,
|
||||
cmSearchPath(this)));
|
||||
this->LabeledPaths.insert(std::make_pair(PathLabel::SystemRegistry,
|
||||
cmSearchPath(this)));
|
||||
this->LabeledPaths.insert(
|
||||
std::pair<cmFindCommon::PathLabel, cmSearchPath>(
|
||||
PathLabel::UserRegistry, cmSearchPath(this)));
|
||||
this->LabeledPaths.insert(
|
||||
std::pair<cmFindCommon::PathLabel, cmSearchPath>(
|
||||
PathLabel::Builds, cmSearchPath(this)));
|
||||
this->LabeledPaths.insert(
|
||||
std::pair<cmFindCommon::PathLabel, cmSearchPath>(
|
||||
PathLabel::SystemRegistry, cmSearchPath(this)));
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue